Skip to content

Commit b405009

Browse files
authored
fix landing page (#92)
Signed-off-by: Srinivasan Parthasarathy <[email protected]>
1 parent 4864406 commit b405009

File tree

8 files changed

+1158
-264
lines changed

8 files changed

+1158
-264
lines changed

docs/images/iter8-intro-dark.png

-48.3 KB
Loading

docs/images/iter8-intro-light.png

-6.31 KB
Loading

docs/images/src/iter8-intro-dark.excalidraw

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

docs/images/src/iter8-intro.excalidraw

Lines changed: 176 additions & 254 deletions
Large diffs are not rendered by default.

docs/stylesheets/main.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
.mdx-container {
66
padding-top: 2rem;
7-
background: linear-gradient(to bottom, #cd0404, #430195);
87
min-height: 44.2rem;
98
}
109

overrides/home.html

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@
1111
position: initial;
1212
}
1313

14+
/* gray out roadmap items */
15+
.roadmap {
16+
color: rgba(255, 255, 255, 0.5);
17+
}
18+
19+
/* background fill for container in home page */
20+
.md-container {
21+
background:
22+
linear-gradient(
23+
to bottom,
24+
hsla(0, 96%, 41%),
25+
rgb(67, 1, 149)
26+
);
27+
}
28+
1429
/* Remove spacing, as we cannot hide it completely */
1530
.md-main__inner {
1631
margin: 0;
@@ -67,10 +82,32 @@ <h3>
6782
</a>
6883

6984
</div>
85+
</div>
86+
87+
<div class="mdx-hero">
88+
<div class="mdx-hero__content">
89+
<h1>
90+
<strong>Use-cases</strong>
91+
</h1>
92+
93+
<h3>
94+
<ul>
95+
<li>
96+
Reliable and automated traffic engineering: blue-green, canary, and mirroring
97+
</li>
98+
<li>
99+
Metrics-driven validation: A/B/n testing, performance testing
100+
</li>
101+
<li class="roadmap">
102+
Metrics-driven validation (roadmap): drift detection, golden testing
103+
</li>
104+
</ul>
105+
</h3>
106+
</div>
70107

71108
<!-- Hero image -->
72109
<div class="mdx-hero__image">
73-
<img src="{{ base_url }}/images/iter8-intro-light.png" alt="Iter8 experiment" draggable="false">
110+
<img src="{{ base_url }}/images/iter8-intro-dark.png" alt="Iter8 experiment" draggable="false">
74111
</div>
75112

76113
</div>

scss/layout/_hero.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
// Landing page container
66
.mdx-container {
77
padding-top: px2rem(40px);
8-
background:
9-
linear-gradient(
10-
to bottom,
11-
hsla(0, 96%, 41%),
12-
rgb(67, 1, 149)
13-
);
148
min-height: px2rem(884px);
159
}
1610

scss/utilities/_convert.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
@function px2em($size, $base: 16px) {
5353
@if unit($size) == px {
5454
@if unit($base) == px {
55-
@return ($size / $base) * 1em;
55+
@return (calc($size / $base)) * 1em;
5656
} @else {
5757
@error "Invalid base: #{$base} - unit must be 'px'";
5858
}
@@ -67,7 +67,7 @@
6767
@function px2rem($size, $base: 20px) {
6868
@if unit($size) == px {
6969
@if unit($base) == px {
70-
@return ($size / $base) * 1rem;
70+
@return (calc($size / $base)) * 1rem;
7171
} @else {
7272
@error "Invalid base: #{$base} - unit must be 'px'";
7373
}

0 commit comments

Comments
 (0)