Skip to content

Commit 50a807c

Browse files
committed
site: update landing page for CIP
1 parent 6debcb0 commit 50a807c

File tree

2 files changed

+1914
-54
lines changed

2 files changed

+1914
-54
lines changed

site/src/pages/index.module.css

Lines changed: 169 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
.heroBanner {
2-
padding: 4rem 0;
3-
text-align: center;
4-
position: relative;
5-
overflow: hidden;
6-
background-image: url("/static/img/wave-pattern-flipped.svg"),url("/static/img/wave-pattern.svg");
7-
background-repeat: repeat-x, repeat-x;
8-
background-position: top, bottom;
2+
padding: 4rem 0;
3+
text-align: center;
4+
position: relative;
5+
overflow: hidden;
6+
background-image: url("/static/img/wave-pattern-flipped.svg"), url("/static/img/wave-pattern.svg");
7+
background-repeat: repeat-x, repeat-x;
8+
background-position: top, bottom;
99

10-
background-size: 50px 50px;
10+
background-size: 50px 50px;
1111

1212
}
1313

1414
@media screen and (max-width: 996px) {
15-
.heroBanner {
16-
padding: 2rem;
17-
}
15+
.heroBanner {
16+
padding: 2rem;
17+
}
1818
}
1919

2020
.buttons {
21-
display: flex;
22-
align-items: center;
23-
justify-content: center;
21+
display: flex;
22+
align-items: center;
23+
justify-content: center;
2424
}
2525

2626
.videoSection {
@@ -42,7 +42,8 @@
4242

4343
.videoWrapper {
4444
position: relative;
45-
padding-bottom: 56.25%; /* 16:9 aspect ratio */
45+
padding-bottom: 56.25%;
46+
/* 16:9 aspect ratio */
4647
height: 0;
4748
overflow: hidden;
4849
border-radius: 8px;
@@ -118,6 +119,7 @@ details[open] .faqQuestion::after {
118119
opacity: 0;
119120
transform: translateY(-10px);
120121
}
122+
121123
to {
122124
opacity: 1;
123125
transform: translateY(0);
@@ -130,14 +132,156 @@ details[open] .faqQuestion::after {
130132
}
131133

132134
.underlineLink {
133-
background: none;
134-
color: var(--ifm-link-color);
135-
text-decoration: underline;
136-
text-underline-offset: 4px;
137-
font-size: 1.1rem;
138-
font-weight: 600;
139-
padding: 0;
140-
border: none;
141-
box-shadow: none;
142-
cursor: pointer;
135+
background: none;
136+
color: var(--ifm-link-color);
137+
text-decoration: underline;
138+
text-underline-offset: 4px;
139+
font-size: 1.1rem;
140+
font-weight: 600;
141+
padding: 0;
142+
border: none;
143+
box-shadow: none;
144+
cursor: pointer;
145+
}
146+
147+
.leiosSvg {
148+
width: 100%;
149+
height: auto;
150+
max-width: 100%;
151+
display: block;
152+
transition: filter 0.3s ease;
153+
background-color: transparent;
154+
/* Ensure SVG scales properly maintaining aspect ratio */
155+
object-fit: contain;
156+
max-height: 500px;
157+
}
158+
159+
.svgContainer {
160+
/* Container that properly handles SVG aspect ratio */
161+
overflow: visible;
162+
position: relative;
163+
padding: 1rem;
164+
border-radius: 4px;
165+
width: 100%;
166+
display: flex;
167+
flex-direction: column;
168+
align-items: center;
169+
}
170+
171+
/* Light theme - specific background color and SVG variables */
172+
[data-theme='light'] .svgContainer {
173+
background-color: #f1f6f8;
174+
--svg-bg-color: #f1f6f8;
175+
--svg-border-color: #d0d0d0;
176+
--svg-text-color: #333333;
177+
--svg-text-secondary: #666666;
178+
--svg-text-muted: #999999;
179+
--svg-arrow-color: #595959;
180+
--svg-legend-bg: #ffffff;
181+
}
182+
183+
/* Dark theme - specific background color and SVG variables */
184+
[data-theme='dark'] .svgContainer {
185+
background-color: #1b1b1d;
186+
--svg-bg-color: #1b1b1d;
187+
--svg-border-color: #555555;
188+
--svg-text-color: #e0e0e0;
189+
--svg-text-secondary: #cccccc;
190+
--svg-text-muted: #aaaaaa;
191+
--svg-arrow-color: #bbbbbb;
192+
--svg-legend-bg: #2a2a2c;
193+
}
194+
195+
/* Remove filters since we're using CSS variables for direct color control */
196+
[data-theme='light'] .leiosSvg {
197+
filter: none;
198+
}
199+
200+
[data-theme='dark'] .leiosSvg {
201+
filter: none;
202+
}
203+
204+
/* SVG Hover Effects */
205+
/* Remove default link underlines for all SVG links */
206+
.leiosSvg a {
207+
text-decoration: none;
208+
}
209+
210+
.leiosSvg a:hover {
211+
text-decoration: none;
143212
}
213+
214+
.leiosSvg a[href*="ranking-blocks"]:hover rect,
215+
.leiosSvg a[href*="endorser-blocks"]:hover rect,
216+
.leiosSvg a[href*="votes-and-certificates"]:hover polygon {
217+
stroke-width: 3;
218+
filter: brightness(1.1);
219+
}
220+
221+
.leiosSvg a[href*="ranking-blocks"]:hover text,
222+
.leiosSvg a[href*="endorser-blocks"]:hover text,
223+
.leiosSvg a[href*="votes-and-certificates"]:hover text {
224+
font-weight: bold;
225+
}
226+
227+
.leiosSvg a[href*="votes-and-certificates"]:hover rect {
228+
transform: scale(2.0);
229+
filter: brightness(1.5) saturate(1.3);
230+
stroke: #ff6b35;
231+
stroke-width: 1;
232+
}
233+
234+
.leiosSvg a[href*="l-hdr"]:hover path,
235+
.leiosSvg a[href*="l-vote"]:hover path,
236+
.leiosSvg a[href*="l-diff"]:hover path,
237+
.leiosSvg a[href*="delta-"]:hover line {
238+
stroke-width: 4;
239+
filter: brightness(1.1);
240+
}
241+
242+
.leiosSvg a[href*="l-hdr"]:hover text,
243+
.leiosSvg a[href*="l-vote"]:hover text,
244+
.leiosSvg a[href*="l-diff"]:hover text,
245+
.leiosSvg a[href*="delta-"]:hover text {
246+
font-weight: bold;
247+
}
248+
249+
.svgCaption {
250+
margin-top: 0.75rem;
251+
font-size: 0.875rem;
252+
color: var(--ifm-color-emphasis-700);
253+
text-align: center;
254+
font-style: italic;
255+
line-height: 1.4;
256+
}
257+
258+
.svgCaption a {
259+
color: var(--ifm-link-color);
260+
text-decoration: none;
261+
font-weight: 500;
262+
}
263+
264+
.svgCaption a:hover {
265+
text-decoration: underline;
266+
}
267+
268+
/* Responsive adjustments for SVG sizing */
269+
@media screen and (max-width: 996px) {
270+
.leiosSvg {
271+
max-height: 400px;
272+
}
273+
274+
.svgContainer {
275+
padding: 0.75rem;
276+
}
277+
}
278+
279+
@media screen and (max-width: 768px) {
280+
.leiosSvg {
281+
max-height: 350px;
282+
}
283+
284+
.svgContainer {
285+
padding: 0.5rem;
286+
}
287+
}

0 commit comments

Comments
 (0)