|
| 1 | +# CLAUDE.md |
| 2 | + |
| 3 | +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. |
| 4 | + |
| 5 | +## Project Overview |
| 6 | + |
| 7 | +This is the Romano Lab website (romanolab.org), built with Astro 5 and Tailwind CSS 4. It's a static site showcasing research, people, publications, and contact information for the Romano Lab at University of Pennsylvania. |
| 8 | + |
| 9 | +## Development Commands |
| 10 | + |
| 11 | +| Command | Purpose | |
| 12 | +|---------|---------| |
| 13 | +| `npm install` | Install dependencies | |
| 14 | +| `npm run dev` | Start development server at localhost:4321 | |
| 15 | +| `npm run build` | Build production site to ./dist/ | |
| 16 | +| `npm run preview` | Preview production build locally | |
| 17 | +| `npm run astro ...` | Run Astro CLI commands | |
| 18 | + |
| 19 | +## Architecture |
| 20 | + |
| 21 | +### Tech Stack |
| 22 | +- **Astro 5** - Static site generator with component-based architecture |
| 23 | +- **Tailwind CSS 4** - Styling framework via Vite plugin |
| 24 | +- **MDX** - Markdown with JSX support for content |
| 25 | +- **TypeScript** - Strict configuration extending astro/tsconfigs/strict |
| 26 | + |
| 27 | +### Directory Structure |
| 28 | +``` |
| 29 | +src/ |
| 30 | +├── components/ # Reusable Astro components |
| 31 | +├── layouts/ # Page layout templates (Layout.astro) |
| 32 | +├── pages/ # Route-based pages (index, people, research, etc.) |
| 33 | +├── data/ # JSON data files (people.json, publications.json, research.json) |
| 34 | +├── styles/ # Global CSS (global.css with Tailwind) |
| 35 | +├── assets/ # Static assets |
| 36 | +└── _includes/ # Include files |
| 37 | +``` |
| 38 | + |
| 39 | +### Key Components |
| 40 | +- **Layout.astro** - Main layout with navigation, includes responsive mobile menu |
| 41 | +- **Welcome.astro** - Homepage welcome component |
| 42 | +- **Data-driven pages** - People, publications, and research pages consume JSON data files |
| 43 | + |
| 44 | +### Content Management |
| 45 | +The site uses JSON files in `src/data/` for content: |
| 46 | +- `people.json` - Lab members and affiliations |
| 47 | +- `publications.json` - Research publications |
| 48 | +- `research.json` - Research areas and funding information |
| 49 | + |
| 50 | +### Styling |
| 51 | +- Global styles in `src/styles/global.css` |
| 52 | +- Uses Tailwind CSS 4 via Vite plugin |
| 53 | +- Mobile-responsive navigation with hamburger menu |
| 54 | +- Google Fonts integration (Voces font family) |
| 55 | +- Dark theme by default (`data-theme="dark"`) |
| 56 | + |
| 57 | +### Configuration |
| 58 | +- Site URL configured as 'https://romanolab.org' in astro.config.mjs |
| 59 | +- Static output with sitemap generation |
| 60 | +- TypeScript with strict configuration |
0 commit comments