feat: add hero section and service cards to the hub page
CVE Watch card resolves its href per-locale (cve-en/cve-fr), Convert resolves to the same URL on both locales.
This commit is contained in:
@@ -1,10 +1,25 @@
|
||||
---
|
||||
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||
import Header from '../../components/Header.astro';
|
||||
import ServiceCard from '../../components/ServiceCard.astro';
|
||||
import { getDictionary } from '../../i18n';
|
||||
import { services } from '../../i18n/services';
|
||||
|
||||
const locale = 'en';
|
||||
const t = getDictionary(locale);
|
||||
---
|
||||
<BaseLayout locale={locale}>
|
||||
<Header locale={locale} />
|
||||
<h1>Ombrora</h1>
|
||||
<main>
|
||||
<section class="hero">
|
||||
<h1>{t.hero.title}</h1>
|
||||
<p>{t.hero.subtitle}</p>
|
||||
</section>
|
||||
<section class="services">
|
||||
<h2>{t.services.heading}</h2>
|
||||
<div class="services-grid">
|
||||
{services.map((service) => <ServiceCard service={service} locale={locale} />)}
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</BaseLayout>
|
||||
|
||||
Reference in New Issue
Block a user