Skip to content

Commit 9cb14c9

Browse files
protocolstardustsingaraiona
authored andcommitted
docs: update hero page
1 parent 045acc0 commit 9cb14c9

2 files changed

Lines changed: 241 additions & 72 deletions

File tree

docs/docs/css/custom.css

Lines changed: 126 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ a.md-button:not(.md-button--primary):hover {
10581058
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
10591059
margin: 0;
10601060
margin-top: -1.5rem;
1061-
padding: 2rem 2rem 0 2rem;
1061+
padding: 1.5rem 2rem 0 2rem;
10621062
text-align: center;
10631063
position: relative;
10641064
overflow: visible;
@@ -1088,49 +1088,90 @@ a.md-button:not(.md-button--primary):hover {
10881088
left: 0;
10891089
right: 0;
10901090
bottom: 0;
1091-
background:
1092-
radial-gradient(circle at 20% 80%, rgba(233, 160, 51, 0.15) 0%, transparent 50%),
1093-
radial-gradient(circle at 80% 20%, rgba(4, 35, 59, 0.05) 0%, transparent 50%);
1091+
background:
1092+
radial-gradient(ellipse 80% 50% at 50% -20%, rgba(233, 160, 51, 0.15), transparent),
1093+
radial-gradient(ellipse 60% 40% at 80% 80%, rgba(4, 35, 59, 0.1), transparent),
1094+
radial-gradient(ellipse 40% 30% at 10% 60%, rgba(233, 160, 51, 0.08), transparent);
10941095
pointer-events: none;
10951096
}
10961097

1097-
/* Light/dark logo switching */
1098-
.light-only {
1099-
display: inline-block;
1098+
.hero-section::after {
1099+
content: "";
1100+
position: absolute;
1101+
top: 0;
1102+
left: 0;
1103+
right: 0;
1104+
bottom: 0;
1105+
background-image:
1106+
linear-gradient(rgba(4, 35, 59, 0.03) 1px, transparent 1px),
1107+
linear-gradient(90deg, rgba(4, 35, 59, 0.03) 1px, transparent 1px);
1108+
background-size: 60px 60px;
1109+
mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
1110+
-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
1111+
pointer-events: none;
1112+
z-index: 0;
11001113
}
11011114

1102-
.dark-only {
1103-
display: none;
1115+
/* Light/dark logo switching */
1116+
.light-only,
1117+
img.light-only,
1118+
.hero-logo.light-only,
1119+
img.hero-logo.light-only,
1120+
.hero-section img.hero-logo.light-only,
1121+
.hero-content img.hero-logo.light-only {
1122+
display: block !important;
1123+
}
1124+
1125+
.dark-only,
1126+
img.dark-only,
1127+
.hero-logo.dark-only,
1128+
img.hero-logo.dark-only,
1129+
.hero-section img.hero-logo.dark-only,
1130+
.hero-content img.hero-logo.dark-only {
1131+
display: none !important;
11041132
}
11051133

1106-
[data-md-color-scheme="slate"] .light-only {
1107-
display: none;
1134+
[data-md-color-scheme="slate"] .light-only,
1135+
[data-md-color-scheme="slate"] img.light-only,
1136+
[data-md-color-scheme="slate"] .hero-logo.light-only,
1137+
[data-md-color-scheme="slate"] img.hero-logo.light-only,
1138+
[data-md-color-scheme="slate"] .hero-section img.hero-logo.light-only,
1139+
[data-md-color-scheme="slate"] .hero-content img.hero-logo.light-only {
1140+
display: none !important;
11081141
}
11091142

1110-
[data-md-color-scheme="slate"] .dark-only {
1111-
display: inline-block;
1143+
[data-md-color-scheme="slate"] .dark-only,
1144+
[data-md-color-scheme="slate"] img.dark-only,
1145+
[data-md-color-scheme="slate"] .hero-logo.dark-only,
1146+
[data-md-color-scheme="slate"] img.hero-logo.dark-only,
1147+
[data-md-color-scheme="slate"] .hero-section img.hero-logo.dark-only,
1148+
[data-md-color-scheme="slate"] .hero-content img.hero-logo.dark-only {
1149+
display: block !important;
11121150
}
11131151

11141152
.hero-content {
11151153
position: relative;
11161154
z-index: 1;
11171155
max-width: 900px;
11181156
margin: auto;
1119-
padding-bottom: 3rem;
1157+
padding-bottom: 1rem;
11201158
}
11211159

1122-
.hero-logo {
1123-
max-width: 400px;
1124-
width: 100%;
1125-
height: auto;
1126-
margin-bottom: 1.5rem;
1160+
.hero-logo,
1161+
.hero-section img.hero-logo,
1162+
.hero-content img.hero-logo {
1163+
display: block !important;
1164+
max-width: 750px !important;
1165+
width: 100% !important;
1166+
height: auto !important;
1167+
margin: 32px auto 32px !important;
11271168
}
11281169

11291170
.hero-section h1 {
11301171
color: #04233b !important;
11311172
font-size: 2.8rem;
11321173
font-weight: 300;
1133-
margin: 0 0 1.5rem 0;
1174+
margin: 0 0 1rem 0;
11341175
line-height: 1.2;
11351176
border: none;
11361177
}
@@ -1148,12 +1189,13 @@ a.md-button:not(.md-button--primary):hover {
11481189
font-weight: 700;
11491190
}
11501191

1151-
.hero-section p {
1152-
color: #555;
1153-
font-size: 1.25rem;
1154-
max-width: 600px;
1155-
margin: 0 auto 2.5rem auto;
1156-
line-height: 1.6;
1192+
.hero-section p,
1193+
.hero-description {
1194+
color: #495057;
1195+
font-size: 1rem;
1196+
max-width: 640px;
1197+
margin: 0 auto 2rem;
1198+
line-height: 1.7;
11571199
}
11581200

11591201
.hero-btn {
@@ -1164,6 +1206,15 @@ a.md-button:not(.md-button--primary):hover {
11641206
transition: all 0.3s ease;
11651207
}
11661208

1209+
.hero-section .md-button,
1210+
.hero-section a.md-button {
1211+
display: inline-flex;
1212+
align-items: center;
1213+
gap: 8px;
1214+
padding: 14px 28px;
1215+
font-weight: 600;
1216+
}
1217+
11671218
.hero-section .md-button--primary {
11681219
background-color: #04233b;
11691220
border-color: #04233b;
@@ -1175,7 +1226,7 @@ a.md-button:not(.md-button--primary):hover {
11751226
border-color: #e9a033;
11761227
color: #04233b;
11771228
transform: translateY(-2px);
1178-
box-shadow: 0 4px 12px rgba(233, 160, 51, 0.4);
1229+
box-shadow: 0 8px 24px rgba(233, 160, 51, 0.4);
11791230
}
11801231

11811232
.hero-section .md-button:not(.md-button--primary) {
@@ -1197,7 +1248,7 @@ a.md-button:not(.md-button--primary):hover {
11971248
justify-content: center;
11981249
align-items: center;
11991250
gap: 1.2rem;
1200-
margin: 1.5rem 0;
1251+
margin: 1.5rem 0 0.5rem 0;
12011252
}
12021253

12031254
.hero-socials p {
@@ -1232,7 +1283,7 @@ a.md-button:not(.md-button--primary):hover {
12321283
display: flex;
12331284
justify-content: center;
12341285
align-items: center;
1235-
gap: 0.5rem;
1286+
gap: 16px;
12361287
flex-wrap: wrap;
12371288
}
12381289

@@ -1756,17 +1807,25 @@ a.md-button:not(.md-button--primary):hover {
17561807
}
17571808

17581809
[data-md-color-scheme="slate"] .hero-section::before {
1759-
background:
1760-
radial-gradient(circle at 20% 80%, rgba(233, 160, 51, 0.1) 0%, transparent 50%),
1761-
radial-gradient(circle at 80% 20%, rgba(233, 160, 51, 0.08) 0%, transparent 50%);
1810+
background:
1811+
radial-gradient(ellipse 80% 50% at 50% -20%, rgba(233, 160, 51, 0.2), transparent),
1812+
radial-gradient(ellipse 60% 40% at 80% 80%, rgba(233, 160, 51, 0.1), transparent),
1813+
radial-gradient(ellipse 40% 30% at 10% 60%, rgba(10, 58, 92, 0.5), transparent);
1814+
}
1815+
1816+
[data-md-color-scheme="slate"] .hero-section::after {
1817+
background-image:
1818+
linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
1819+
linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
17621820
}
17631821

17641822
[data-md-color-scheme="slate"] .hero-section h1 {
17651823
color: #ffffff !important;
17661824
}
17671825

1768-
[data-md-color-scheme="slate"] .hero-section p {
1769-
color: rgba(255, 255, 255, 0.85);
1826+
[data-md-color-scheme="slate"] .hero-section p,
1827+
[data-md-color-scheme="slate"] .hero-description {
1828+
color: rgba(255, 255, 255, 0.8);
17701829
}
17711830

17721831
[data-md-color-scheme="slate"] .hero-section .md-button--primary {
@@ -1778,7 +1837,7 @@ a.md-button:not(.md-button--primary):hover {
17781837
[data-md-color-scheme="slate"] .hero-section .md-button--primary:hover {
17791838
background-color: #f0b85a;
17801839
border-color: #f0b85a;
1781-
box-shadow: 0 4px 12px rgba(233, 160, 51, 0.4);
1840+
box-shadow: 0 8px 24px rgba(233, 160, 51, 0.4);
17821841
}
17831842

17841843
[data-md-color-scheme="slate"] .hero-section .md-button:not(.md-button--primary) {
@@ -1798,10 +1857,13 @@ a.md-button:not(.md-button--primary):hover {
17981857
margin-top: auto;
17991858
margin-bottom: 0;
18001859
margin-left: calc(-50vw + 50%);
1860+
margin-right: calc(-50vw + 50%);
18011861
width: 100vw;
1862+
18021863
background: linear-gradient(90deg, #04233b 0%, #0a3a5c 50%, #04233b 100%);
18031864
overflow: hidden;
18041865
padding: 0.5rem 0;
1866+
box-sizing: border-box;
18051867
}
18061868

18071869
.hero-ticker__content {
@@ -1817,6 +1879,29 @@ a.md-button:not(.md-button--primary):hover {
18171879
font-size: 0.8rem;
18181880
font-weight: 500;
18191881
letter-spacing: 0.3px;
1882+
display: inline-flex;
1883+
align-items: center;
1884+
gap: 0.5rem;
1885+
padding-right: 1.5rem;
1886+
position: center;
1887+
}
1888+
1889+
.hero-ticker__content span:not(:last-child)::after {
1890+
content: '';
1891+
position: absolute;
1892+
right: 0.75rem;
1893+
top: 50%;
1894+
transform: translateY(-50%);
1895+
width: 1px;
1896+
height: 60%;
1897+
background-color: rgba(255, 255, 255, 0.3);
1898+
}
1899+
1900+
.hero-ticker__content .ticker-icon {
1901+
width: 1rem;
1902+
height: 1rem;
1903+
flex-shrink: 0;
1904+
fill: currentColor;
18201905
}
18211906

18221907
@keyframes ticker {
@@ -1982,7 +2067,7 @@ a.md-button:not(.md-button--primary):hover {
19822067

19832068
@media screen and (max-width: 768px) {
19842069
.hero-section {
1985-
padding: 3rem 1rem 4rem 1rem;
2070+
padding: 1.5rem 1rem 0 1rem;
19862071
}
19872072

19882073
.hero-section h1 {
@@ -1993,8 +2078,11 @@ a.md-button:not(.md-button--primary):hover {
19932078
font-size: 1.1rem;
19942079
}
19952080

1996-
.hero-logo {
1997-
max-width: 280px;
2081+
.hero-logo,
2082+
.hero-section img.hero-logo,
2083+
.hero-content img.hero-logo {
2084+
max-width: 320px !important;
2085+
margin-bottom: 24px !important;
19982086
}
19992087

20002088
.hero-btn {

0 commit comments

Comments
 (0)