diff --git a/README.md b/README.md index 2ba779b..aff1d4a 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Every demo or experiment consist on two parts - A vue component containing the scene under `components/content` 1. Create a `your-awesome-demo.md` file under `content/experiments` directory. -2. Add [Frontmatter](https://content.nuxtjs.org/guide/writing/markdown#front-matter) to provide the meta-data of your experiment, this is crucial to get the cards on the home page nice and pretty. Remember to add the `slug` of your `author` to the correspondant field. Be sure to add `status: published`, otherwise the thumbnail won't show up during your tests. +2. Add [Frontmatter](https://content.nuxtjs.org/guide/writing/markdown#front-matter) to provide the meta-data of your experiment, this is crucial to get the cards on the home page nice and pretty. Remember to add the `slug` of your `author` to the correspondant field. ```md --- @@ -94,7 +94,6 @@ thumbnail: /lowpoly-planet.png title: Low Poly Planet slug: lowpoly-planet author: alvarosabu -status: published description: Low Poly Planet exported from Blender tags: ['basic', 'cientos', 'useGLTF', 'blender'] --- @@ -117,7 +116,6 @@ thumbnail: /lowpoly-planet.png title: Low Poly Planet slug: lowpoly-planet author: alvarosabu -status: published description: Low Poly Planet exported from Blender tags: ['basic', 'cientos', 'useGLTF', 'blender'] --- @@ -127,6 +125,12 @@ tags: ['basic', 'cientos', 'useGLTF', 'blender'] 5. Take a screenshot of your scene ot the `public` directory. +### Broken Github demo links + +Note that the system will automatically add a link to your demo's source code on Github, so that visitors can see how you made your demo. + +The link will be broken until your demo is merged into the main Lab branch. + ## License [MIT](/LICENSE) diff --git a/components/TheCard.vue b/components/TheCard.vue index 88745d7..e9ad754 100644 --- a/components/TheCard.vue +++ b/components/TheCard.vue @@ -1,7 +1,11 @@ diff --git a/components/TheCodeButton.vue b/components/TheCodeButton.vue new file mode 100644 index 0000000..959cb77 --- /dev/null +++ b/components/TheCodeButton.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/components/content/GlassExample.vue b/components/content/glass-material/index.vue similarity index 100% rename from components/content/GlassExample.vue rename to components/content/glass-material/index.vue diff --git a/components/content/infiniteTube.vue b/components/content/infinite-tube/index.vue similarity index 100% rename from components/content/infiniteTube.vue rename to components/content/infinite-tube/index.vue diff --git a/components/content/scroll-controls-demo/LowPolyPlanet.vue b/components/content/scroll-controls/LowPolyPlanet.vue similarity index 100% rename from components/content/scroll-controls-demo/LowPolyPlanet.vue rename to components/content/scroll-controls/LowPolyPlanet.vue diff --git a/components/content/scroll-controls-demo/Rocket.vue b/components/content/scroll-controls/Rocket.vue similarity index 100% rename from components/content/scroll-controls-demo/Rocket.vue rename to components/content/scroll-controls/Rocket.vue diff --git a/components/content/scroll-controls-demo/index.vue b/components/content/scroll-controls/index.vue similarity index 100% rename from components/content/scroll-controls-demo/index.vue rename to components/content/scroll-controls/index.vue diff --git a/components/content/synthwave/components/gradientSky.vue b/components/content/synthwave-landscape/components/gradientSky.vue similarity index 100% rename from components/content/synthwave/components/gradientSky.vue rename to components/content/synthwave-landscape/components/gradientSky.vue diff --git a/components/content/synthwave/components/grid.vue b/components/content/synthwave-landscape/components/grid.vue similarity index 100% rename from components/content/synthwave/components/grid.vue rename to components/content/synthwave-landscape/components/grid.vue diff --git a/components/content/synthwave/components/mountain.vue b/components/content/synthwave-landscape/components/mountain.vue similarity index 100% rename from components/content/synthwave/components/mountain.vue rename to components/content/synthwave-landscape/components/mountain.vue diff --git a/components/content/synthwave/components/musicPlayer.vue b/components/content/synthwave-landscape/components/musicPlayer.vue similarity index 95% rename from components/content/synthwave/components/musicPlayer.vue rename to components/content/synthwave-landscape/components/musicPlayer.vue index 6056745..e2160be 100644 --- a/components/content/synthwave/components/musicPlayer.vue +++ b/components/content/synthwave-landscape/components/musicPlayer.vue @@ -27,10 +27,11 @@ function nextLetter() { } } -watch(playing, p => { +watch(playing, (p) => { if (p) { attributionLengthTarget = attribution.length - } else { + } + else { attributionLengthTarget = 0 } nextLetter() @@ -39,7 +40,13 @@ watch(playing, p => { +