Build portfolio site - Astro + Tailwind, trilingual structure

- Astro 5.x + Tailwind CSS 4.x
- Dark theme with warm orange accent (#f97316)
- i18n routing: /en/, /de/, /es/ (English content complete, DE/ES placeholders)
- Components: Navbar, Hero, Services (4 cards), Projects (4 case studies), About, Contact, Footer
- Fade-in scroll animations
- Mobile-responsive with hamburger menu
- All content from content/*.md integrated
- SEO meta tags, Open Graph tags
- Clean build with no errors
This commit is contained in:
2026-03-22 12:27:36 +00:00
parent e9403188c4
commit fba9133d51
28 changed files with 6231 additions and 2 deletions

15
src/i18n/utils.ts Normal file
View File

@@ -0,0 +1,15 @@
import en from './en.json';
import de from './de.json';
import es from './es.json';
const translations = {
en,
de,
es
} as const;
export type Locale = keyof typeof translations;
export function getTranslations(locale: Locale) {
return translations[locale] || translations.en;
}