ShadowGame is a high-performance, gamified learning platform built on the modern React ecosystem.
- Framework: Next.js 15 (App Router, Server Components)
- Language: TypeScript
- Styling: Tailwind CSS v4
- Animations:
framer-motion(UI transitions)gsap(Complex sequences)
- 3D Graphics:
react-three-fiber/drei(Hero elements, if applicable) - Editor:
@monaco-editor/react(In-browser IDE) - State Management:
zustand
βββ app/ # Next.js App Router pages
β βββ layout.tsx # Root layout (Theme provider, Font injection)
β βββ page.tsx # Landing page
β βββ globals.css # Global styles & Theme variables
βββ components/ # React Components
β βββ landing/ # specific landing page sections (Hero, FAQ, etc.)
β βββ ui/ # Reusable UI atoms (Buttons, Inputs)
βββ public/ # Static assets
βββ docs/ # Documentation
We use a dual-theme system managed by next-themes and CSS variables in app/globals.css.
- Concept: "Deep Space Cyber-Luxe"
- Primary: Electric Purple / Neon Cyan
- Background: Deep Void Black (
#020005)
- Concept: "Clean Tech / Corporate"
- Primary: Deep Violet / Sky Blue
- Background: Cool Gray (
#F5F7FA)
Rule: All components MUST start with bg-background text-foreground (or semantic equivalents) to support both modes automatically. Avoid hardcoding colors like bg-black.
-
Clone & Install
npm install
-
Environment Variables Copy
.env.exampleto.env.DATABASE_URL="postgresql://..." NEXTAUTH_SECRET="secret..."
-
Run Dev Server
npm run dev
Open http://localhost:3000.
Used for headlines. Supports "mask-up" animation.
<TextReveal text="Hello World" />Wrapper for section entrances.
<ScrollAnimation preset="rotate-up">
<YourComponent />
</ScrollAnimation>Framer motion wrapper that attracts the cursor.
This project is configured for Vercel. Note: Deployment rights are reserved. Do not deploy public mirrors of this repository.