mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(docs): center hero title and refine homepage spacing
The hero title was left-aligned while tagline/buttons were centered, creating a visual mismatch. Use flexbox centering on .VPHero .main to align all hero elements. Bump font sizes slightly and equalize feature card heights with height: 100%.
This commit is contained in:
@@ -18,43 +18,49 @@
|
|||||||
|
|
||||||
/* Compact hero: reduce padding so entire page fits in one viewport */
|
/* Compact hero: reduce padding so entire page fits in one viewport */
|
||||||
.VPHero {
|
.VPHero {
|
||||||
padding-top: calc(var(--vp-nav-height) + 20px) !important;
|
padding-top: calc(var(--vp-nav-height) + 24px) !important;
|
||||||
padding-bottom: 12px !important;
|
padding-bottom: 12px !important;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPHero .main {
|
.VPHero .main {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPHero .main .name,
|
.VPHero .main .name {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
.VPHero .main .name .clip {
|
.VPHero .main .name .clip {
|
||||||
font-size: 28px;
|
font-size: 32px;
|
||||||
line-height: 1.2;
|
line-height: 1.15;
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPHero .main .text {
|
.VPHero .main .text {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
line-height: 1.2;
|
line-height: 1.15;
|
||||||
|
max-width: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPHero .main .tagline {
|
.VPHero .main .tagline {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
line-height: 1.4;
|
line-height: 1.45;
|
||||||
padding-top: 4px;
|
padding-top: 6px;
|
||||||
max-width: 560px;
|
max-width: 520px;
|
||||||
margin: 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPHero .main .actions {
|
.VPHero .main .actions {
|
||||||
padding-top: 12px;
|
padding-top: 14px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Quick start command banner on homepage */
|
/* Quick start command banner on homepage */
|
||||||
.quick-start-banner {
|
.quick-start-banner {
|
||||||
max-width: 960px;
|
max-width: 960px;
|
||||||
margin: 0 auto 12px;
|
margin: 0 auto 14px;
|
||||||
padding: 0 24px;
|
padding: 0 24px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@@ -67,7 +73,7 @@
|
|||||||
/* Compact 3-column feature grid */
|
/* Compact 3-column feature grid */
|
||||||
.VPHomeFeatures {
|
.VPHomeFeatures {
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
padding-bottom: 8px !important;
|
padding-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPFeatures .container {
|
.VPFeatures .container {
|
||||||
@@ -86,27 +92,27 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.VPFeature {
|
.VPFeature {
|
||||||
padding: 16px;
|
padding: 16px 18px;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPFeature .title {
|
.VPFeature .title {
|
||||||
font-size: 13px;
|
font-size: 13.5px;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPFeature .details {
|
.VPFeature .details {
|
||||||
font-size: 11.5px;
|
font-size: 12px;
|
||||||
line-height: 1.4;
|
line-height: 1.45;
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPFooter {
|
.VPFooter {
|
||||||
padding: 12px 24px;
|
padding: 14px 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPFooter .message,
|
.VPFooter .message,
|
||||||
.VPFooter .copyright {
|
.VPFooter .copyright {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
@@ -114,7 +120,6 @@
|
|||||||
grid-template-columns: 1fr !important;
|
grid-template-columns: 1fr !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.VPHero .main .name,
|
|
||||||
.VPHero .main .name .clip {
|
.VPHero .main .name .clip {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user