Corporate website for Hans Republic showcasing multiple digital brands with a monitoring dashboard.
@theme directive# Install dependencies
npm install
# Start development server
npm run dev
Open http://localhost:3003 in your browser.
src/
├── app.css # Global styles with Tailwind v4 @theme
├── lib/
│ ├── components/ # UI components
│ │ ├── ui/ # Button, Card, Badge, Section
│ │ ├── layout/ # Header, Footer
│ │ └── brands/ # BrandCard, BrandList
│ ├── data/ # JSON/YAML configuration
│ │ ├── brands.json # Brand data
│ │ └── properties.yaml # Monitoring properties
│ └── types.ts # TypeScript definitions
└── routes/
├── +page.svelte # Homepage
├── brands/ # Brand listing & detail
├── monitoring/ # Monitoring dashboard
└── api/monitoring/ # Webhook endpoint
Edit src/lib/data/brands.json:
{
"brands": [
{
"id": "new-brand",
"name": "New Brand",
"tagline": "What we do",
"description": "Full description...",
"image": "https://example.com/image.jpg",
"services": ["web-development"],
"websiteUrl": "https://newbrand.com",
"order": 6
}
]
}
https://your-domain.com/api/monitoringnpm run build
The output will be in the build/ directory.