Redesign hero section to be more compact with coral accent
Reduced padding and title size to eliminate empty feeling, added decorative coral underline bar for visual interest, and subtle fade-in animation on page load. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,29 +4,52 @@
|
||||
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
padding: 3rem 2rem;
|
||||
margin-bottom: 2.5rem;
|
||||
padding: 2rem 2rem 1.75rem;
|
||||
background: linear-gradient(135deg, var(--bg-secondary, #f3ede4) 0%, var(--bg-primary, #faf7f2) 100%);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border-color, #e5dfd5);
|
||||
animation: heroFadeIn 0.5s ease-out;
|
||||
}
|
||||
|
||||
@keyframes heroFadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-8px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.heroTitle {
|
||||
font-size: 3rem;
|
||||
font-size: 2.25rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary, #1a1612);
|
||||
margin-bottom: 1rem;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 0.5rem;
|
||||
line-height: 1.2;
|
||||
letter-spacing: -0.02em;
|
||||
font-family: var(--font-playfair), 'Playfair Display', serif;
|
||||
}
|
||||
|
||||
/* Coral accent bar under title */
|
||||
.heroTitle::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 80px;
|
||||
height: 3px;
|
||||
background: var(--accent-coral, #e07256);
|
||||
border-radius: 2px;
|
||||
margin: 0.75rem auto 0;
|
||||
}
|
||||
|
||||
.heroDescription {
|
||||
font-size: 1.125rem;
|
||||
font-size: 1rem;
|
||||
color: var(--text-secondary, #5c564d);
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
line-height: 1.6;
|
||||
max-width: 520px;
|
||||
margin: 0.75rem auto 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.locationBanner {
|
||||
@@ -166,17 +189,22 @@
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.hero {
|
||||
padding: 2rem 1rem;
|
||||
margin-bottom: 2rem;
|
||||
padding: 1.5rem 1rem 1.25rem;
|
||||
margin-bottom: 1.5rem;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.heroTitle {
|
||||
font-size: 2rem;
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
.heroTitle::after {
|
||||
width: 60px;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.heroDescription {
|
||||
font-size: 1rem;
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
|
||||
.grid {
|
||||
|
||||
Reference in New Issue
Block a user