Skip to content

Commit 698a5d3

Browse files
kuco23claude
andcommitted
claude:style: collapse hero columns below 1200px and match heights above
Move the hero from col-lg-* to col-xl-* so the layout stacks below 1200px, where the left logo card was naturally taller than the right card stack. At xl and up, stretch the left .about-image-part to fill the column via flex while centering the SVG with align-self. Trim the left card's inline sizing so the right stack remains the height anchor. Extend the metrics-grid top-margin breakpoint to cover the new 992-1199 stacked range so spacing between the stacked cards stays consistent. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0f02a67 commit 698a5d3

3 files changed

Lines changed: 36 additions & 6 deletions

File tree

src/assets/css/custom.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,3 +306,33 @@
306306
color: rgba(255, 255, 255, 0.6);
307307
margin-bottom: 22px;
308308
}
309+
310+
/* HERO: equalize left and right column heights at xl+ breakpoints.
311+
Below 1200px the columns stack (col-xl-*), so no height matching is needed.
312+
At xl and above, the right column's two stacked cards anchor the height
313+
and the left .about-image-part stretches via flex to match. The left card's
314+
natural content is intentionally kept shorter than the right's combined
315+
height so this stretch direction holds at every side-by-side width. */
316+
@media (min-width: 1200px) {
317+
.about-area .col-xl-4 {
318+
display: flex;
319+
flex-direction: column;
320+
}
321+
.about-area .col-xl-4 > div:first-child {
322+
flex: 1;
323+
display: flex;
324+
flex-direction: column;
325+
}
326+
.about-area .about-image-part {
327+
flex: 1;
328+
display: flex;
329+
flex-direction: column;
330+
justify-content: center;
331+
}
332+
.about-area .about-image-part > img {
333+
align-self: center;
334+
}
335+
.about-area .about-image-part .about-social {
336+
margin-top: 20px;
337+
}
338+
}

src/assets/css/pageStatsPanel.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
animation: stats-fade-in 0.4s 0.1s ease-out both;
114114
}
115115

116-
@media (max-width: 991px) {
116+
@media (max-width: 1199px) {
117117
.metrics-grid {
118118
margin-top: 30px;
119119
}

src/components/sections/hero.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ const Hero = () => {
4040
<div className="container">
4141
<div className="row">
4242
{/* <!-- START ABOUT IMAGE DESIGN AREA --> */}
43-
<div className="col-lg-4">
43+
<div className="col-xl-4">
4444
<SlideUp>
4545
<div className="about-image-part">
46-
<img src={profile} alt="StakeCore" style={{ width: 215 }} />
47-
<h2 style={{ marginTop: 20, marginBottom: 0, letterSpacing: '0.15em', textTransform: 'uppercase', fontSize: 32 }}>
46+
<img src={profile} alt="StakeCore" style={{ width: 170 }} />
47+
<h2 style={{ marginTop: 12, marginBottom: 0, letterSpacing: '0.15em', textTransform: 'uppercase', fontSize: 30 }}>
4848
StakeCore
4949
</h2>
50-
<p style={{ marginTop: 30, marginBottom: 40 }}>
50+
<p style={{ marginTop: 20, marginBottom: 20 }}>
5151
Infrastructure provider for core crypto protocols on Flare, Avalanche, and Songbird.
5252
Provide security by delegating your dormant tokens to us and earn RISK-FREE yield in return!
5353
</p>
@@ -63,7 +63,7 @@ const Hero = () => {
6363
</div>
6464
{/* <!-- / END ABOUT IMAGE DESIGN AREA -->
6565
<!-- START ABOUT TEXT DESIGN AREA --> */}
66-
<div className="col-lg-8">
66+
<div className="col-xl-8">
6767
{component}
6868
</div>
6969
{/* <!-- / END ABOUT TEXT DESIGN AREA --> */}

0 commit comments

Comments
 (0)