Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
5ma committed Feb 19, 2025
1 parent 6aad7c7 commit a083447
Show file tree
Hide file tree
Showing 25 changed files with 690 additions and 51 deletions.
6 changes: 4 additions & 2 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import react from '@astrojs/react'
import tailwind from '@astrojs/tailwind'
import icon from 'astro-icon'
import { defineConfig } from 'astro/config'
import glsl from 'vite-plugin-glsl'

// https://astro.build/config
export default defineConfig({
site: 'https://playground.shiftbrain.com/',
base: '/post/template',
base: '/post/particle-clock',
server: {
open: '/post/template',
open: '/post/particle-clock/',
},
prefetch: true,
integrations: [
Expand All @@ -21,6 +22,7 @@ export default defineConfig({
react(),
],
vite: {
plugins: [glsl()],
define: {
'import.meta.vitest': 'undefined',
},
Expand Down
53 changes: 51 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"eslint-plugin-astro": "1.1.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-tailwindcss": "3.15.1",
"gsap": "3.12.7",
"leva": "0.9.35",
"lil-gui": "0.20.0",
"postcss-fluid-sizing-function": "0.0.2",
"prettier": "3.2.5",
"prettier-plugin-astro": "0.14.1",
Expand All @@ -47,6 +49,8 @@
"react-device-detect": "2.2.3",
"react-dom": "18.3.1",
"rollup-plugin-visualizer": "5.12.0",
"stats-gl": "3.6.0",
"three": "0.173.0",
"tiny-invariant": "1.3.3",
"vitest": "1.5.3"
},
Expand All @@ -62,7 +66,8 @@
"inquirer": "9.3.2",
"postcss-preset-env": "10.0.5",
"tsx": "4.7.2",
"typescript-eslint": "8.8.0"
"typescript-eslint": "8.8.0",
"vite-plugin-glsl": "1.3.1"
},
"overrides": {
"leva": {
Expand Down
Binary file added public/images/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/colon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"slug": "particle-clock",
"title": "Particle Clock",
"author": "komakine",
"tags": [
"three",
"animation",
"glsl",
"particle"
],
"device": "all"
}
22 changes: 0 additions & 22 deletions src/pages/_alpine-example.astro

This file was deleted.

18 changes: 0 additions & 18 deletions src/pages/_react-example.astro

This file was deleted.

7 changes: 2 additions & 5 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import { title, slug } from '../meta.json'
<Layout {title} repoUrl={`https://github.com/devjam/playground-${slug}`}>
<main>
{/* contents start */}
<div class="relative flex min-h-svh flex-col items-center justify-center text-30">
<ul class="list-disc">
<li>Alpine example → _alpine-example.astro</li>
<li>React example → _react-example.astro</li>
</ul>
<div x-data="particleClock" class="h-lvh w-screen">
<div class="absolute inset-0 size-full" x-ref="container"></div>
</div>
{/* contents end */}
</main>
Expand Down
Loading

0 comments on commit a083447

Please sign in to comment.