diff --git a/playground/index.html b/playground/index.html index 143557b5..1516b380 100644 --- a/playground/index.html +++ b/playground/index.html @@ -2,7 +2,7 @@ - + Vite + Vue + TS diff --git a/playground/public/favicon.svg b/playground/public/favicon.svg new file mode 100644 index 00000000..63b3c87c --- /dev/null +++ b/playground/public/favicon.svg @@ -0,0 +1,3 @@ + + + diff --git a/playground/public/logo.svg b/playground/public/logo.svg new file mode 100644 index 00000000..d6d0a72f --- /dev/null +++ b/playground/public/logo.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/playground/public/nuxt-stones/package.json b/playground/public/nuxt-stones/package.json new file mode 100644 index 00000000..558cbb66 --- /dev/null +++ b/playground/public/nuxt-stones/package.json @@ -0,0 +1,23 @@ +{ + "name": "docs", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vitepress dev", + "build": "vitepress build", + "preview": "vitepress preview" + }, + "dependencies": { + "@tresjs/cientos": "^3.0.1", + "@tresjs/core": "^3.2.2", + "@tresjs/post-processing": "workspace:^", + "gsap": "^3.11.5" + }, + "devDependencies": { + "unocss": "^0.52.3", + "unplugin-vue-components": "^0.24.1", + "vite-svg-loader": "^4.0.0", + "vitepress": "1.0.0-beta.1" + } +} diff --git a/playground/src/App.vue b/playground/src/App.vue index 9f7a5936..2417aab6 100644 --- a/playground/src/App.vue +++ b/playground/src/App.vue @@ -1,5 +1,17 @@ - + diff --git a/playground/src/components/GlitchDemo.vue b/playground/src/components/GlitchDemo.vue deleted file mode 100644 index 2c6b5140..00000000 --- a/playground/src/components/GlitchDemo.vue +++ /dev/null @@ -1,71 +0,0 @@ - - - diff --git a/playground/src/components/UnrealBloom.vue b/playground/src/components/UnrealBloom.vue deleted file mode 100644 index 4eda71e0..00000000 --- a/playground/src/components/UnrealBloom.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - diff --git a/playground/src/pages/bloom.vue b/playground/src/pages/bloom.vue new file mode 100644 index 00000000..51065a6b --- /dev/null +++ b/playground/src/pages/bloom.vue @@ -0,0 +1,143 @@ + + + diff --git a/playground/src/pages/glitch.vue b/playground/src/pages/glitch.vue index 739a5287..f473f3c6 100644 --- a/playground/src/pages/glitch.vue +++ b/playground/src/pages/glitch.vue @@ -1,5 +1,107 @@ - + diff --git a/playground/src/pages/index.vue b/playground/src/pages/index.vue index edef43ed..cd8dbf6d 100644 --- a/playground/src/pages/index.vue +++ b/playground/src/pages/index.vue @@ -1,5 +1,92 @@ - + diff --git a/playground/src/router.ts b/playground/src/router.ts index dc606278..1ac1dc72 100644 --- a/playground/src/router.ts +++ b/playground/src/router.ts @@ -2,26 +2,30 @@ import type { RouteRecordRaw } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router' import { kebabCase } from './util/string' -const makeRoute = (name: string): RouteRecordRaw => { +const makeRoute = (name: string, icon: string): RouteRecordRaw => { const nameInKebab = kebabCase(name) return { path: `/${nameInKebab}`, name, + meta: { + icon, + }, component: () => import(`./pages/${nameInKebab}.vue`), } } -const routes = [ +export const routes = [ { path: '/', name: 'Home', component: () => import('./pages/index.vue'), }, - makeRoute('Outline'), - makeRoute('Glitch'), - makeRoute('Depth of Field'), - makeRoute('Pixelation'), - makeRoute('Noise'), + makeRoute('Outline', '🔲'), + makeRoute('Glitch', '📺'), + makeRoute('Depth of Field', '📷'), + makeRoute('Pixelation', '👾'), + makeRoute('Bloom', '🌼'), + makeRoute('Noise', '📟'), ] export const router = createRouter({