feat: improve content editor and move hero config to JSON

This commit is contained in:
Do Siki
2026-04-26 22:52:28 +02:00
parent 30f0b94a2f
commit a6e626179d
7 changed files with 459 additions and 54 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ export default function ContactPage() {
<div>
<h3 className="font-semibold text-gray-900 mb-1">{pageContent.info.webmail.title}</h3>
<a
href={siteConfig.hero.cta.primary.href}
href={content.pages.home.hero.cta.primary.href}
target="_blank"
rel="noopener noreferrer"
className="text-blue-600 hover:text-blue-700"
+9 -9
View File
@@ -25,22 +25,22 @@ export default function Home() {
className="text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight animate-fade-in-up"
style={{ color: 'var(--color-foreground)' }}
>
{siteConfig.hero.title}
{pageContent.hero.title}
</h1>
<p
className="text-lg md:text-xl max-w-4xl mx-auto mb-10 leading-relaxed animate-fade-in-up"
style={{ color: 'var(--color-foreground-muted)', animationDelay: '100ms' }}
>
{siteConfig.hero.description}
{pageContent.hero.description}
</p>
<div
className="flex flex-col sm:flex-row gap-4 justify-center items-center animate-fade-in-up"
style={{ animationDelay: '200ms' }}
>
<a
href={siteConfig.hero.cta.primary.href}
target={siteConfig.hero.cta.primary.external ? '_blank' : undefined}
rel={siteConfig.hero.cta.primary.external ? 'noopener noreferrer' : undefined}
href={pageContent.hero.cta.primary.href}
target={pageContent.hero.cta.primary.external ? '_blank' : undefined}
rel={pageContent.hero.cta.primary.external ? 'noopener noreferrer' : undefined}
className="btn btn-primary text-lg px-8 py-4 group"
>
<svg
@@ -51,14 +51,14 @@ export default function Home() {
>
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10" />
</svg>
{siteConfig.hero.cta.primary.text}
{pageContent.hero.cta.primary.text}
</a>
{siteConfig.hero.cta.secondary && (
{pageContent.hero.cta.secondary && (
<a
href={siteConfig.hero.cta.secondary.href}
href={pageContent.hero.cta.secondary.href}
className="btn btn-secondary text-lg px-8 py-4"
>
{siteConfig.hero.cta.secondary.text}
{pageContent.hero.cta.secondary.text}
</a>
)}
</div>
+1 -1
View File
@@ -142,7 +142,7 @@ export default function ServicesPage() {
{pageContent.cta.primaryButton}
</a>
<a
href={siteConfig.hero.cta.primary.href}
href={content.pages.home.hero.cta.primary.href}
target="_blank"
rel="noopener noreferrer"
className="inline-block border-2 border-white text-white hover:bg-white hover:text-gray-900 font-medium px-8 py-3 rounded-md transition-colors"