A modern static site built with Astro, React, React Three Fiber, and Tailwind CSS.
- Astro - Static site generator with excellent performance
- Tailwind CSS - Utility-first CSS framework
- Three.js - 3D graphics library
- React Three Fiber - React renderer for Three.js
- R3F Drei - Useful helpers for React Three Fiber
- pnpm - Fast, disk space efficient package manager
/
├── public/ # Static assets
│ ├── fonts/
│ └── world-110m.json # Map data
├── src/
│ ├── assets/ # Images, icons, and logos
│ ├── components/ # UI components
│ │ └── globe/ # 3D globe components
│ ├── lib/ # Utilities and data
│ ├── pages/ # Astro pages
│ └── types/ # TypeScript types
└── package.json
-
Install
pnpm
using one of these methods:# Using corepack (Recommended for Node.js 16.13+) corepack enable corepack prepare pnpm@latest --activate # Or using npm npm install -g pnpm
- Clone this repository
- Install dependencies with
pnpm install
- Start the development server with
pnpm dev
- Open http://localhost:4321
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
pnpm install |
Installs dependencies |
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |