fix(ui): Tailwind dark variant follows the site theme; dark hosting plans page
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s

The dark: variant now matches data-theme="dark" (toggle) or the system
preference when no theme is stored, like the design tokens. Other subpage
views (Services, About, Contact, Legal) still need dark: classes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-09-29 19:42:25 +02:00
co-authored by Claude Opus 5.5
parent a970826cb0
commit c225967892
2 changed files with 33 additions and 19 deletions
+19 -19
View File
@@ -44,10 +44,10 @@ export default function HostingPlansView({ content, plans, locale }: HostingPlan
return (
<div className="space-y-16 py-8">
<section className="bg-gradient-to-r from-blue-50 to-indigo-50 py-16">
<section className="bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-slate-800 dark:to-slate-900 py-16">
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h1 className="text-4xl md:text-5xl font-bold text-gray-900 mb-6">{content.hero.title}</h1>
<p className="text-xl text-gray-600 leading-relaxed">{content.hero.subtitle}</p>
<h1 className="text-4xl md:text-5xl font-bold text-gray-900 dark:text-slate-50 mb-6">{content.hero.title}</h1>
<p className="text-xl text-gray-600 dark:text-slate-300 leading-relaxed">{content.hero.subtitle}</p>
</div>
</section>
@@ -59,30 +59,30 @@ export default function HostingPlansView({ content, plans, locale }: HostingPlan
<li
key={plan.id}
data-testid={`plan-${plan.slug}`}
className={`relative flex flex-col bg-white rounded-xl p-8 shadow-sm border ${plan.highlighted ? 'border-blue-600 ring-2 ring-blue-600' : 'border-gray-200'}`}
className={`relative flex flex-col bg-white dark:bg-slate-800 rounded-xl p-8 shadow-sm border ${plan.highlighted ? 'border-blue-600 ring-2 ring-blue-600 dark:border-blue-400 dark:ring-blue-400' : 'border-gray-200 dark:border-slate-700'}`}
>
{plan.highlighted && (
<span className="absolute -top-3 left-8 rounded-full bg-blue-600 px-3 py-1 text-xs font-semibold text-white">
{labels.recommended}
</span>
)}
<h2 className="text-2xl font-bold text-gray-900">{plan.name}</h2>
<p className="mt-1 text-sm font-medium text-blue-700">{plan.audience}</p>
<p className="mt-4 text-gray-600">{plan.shortDescription}</p>
<h2 className="text-2xl font-bold text-gray-900 dark:text-slate-50">{plan.name}</h2>
<p className="mt-1 text-sm font-medium text-blue-700 dark:text-blue-300">{plan.audience}</p>
<p className="mt-4 text-gray-600 dark:text-slate-300">{plan.shortDescription}</p>
<p className="mt-6">
<span className="text-3xl font-bold text-gray-900">{formatHuf(plan.netAmount, locale)}</span>{' '}
<span className="text-gray-700">{labels.plusVat} {period}</span>
<span className="text-3xl font-bold text-gray-900 dark:text-slate-50">{formatHuf(plan.netAmount, locale)}</span>{' '}
<span className="text-gray-700 dark:text-slate-300">{labels.plusVat} {period}</span>
</p>
<p className="text-sm text-gray-500">
<p className="text-sm text-gray-500 dark:text-slate-400">
{labels.grossPrice} {formatHuf(grossAmount(plan.netAmount, vatRate), locale)} {period}
</p>
<dl className="mt-6 divide-y divide-gray-100 border-y border-gray-100">
<dl className="mt-6 divide-y divide-gray-100 border-y border-gray-100 dark:divide-slate-700 dark:border-slate-700">
{comparisonRows(plan, labels).map(([term, value]) => (
<div key={term} className="flex justify-between gap-4 py-2 text-sm">
<dt className="text-gray-600">{term}</dt>
<dd className="font-medium text-gray-900 text-right">{value}</dd>
<dt className="text-gray-600 dark:text-slate-300">{term}</dt>
<dd className="font-medium text-gray-900 dark:text-slate-50 text-right">{value}</dd>
</div>
))}
</dl>
@@ -90,7 +90,7 @@ export default function HostingPlansView({ content, plans, locale }: HostingPlan
{plan.features.length > 0 && (
<ul className="mt-6 space-y-2">
{plan.features.map((feature) => (
<li key={feature} className="flex items-start text-gray-700">
<li key={feature} className="flex items-start text-gray-700 dark:text-slate-200">
<span className="text-blue-500 mr-3" aria-hidden="true">✓</span>
{feature}
</li>
@@ -100,7 +100,7 @@ export default function HostingPlansView({ content, plans, locale }: HostingPlan
<a
href={contactHref}
className={`mt-8 inline-flex justify-center rounded-lg px-6 py-3 font-semibold transition-colors ${plan.highlighted ? 'bg-blue-600 text-white hover:bg-blue-700' : 'border border-blue-600 text-blue-700 hover:bg-blue-50'}`}
className={`mt-8 inline-flex justify-center rounded-lg px-6 py-3 font-semibold transition-colors ${plan.highlighted ? 'bg-blue-600 text-white hover:bg-blue-700' : 'border border-blue-600 text-blue-700 hover:bg-blue-50 dark:border-blue-400 dark:text-blue-300 dark:hover:bg-slate-700'}`}
>
{plan.ctaText}
</a>
@@ -108,13 +108,13 @@ export default function HostingPlansView({ content, plans, locale }: HostingPlan
)
})}
</ul>
<p className="mt-6 text-center text-sm text-gray-500">{labels.priceNote}</p>
<p className="mt-6 text-center text-sm text-gray-500 dark:text-slate-400">{labels.priceNote}</p>
</section>
<section className="bg-gray-50 py-16">
<section className="bg-gray-50 dark:bg-slate-800 py-16">
<div className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h2 className="text-3xl font-bold text-gray-900 mb-4">{content.largerNeeds.title}</h2>
<p className="text-lg text-gray-600 mb-8">{content.largerNeeds.text}</p>
<h2 className="text-3xl font-bold text-gray-900 dark:text-slate-50 mb-4">{content.largerNeeds.title}</h2>
<p className="text-lg text-gray-600 dark:text-slate-300 mb-8">{content.largerNeeds.text}</p>
<a
href={contactHref}
className="inline-flex rounded-lg bg-blue-600 px-8 py-3 font-semibold text-white hover:bg-blue-700 transition-colors"