fix: resize and rearrange hero landing illustrations for laptop screens
This commit is contained in:
@@ -1,20 +1,29 @@
|
||||
/* ============================================================
|
||||
HeroSection — central content overlay on the hero stage
|
||||
============================================================ */
|
||||
|
||||
/* ── Content wrapper ─────────────────────────────────────────── */
|
||||
.heroContentWrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 680px;
|
||||
height: 100%;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
/* ── Top bar: theme toggle (left) + language (right) ─────────── */
|
||||
.topBar {
|
||||
position: absolute;
|
||||
inset: 0 0 auto;
|
||||
z-index: 2;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 72px 60px 0;
|
||||
padding: clamp(18px, 2.5vw, 32px) var(--layout-page-gutter) 0;
|
||||
}
|
||||
|
||||
/* ── Icon buttons ───────────────────────────────────────────── */
|
||||
.iconButton {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -50,26 +59,31 @@
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
/* ── Hero central content ────────────────────────────────────── */
|
||||
.heroContent {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding-top: 74px;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
/* Horizontal padding keeps text clear of illustration zones */
|
||||
padding: 0 clamp(160px, 22vw, 460px);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ── Avatar ─────────────────────────────────────────────────── */
|
||||
.avatarWrapper {
|
||||
margin-bottom: 26px;
|
||||
margin-bottom: clamp(14px, 1.8vw, 22px);
|
||||
}
|
||||
|
||||
.avatarRingOuter {
|
||||
display: inline-block;
|
||||
padding: 6px;
|
||||
border: 3px solid var(--color-blue-700);
|
||||
padding: clamp(4px, 0.5vw, 7px);
|
||||
border: clamp(2px, 0.25vw, 3px) solid var(--color-blue-700);
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
box-shadow: 0 8px 24px var(--shadow-color);
|
||||
box-shadow: 0 8px 32px var(--shadow-color);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .avatarRingOuter {
|
||||
@@ -78,8 +92,8 @@
|
||||
|
||||
.avatarContainer {
|
||||
position: relative;
|
||||
width: 208px;
|
||||
height: 208px;
|
||||
width: clamp(100px, 13vw, 168px);
|
||||
height: clamp(100px, 13vw, 168px);
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
@@ -91,43 +105,48 @@
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/* ── Display title ──────────────────────────────────────────── */
|
||||
.heroTitle {
|
||||
margin-bottom: 14px;
|
||||
margin-bottom: clamp(8px, 1vw, 14px);
|
||||
color: var(--text-primary);
|
||||
font-size: var(--font-size-display-hero);
|
||||
line-height: var(--line-height-display-hero);
|
||||
/* Scale title fluidly so it never overflows into illustration zones */
|
||||
font-size: clamp(32px, 5vw, 64px);
|
||||
line-height: 1.12;
|
||||
text-shadow: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ── Subtitle ───────────────────────────────────────────────── */
|
||||
.heroSubtitle {
|
||||
margin-bottom: 40px;
|
||||
margin-bottom: clamp(20px, 2.8vw, 36px);
|
||||
color: var(--text-primary);
|
||||
font-size: 15px;
|
||||
font-size: clamp(11px, 1vw, 15px);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.16em;
|
||||
letter-spacing: 0.18em;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ── Action buttons ─────────────────────────────────────────── */
|
||||
.actionButtons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
margin-bottom: 34px;
|
||||
gap: clamp(10px, 1.4vw, 20px);
|
||||
margin-bottom: clamp(18px, 2.2vw, 30px);
|
||||
}
|
||||
|
||||
.heroButton {
|
||||
width: 176px;
|
||||
height: 56px;
|
||||
padding: 0 28px;
|
||||
border-width: 3px;
|
||||
font-size: var(--font-size-body-default);
|
||||
min-width: clamp(80px, 9vw, 120px);
|
||||
height: clamp(40px, 4.5vw, 52px);
|
||||
padding: 0 clamp(16px, 2vw, 28px);
|
||||
border-width: 2px;
|
||||
font-size: clamp(13px, 1.1vw, 16px);
|
||||
}
|
||||
|
||||
.heroButtonOutline {
|
||||
border-color: var(--color-blue-600);
|
||||
background: transparent;
|
||||
color: var(--color-blue-700);
|
||||
backdrop-filter: none;
|
||||
}
|
||||
|
||||
.heroButtonPrimary {
|
||||
@@ -153,17 +172,18 @@
|
||||
color: var(--color-blue-950);
|
||||
}
|
||||
|
||||
/* ── Contact bar ─────────────────────────────────────────────── */
|
||||
.contactBar {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 0;
|
||||
gap: clamp(10px, 1.4vw, 18px);
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--color-blue-700);
|
||||
font-size: var(--font-size-body-small);
|
||||
font-size: clamp(11px, 1vw, 14px);
|
||||
font-weight: 500;
|
||||
line-height: var(--line-height-body-small);
|
||||
line-height: 1.6;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .contactBar {
|
||||
@@ -173,7 +193,7 @@
|
||||
.contactItem {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: 6px;
|
||||
color: inherit;
|
||||
transition: opacity var(--motion-duration-fast) ease;
|
||||
}
|
||||
@@ -195,38 +215,22 @@
|
||||
|
||||
.contactDivider {
|
||||
width: 1px;
|
||||
height: 22px;
|
||||
height: 18px;
|
||||
background: var(--color-blue-500);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.topBar {
|
||||
padding: 48px var(--layout-page-gutter) 0;
|
||||
}
|
||||
|
||||
.heroContent {
|
||||
padding: 72px var(--layout-page-gutter) 0;
|
||||
}
|
||||
|
||||
.heroTitle {
|
||||
font-size: 54px;
|
||||
line-height: 64px;
|
||||
}
|
||||
|
||||
.heroButton {
|
||||
width: 156px;
|
||||
}
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
/* ================================================================
|
||||
MOBILE ≤ 640px
|
||||
================================================================ */
|
||||
@media (max-width: 640px) {
|
||||
.heroContentWrapper {
|
||||
min-height: 760px;
|
||||
height: auto;
|
||||
min-height: 680px;
|
||||
}
|
||||
|
||||
.topBar {
|
||||
padding-top: 24px;
|
||||
padding-top: 18px;
|
||||
}
|
||||
|
||||
.iconButton {
|
||||
@@ -235,62 +239,47 @@
|
||||
}
|
||||
|
||||
.heroContent {
|
||||
min-height: 760px;
|
||||
padding: 82px var(--layout-page-gutter) 48px;
|
||||
}
|
||||
|
||||
.avatarWrapper {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.avatarRingOuter {
|
||||
padding: 4px;
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
.avatarContainer {
|
||||
width: 148px;
|
||||
height: 148px;
|
||||
/* Switch to top-anchored layout on mobile */
|
||||
height: auto;
|
||||
min-height: 680px;
|
||||
padding: 72px 24px 40px;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.heroTitle {
|
||||
font-size: clamp(30px, 8.5vw, 42px);
|
||||
white-space: normal;
|
||||
max-width: 300px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 40px;
|
||||
line-height: 48px;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.heroSubtitle {
|
||||
max-width: 280px;
|
||||
margin-bottom: 28px;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
white-space: normal;
|
||||
max-width: 260px;
|
||||
letter-spacing: 0.14em;
|
||||
}
|
||||
|
||||
.actionButtons {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
width: 100%;
|
||||
max-width: 360px;
|
||||
max-width: 320px;
|
||||
gap: 8px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.heroButton {
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
height: 48px;
|
||||
padding: 0 12px;
|
||||
border-width: 2px;
|
||||
font-size: 14px;
|
||||
width: auto;
|
||||
height: 42px;
|
||||
padding: 0 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.contactBar {
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
max-width: 100%;
|
||||
gap: 6px;
|
||||
white-space: normal;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.contactItem {
|
||||
@@ -303,6 +292,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* ================================================================
|
||||
HOVER STATES
|
||||
================================================================ */
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
.iconButton:hover {
|
||||
color: var(--color-blue-500);
|
||||
|
||||
Reference in New Issue
Block a user