QLFW-10: чёткий девиз и поддерживающий текст на первом экране #3
@ -0,0 +1,3 @@
|
||||
# Дизайн
|
||||
Только вёрстка главной (`page.tsx`) и `.reveal` в `globals.css`; новых текстов нет (кнопка берёт `nav.directions`).
|
||||
Орнамент — встроенный SVG, скрыт на телефоне. Реальное фото фонд может прислать позже — заменит орнамент.
|
||||
@ -0,0 +1,5 @@
|
||||
# QLFW-10: чёткий девиз и поддерживающий текст на первом экране
|
||||
|
||||
Девиз был бледным, строка про фонд плохо читалась. Делаем девиз графитовым, строку про фонд — контрастной,
|
||||
добавляем бордовую линию и кнопку «Направления», орнамент в стиле музейных сайтов (SVG, без фото).
|
||||
Анимация появления начинается с 35% непрозрачности и всегда заканчивается полной.
|
||||
@ -0,0 +1,4 @@
|
||||
- [x] Девиз графитовый, строка про фонд контрастная
|
||||
- [x] Бордовая линия и кнопка
|
||||
- [x] Орнамент в баннере
|
||||
- [x] Анимация не оставляет текст бледным
|
||||
@ -41,12 +41,22 @@ export default async function Home({ params }: { params: Promise<{ locale: strin
|
||||
<>
|
||||
<Header t={t} locale={locale} showProjects={m.projects.length > 0} showNews={m.news.length > 0} />
|
||||
<main>
|
||||
<section className="relative flex min-h-[92svh] items-end overflow-hidden border-b border-line"
|
||||
<section className="relative flex min-h-[88svh] items-center overflow-hidden border-b border-line"
|
||||
style={{ background: 'radial-gradient(ellipse at 85% 10%, rgba(122,31,43,0.16), transparent 55%), linear-gradient(180deg, #f7f5f2, #efebe6)' }}>
|
||||
<div className="mx-auto w-full max-w-6xl px-5 pb-16 pt-40 sm:px-8 md:pb-24">
|
||||
<h1 className="reveal font-serif text-[clamp(2.6rem,9vw,7.5rem)] leading-[1.02] tracking-tight">{t.motto}</h1>
|
||||
<p className="reveal reveal-2 mt-8 max-w-xl text-lg text-muted">{t.heroLead}</p>
|
||||
<div className="reveal reveal-3 mt-10 h-px w-24 bg-burgundy" aria-hidden />
|
||||
<svg aria-hidden viewBox="0 0 200 200" fill="none" stroke="#7a1f2b"
|
||||
className="pointer-events-none absolute -right-24 top-1/2 hidden h-[42rem] w-[42rem] -translate-y-1/2 opacity-[0.14] sm:block">
|
||||
{[96, 80, 64, 48, 32, 16].map((r) => <circle key={r} cx="100" cy="100" r={r} strokeWidth="0.8" />)}
|
||||
{Array.from({ length: 12 }, (_, i) => (
|
||||
<path key={i} d="M100 4 C112 36 112 64 100 100 C88 64 88 36 100 4Z" strokeWidth="0.8" transform={`rotate(${i * 30} 100 100)`} />
|
||||
))}
|
||||
</svg>
|
||||
<div className="relative mx-auto w-full max-w-6xl px-5 pb-16 pt-36 sm:px-8 md:pb-24">
|
||||
<div className="reveal mb-8 h-1 w-20 bg-burgundy" aria-hidden />
|
||||
<h1 className="reveal max-w-5xl font-serif text-[clamp(2.4rem,8vw,6.5rem)] font-semibold leading-[1.05] tracking-tight text-graphite">{t.motto}</h1>
|
||||
<p className="reveal reveal-2 mt-8 max-w-2xl text-lg leading-relaxed text-graphite sm:text-xl">{t.heroLead}</p>
|
||||
<a href="#directions" className="reveal reveal-3 mt-10 inline-block bg-burgundy px-8 py-3 text-paper transition hover:bg-graphite">
|
||||
{t.nav.directions}
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
html { scroll-behavior: smooth; }
|
||||
body { background: var(--color-paper); color: var(--color-graphite); font-family: var(--font-sans); }
|
||||
|
||||
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
|
||||
@keyframes rise { from { opacity: 0.35; transform: translateY(18px); } to { opacity: 1; transform: none; } }
|
||||
.reveal { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
|
||||
.reveal-2 { animation-delay: 0.15s; }
|
||||
.reveal-3 { animation-delay: 0.3s; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user