fix(ui): dark theme for the Services and Contact views (MITHOME-134)
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

Adds dark: counterparts to the fixed Tailwind colours (cards, sections,
text, borders, status messages) and explicit colours for the form fields.
About and legal pages already use the theme tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-09-29 20:50:35 +02:00
co-authored by Claude Opus 5.5
parent c225967892
commit 6b39075403
3 changed files with 71 additions and 69 deletions
+46 -46
View File
@@ -118,12 +118,12 @@ export default function ContactView({ content: pageContent, contactEmail, footer
return (
<div className="space-y-16 py-8">
{/* Hero Section */}
<section className="bg-gradient-to-r from-blue-50 to-indigo-50 py-16">
<section className="bg-gradient-to-r from-blue-50 dark:from-slate-800 to-indigo-50 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">
<h1 className="text-4xl md:text-5xl font-bold text-gray-900 dark:text-slate-50 mb-6">
{pageContent.hero.title}
</h1>
<p className="text-xl text-gray-600 leading-relaxed">
<p className="text-xl text-gray-600 dark:text-slate-300 leading-relaxed">
{pageContent.hero.subtitle}
</p>
</div>
@@ -133,22 +133,22 @@ export default function ContactView({ content: pageContent, contactEmail, footer
<div className="grid grid-cols-1 lg:grid-cols-2 gap-12">
{/* Contact Form */}
<div>
<div className="bg-white rounded-xl shadow-sm border border-gray-200 p-8">
<h2 className="text-2xl font-bold text-gray-900 mb-6">
<div className="bg-white dark:bg-slate-800 rounded-xl shadow-sm border border-gray-200 dark:border-slate-700 p-8">
<h2 className="text-2xl font-bold text-gray-900 dark:text-slate-50 mb-6">
{pageContent.form.title}
</h2>
{submitStatus === 'success' && (
<div className="mb-6 p-4 bg-green-50 border border-green-200 rounded-md">
<p className="text-green-800">
<div className="mb-6 p-4 bg-green-50 dark:bg-green-950/40 border border-green-200 dark:border-green-800 rounded-md">
<p className="text-green-800 dark:text-green-200">
✅ {pageContent.form.successMessage}
</p>
</div>
)}
{submitStatus === 'error' && (
<div className="mb-6 p-4 bg-red-50 border border-red-200 rounded-md">
<p className="text-red-800">
<div className="mb-6 p-4 bg-red-50 dark:bg-red-950/40 border border-red-200 dark:border-red-800 rounded-md">
<p className="text-red-800 dark:text-red-200">
❌ {pageContent.form.errorMessage.replace('{email}', contactEmail)}
</p>
</div>
@@ -156,7 +156,7 @@ export default function ContactView({ content: pageContent, contactEmail, footer
<form onSubmit={handleSubmit} className="space-y-6">
<div>
<label htmlFor="name" className="block text-sm font-medium text-gray-700 mb-1">
<label htmlFor="name" className="block text-sm font-medium text-gray-700 dark:text-slate-200 mb-1">
{pageContent.form.fields.name.label} *
</label>
<input
@@ -165,16 +165,16 @@ export default function ContactView({ content: pageContent, contactEmail, footer
name="name"
value={formData.name}
onChange={handleInputChange}
className={`w-full px-3 py-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 ${
errors.name ? 'border-red-300' : 'border-gray-300'
className={`w-full px-3 py-2 border rounded-md shadow-sm bg-white text-gray-900 placeholder:text-gray-400 dark:bg-slate-900 dark:text-slate-50 dark:placeholder:text-slate-500 focus:outline-none focus:ring-2 focus:ring-blue-500 ${
errors.name ? 'border-red-300 dark:border-red-700' : 'border-gray-300 dark:border-slate-600'
}`}
placeholder={pageContent.form.fields.name.placeholder}
/>
{errors.name && <p className="mt-1 text-sm text-red-600">{errors.name}</p>}
{errors.name && <p className="mt-1 text-sm text-red-600 dark:text-red-400">{errors.name}</p>}
</div>
<div>
<label htmlFor="email" className="block text-sm font-medium text-gray-700 mb-1">
<label htmlFor="email" className="block text-sm font-medium text-gray-700 dark:text-slate-200 mb-1">
{pageContent.form.fields.email.label} *
</label>
<input
@@ -183,16 +183,16 @@ export default function ContactView({ content: pageContent, contactEmail, footer
name="email"
value={formData.email}
onChange={handleInputChange}
className={`w-full px-3 py-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 ${
errors.email ? 'border-red-300' : 'border-gray-300'
className={`w-full px-3 py-2 border rounded-md shadow-sm bg-white text-gray-900 placeholder:text-gray-400 dark:bg-slate-900 dark:text-slate-50 dark:placeholder:text-slate-500 focus:outline-none focus:ring-2 focus:ring-blue-500 ${
errors.email ? 'border-red-300 dark:border-red-700' : 'border-gray-300 dark:border-slate-600'
}`}
placeholder={pageContent.form.fields.email.placeholder}
/>
{errors.email && <p className="mt-1 text-sm text-red-600">{errors.email}</p>}
{errors.email && <p className="mt-1 text-sm text-red-600 dark:text-red-400">{errors.email}</p>}
</div>
<div>
<label htmlFor="subject" className="block text-sm font-medium text-gray-700 mb-1">
<label htmlFor="subject" className="block text-sm font-medium text-gray-700 dark:text-slate-200 mb-1">
{pageContent.form.fields.subject.label} *
</label>
<input
@@ -201,16 +201,16 @@ export default function ContactView({ content: pageContent, contactEmail, footer
name="subject"
value={formData.subject}
onChange={handleInputChange}
className={`w-full px-3 py-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 ${
errors.subject ? 'border-red-300' : 'border-gray-300'
className={`w-full px-3 py-2 border rounded-md shadow-sm bg-white text-gray-900 placeholder:text-gray-400 dark:bg-slate-900 dark:text-slate-50 dark:placeholder:text-slate-500 focus:outline-none focus:ring-2 focus:ring-blue-500 ${
errors.subject ? 'border-red-300 dark:border-red-700' : 'border-gray-300 dark:border-slate-600'
}`}
placeholder={pageContent.form.fields.subject.placeholder}
/>
{errors.subject && <p className="mt-1 text-sm text-red-600">{errors.subject}</p>}
{errors.subject && <p className="mt-1 text-sm text-red-600 dark:text-red-400">{errors.subject}</p>}
</div>
<div>
<label htmlFor="message" className="block text-sm font-medium text-gray-700 mb-1">
<label htmlFor="message" className="block text-sm font-medium text-gray-700 dark:text-slate-200 mb-1">
{pageContent.form.fields.message.label} *
</label>
<textarea
@@ -219,12 +219,12 @@ export default function ContactView({ content: pageContent, contactEmail, footer
rows={5}
value={formData.message}
onChange={handleInputChange}
className={`w-full px-3 py-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 ${
errors.message ? 'border-red-300' : 'border-gray-300'
className={`w-full px-3 py-2 border rounded-md shadow-sm bg-white text-gray-900 placeholder:text-gray-400 dark:bg-slate-900 dark:text-slate-50 dark:placeholder:text-slate-500 focus:outline-none focus:ring-2 focus:ring-blue-500 ${
errors.message ? 'border-red-300 dark:border-red-700' : 'border-gray-300 dark:border-slate-600'
}`}
placeholder={pageContent.form.fields.message.placeholder}
/>
{errors.message && <p className="mt-1 text-sm text-red-600">{errors.message}</p>}
{errors.message && <p className="mt-1 text-sm text-red-600 dark:text-red-400">{errors.message}</p>}
</div>
<div>
@@ -234,14 +234,14 @@ export default function ContactView({ content: pageContent, contactEmail, footer
name="gdprConsent"
checked={formData.gdprConsent}
onChange={handleInputChange}
className="mt-1 h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500"
className="mt-1 h-4 w-4 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-slate-600 rounded focus:ring-blue-500"
/>
<span
className="text-sm text-gray-700"
className="text-sm text-gray-700 dark:text-slate-200"
dangerouslySetInnerHTML={{ __html: openExternalLinksInNewTab(gdprLabel) + ' *' }}
/>
</label>
{errors.gdprConsent && <p className="mt-1 text-sm text-red-600">{errors.gdprConsent}</p>}
{errors.gdprConsent && <p className="mt-1 text-sm text-red-600 dark:text-red-400">{errors.gdprConsent}</p>}
</div>
<button
@@ -257,47 +257,47 @@ export default function ContactView({ content: pageContent, contactEmail, footer
{/* Contact Information */}
<div className="space-y-8">
<div className="bg-white rounded-xl shadow-sm border border-gray-200 p-8">
<h2 className="text-2xl font-bold text-gray-900 mb-6">
<div className="bg-white dark:bg-slate-800 rounded-xl shadow-sm border border-gray-200 dark:border-slate-700 p-8">
<h2 className="text-2xl font-bold text-gray-900 dark:text-slate-50 mb-6">
{pageContent.info.title}
</h2>
<div className="space-y-6">
<div className="flex items-start space-x-4">
<div className="w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center flex-shrink-0">
<div className="w-10 h-10 bg-blue-100 dark:bg-blue-900/40 rounded-lg flex items-center justify-center flex-shrink-0">
<span className="text-lg">✉️</span>
</div>
<div>
<h3 className="font-semibold text-gray-900 mb-1">{pageContent.info.email.title}</h3>
<h3 className="font-semibold text-gray-900 dark:text-slate-50 mb-1">{pageContent.info.email.title}</h3>
<a
href={`mailto:${contactEmail}`}
className="text-blue-600 hover:text-blue-700"
className="text-blue-600 dark:text-blue-300 hover:text-blue-700 dark:hover:text-blue-200"
>
{contactEmail}
</a>
<p className="text-sm text-gray-600 mt-1">
<p className="text-sm text-gray-600 dark:text-slate-300 mt-1">
{pageContent.info.email.responseTime}
</p>
</div>
</div>
<div className="flex items-start space-x-4">
<div className="w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center flex-shrink-0">
<div className="w-10 h-10 bg-blue-100 dark:bg-blue-900/40 rounded-lg flex items-center justify-center flex-shrink-0">
<span className="text-lg">🏢</span>
</div>
<div>
<h3 className="font-semibold text-gray-900 mb-1">{pageContent.info.company.title}</h3>
<p className="text-gray-700">{siteConfig.general.name}</p>
<p className="text-sm text-gray-600">{footerAddress}</p>
<h3 className="font-semibold text-gray-900 dark:text-slate-50 mb-1">{pageContent.info.company.title}</h3>
<p className="text-gray-700 dark:text-slate-200">{siteConfig.general.name}</p>
<p className="text-sm text-gray-600 dark:text-slate-300">{footerAddress}</p>
</div>
</div>
<div className="flex items-start space-x-4">
<div className="w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center flex-shrink-0">
<div className="w-10 h-10 bg-blue-100 dark:bg-blue-900/40 rounded-lg flex items-center justify-center flex-shrink-0">
<span className="text-lg">🌐</span>
</div>
<div>
<h3 className="font-semibold text-gray-900 mb-1">{pageContent.info.webmail.title}</h3>
<h3 className="font-semibold text-gray-900 dark:text-slate-50 mb-1">{pageContent.info.webmail.title}</h3>
<a
// WHY webmailHref: a migráció előtti kód itt is a
// "/kapcsolat" hrefet használta (ugyanaz a bug, mint a
@@ -305,11 +305,11 @@ export default function ContactView({ content: pageContent, contactEmail, footer
// URL-re.
href={webmailHref}
{...externalLinkProps(webmailHref)}
className="text-blue-600 hover:text-blue-700"
className="text-blue-600 dark:text-blue-300 hover:text-blue-700 dark:hover:text-blue-200"
>
{pageContent.info.webmail.linkText}
</a>
<p className="text-sm text-gray-600 mt-1">
<p className="text-sm text-gray-600 dark:text-slate-300 mt-1">
{pageContent.info.webmail.subtitle}
</p>
</div>
@@ -318,16 +318,16 @@ export default function ContactView({ content: pageContent, contactEmail, footer
</div>
{/* FAQ */}
<div className="bg-gray-50 rounded-xl p-8">
<h2 className="text-xl font-bold text-gray-900 mb-6">
<div className="bg-gray-50 dark:bg-slate-950 rounded-xl p-8">
<h2 className="text-xl font-bold text-gray-900 dark:text-slate-50 mb-6">
{pageContent.faq.title}
</h2>
<div className="space-y-4">
{(pageContent.faq.items ?? []).map((item, index) => (
<div key={index}>
<h3 className="font-semibold text-gray-900 mb-2">{item.question}</h3>
<p className="text-gray-600 text-sm">{item.answer}</p>
<h3 className="font-semibold text-gray-900 dark:text-slate-50 mb-2">{item.question}</h3>
<p className="text-gray-600 dark:text-slate-300 text-sm">{item.answer}</p>
</div>
))}
</div>
+23 -23
View File
@@ -15,12 +15,12 @@ export default function ServicesView({ content: pageContent, homeServices, featu
return (
<div className="space-y-16 py-8">
{/* Hero Section */}
<section className="bg-gradient-to-r from-blue-50 to-indigo-50 py-16">
<section className="bg-gradient-to-r from-blue-50 dark:from-slate-800 to-indigo-50 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">
<h1 className="text-4xl md:text-5xl font-bold text-gray-900 dark:text-slate-50 mb-6">
{pageContent.hero.title}
</h1>
<p className="text-xl text-gray-600 leading-relaxed">
<p className="text-xl text-gray-600 dark:text-slate-300 leading-relaxed">
{pageContent.hero.subtitle}
</p>
</div>
@@ -30,21 +30,21 @@ export default function ServicesView({ content: pageContent, homeServices, featu
<section className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="grid grid-cols-1 lg:grid-cols-3 gap-8">
{homeServices.map((service) => (
<div key={service.id} className="bg-white rounded-xl shadow-sm border border-gray-200 p-8 hover:shadow-md transition-shadow">
<div className="w-16 h-16 bg-blue-100 rounded-lg flex items-center justify-center mb-6">
<div key={service.id} className="bg-white dark:bg-slate-800 rounded-xl shadow-sm border border-gray-200 dark:border-slate-700 p-8 hover:shadow-md transition-shadow">
<div className="w-16 h-16 bg-blue-100 dark:bg-blue-900/40 rounded-lg flex items-center justify-center mb-6">
<span className="text-2xl">{service.icon}</span>
</div>
<h2 className="text-2xl font-bold text-gray-900 mb-4">{service.title}</h2>
<p className="text-gray-600 leading-relaxed mb-6">{service.description}</p>
<h2 className="text-2xl font-bold text-gray-900 dark:text-slate-50 mb-4">{service.title}</h2>
<p className="text-gray-600 dark:text-slate-300 leading-relaxed mb-6">{service.description}</p>
<div className="mb-6">
<h3 className="text-lg font-semibold text-gray-900 mb-3">{featuresLabel}</h3>
<h3 className="text-lg font-semibold text-gray-900 dark:text-slate-50 mb-3">{featuresLabel}</h3>
<ul className="space-y-2">
{service.features.map((feature, index) => (
<li key={index} className="flex items-start">
<span className="text-blue-500 mr-3 mt-0.5">✓</span>
<span className="text-gray-700">{feature}</span>
<span className="text-gray-700 dark:text-slate-200">{feature}</span>
</li>
))}
</ul>
@@ -52,7 +52,7 @@ export default function ServicesView({ content: pageContent, homeServices, featu
<a
href={contactHref}
className="inline-flex items-center text-blue-600 hover:text-blue-700 font-medium transition-colors"
className="inline-flex items-center text-blue-600 dark:text-blue-300 hover:text-blue-700 dark:hover:text-blue-200 font-medium transition-colors"
>
{service.ctaText}
<svg className="w-4 h-4 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -65,29 +65,29 @@ export default function ServicesView({ content: pageContent, homeServices, featu
</section>
{/* Detailed Services */}
<section className="bg-gray-50 py-16">
<section className="bg-gray-50 dark:bg-slate-950 py-16">
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="text-center mb-12">
<h2 className="text-3xl font-bold text-gray-900 mb-4">
<h2 className="text-3xl font-bold text-gray-900 dark:text-slate-50 mb-4">
{pageContent.details.title}
</h2>
<p className="text-lg text-gray-600">
<p className="text-lg text-gray-600 dark:text-slate-300">
{pageContent.details.subtitle}
</p>
</div>
<div className="space-y-12">
{pageContent.details.services.map((service) => (
<div key={service.title} className="bg-white rounded-xl p-8 shadow-sm">
<div key={service.title} className="bg-white dark:bg-slate-800 rounded-xl p-8 shadow-sm">
<div className="flex items-start space-x-4">
<div className="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center flex-shrink-0">
<div className="w-12 h-12 bg-blue-100 dark:bg-blue-900/40 rounded-lg flex items-center justify-center flex-shrink-0">
<span className="text-xl">{service.icon}</span>
</div>
<div className="flex-1">
<h3 className="text-2xl font-bold text-gray-900 mb-4">{service.title}</h3>
<div className="prose prose-lg text-gray-700">
<h3 className="text-2xl font-bold text-gray-900 dark:text-slate-50 mb-4">{service.title}</h3>
<div className="prose prose-lg text-gray-700 dark:text-slate-200">
<p>{service.description}</p>
<h4 className="text-lg font-semibold text-gray-900 mt-6 mb-3">{service.specs.title}</h4>
<h4 className="text-lg font-semibold text-gray-900 dark:text-slate-50 mt-6 mb-3">{service.specs.title}</h4>
<ul className="space-y-1">
{service.specs.items.map((item, index) => (
<li key={index}>{item}</li>
@@ -104,18 +104,18 @@ export default function ServicesView({ content: pageContent, homeServices, featu
{/* Support Section */}
<section className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="bg-blue-50 rounded-xl p-8 text-center">
<h2 className="text-2xl font-bold text-gray-900 mb-4">
<div className="bg-blue-50 dark:bg-slate-800 rounded-xl p-8 text-center">
<h2 className="text-2xl font-bold text-gray-900 dark:text-slate-50 mb-4">
{pageContent.support.title}
</h2>
<p className="text-lg text-gray-700 mb-6">
<p className="text-lg text-gray-700 dark:text-slate-200 mb-6">
{pageContent.support.subtitle}
</p>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 text-sm">
{(pageContent.support.channels ?? []).map((channel) => (
<div key={channel.title}>
<h3 className="font-semibold text-gray-900 mb-2">{channel.title}</h3>
<p className="text-gray-600">{channel.description}</p>
<h3 className="font-semibold text-gray-900 dark:text-slate-50 mb-2">{channel.title}</h3>
<p className="text-gray-600 dark:text-slate-300">{channel.description}</p>
</div>
))}
</div>