Css- poprawka formatowania wyszukiwania kanałów i poprawiony układ kontakt

This commit is contained in:
dm
2025-12-21 10:09:52 +01:00
parent 664acbf86b
commit 22673ff8d2
5 changed files with 37 additions and 20 deletions

View File

@@ -21,7 +21,12 @@ type ContactData = {
phone: { placeholder: string }; phone: { placeholder: string };
subject: { placeholder: string }; subject: { placeholder: string };
message: { placeholder: string; rows: number }; message: { placeholder: string; rows: number };
rodo: { label: string; policyLink: string; policyTitle: string; policyText: string }; rodo: {
label: string;
policyLink: string;
policyTitle: string;
policyText: string;
};
submit: { label: string; title: string }; submit: { label: string; title: string };
successMessage: string; successMessage: string;
errorMessage: string; errorMessage: string;
@@ -37,14 +42,17 @@ const form = data.form;
<DefaultLayout seo={seo}> <DefaultLayout seo={seo}>
<section class="f-section"> <section class="f-section">
<div class="f-section-grid md:grid-cols-2 gap-10 items-start"> <div class="f-contact-grid">
{/* row 1: tytuły */}
<h1 class="f-section-title m-0">{data.title}</h1>
<h1 class="f-section-title m-0">{data.contactFormTitle}</h1>
{/* row 2: treść */}
<div class="f-contact-item"> <div class="f-contact-item">
<h1 class="f-section-title">{data.title}</h1>
<Markdown text={data.description} /> <Markdown text={data.description} />
</div> </div>
<div id="form"> <div id="form">
<h1 class="f-section-title">{data.contactFormTitle}</h1>
<form id="contactForm" class="f-contact-form"> <form id="contactForm" class="f-contact-form">
<div class="f-contact-form-inner"> <div class="f-contact-form-inner">

View File

@@ -397,9 +397,14 @@
} }
.f-note-acc-body { .f-note-acc-body {
@apply text-sm opacity-80 leading-relaxed ml-5; display: none;
} }
/* widoczne tylko gdy details jest otwarty */
.f-note-acc[open] .f-note-acc-body {
display: block;
@apply text-sm opacity-80 leading-relaxed ml-5;
}
.f-note-acc-p { .f-note-acc-p {
@apply mb-1 last:mb-0; @apply mb-1 last:mb-0;
} }

View File

@@ -1,23 +1,26 @@
/* @tailwind base; */ .f-contact-grid {
@apply mx-auto grid max-w-7xl gap-10;
@apply md:grid-cols-2;
@apply items-start;
}
.f-contact-item { .f-contact-item {
h3, h3,
h4 { h4 {
@apply text-2xl font-semibold text-[--f-contact-item-text] m-0; @apply m-0 text-2xl font-semibold text-[--f-contact-item-text];
} }
p:first-of-type { p:first-of-type {
@apply py-3 text-3xl; @apply py-3 text-3xl;
} }
} }
.f-contact-form { .f-contact-form {
@apply space-y-1; @apply space-y-1;
.f-contact-form-inner { .f-contact-form-inner {
@apply grid grid-cols-2 gap-4 @apply grid grid-cols-2;
} }
.f-rodo { .f-rodo {
@@ -29,23 +32,24 @@
} }
} }
.f-contact-map { .f-contact-map {
@apply w-full max-w-7xl mx-auto mt-6; @apply mx-auto mt-6 w-full max-w-7xl;
} }
.f-toast { .f-toast {
@apply fixed left-1/2 z-[999999] pointer-events-none; @apply fixed left-1/2 z-[999999] pointer-events-none;
top: calc(var(--nav-height, 80px) + 20px); top: calc(var(--nav-height, 80px) + 20px);
@apply -translate-x-1/2 -translate-y-3 opacity-0 transition-all duration-300 ease-out;
@apply opacity-0 -translate-y-3 -translate-x-1/2 transition-all duration-300 ease-out;
} }
.f-toast.visible { .f-toast.visible {
@apply opacity-100 translate-y-0; @apply translate-y-0 opacity-100;
} }
.f-toast-msg { .f-toast-msg {
@apply px-5 py-3 rounded-xl shadow-lg text-lg bg-[--f-background-toast] text-[--f-text]; @apply rounded-xl bg-[--f-background-toast] px-5 py-3 text-lg text-[--f-text] shadow-lg;
} }
.f-toast-msg.success { .f-toast-msg.success {

View File

@@ -1,5 +1,5 @@
.f-chsearch { .f-chsearch {
@apply mt-6;
} }
.f-chsearch__top { .f-chsearch__top {

View File

@@ -18,7 +18,7 @@
} }
.f-section-grid { .f-section-grid {
@apply grid items-center gap-5 max-w-7xl mx-auto mt-8; @apply grid items-center gap-5 max-w-7xl mx-auto;
} }
.f-section-grid-single { .f-section-grid-single {