Skip to content

Commit a81e9b1

Browse files
committed
add navigation header to v2 homepage test
1 parent d747ec5 commit a81e9b1

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ <h1 class="center-heading" style="color: black">Try Min Now</h1>
107107
</div>
108108
</div>
109109
<div id="homepage-v2" hidden>
110+
<div class="menubar">
111+
<a href="https://github.com/minbrowser/min" target="_blank">
112+
<img src="ext/github-logo.png"/>
113+
Source Code
114+
</a>
115+
<a href="releases/index.html?n=5" target="_blank">Release Notes</a>
116+
<a href="https://github.com/minbrowser/min/wiki" target="_blank">Wiki</a>
117+
<a href="https://github.com/minbrowser/min#contributing-to-min" target="_blank">Contribute</a>
118+
</div>
110119
<div class="hero">
111120
<div class="blue-gradient-background background-block">
112121
</div>

splash/splash.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,38 @@
6363
#footer hr {
6464
border-top: 1px #ccc solid;
6565
border-bottom: none;
66+
}
67+
68+
.menubar {
69+
position: absolute;
70+
top: 0;
71+
right: 0;
72+
z-index: 99999;
73+
padding: 1.5em;
74+
}
75+
76+
@media all and (max-width: 675px) {
77+
.menubar {
78+
display: none;
79+
}
80+
}
81+
82+
.menubar a {
83+
padding: 0.5em 1em;
84+
color: white;
85+
font-weight: 500;
86+
border-radius: 0.25em;
87+
transition: 0.05s background;
88+
}
89+
90+
.menubar a:hover {
91+
background: rgba(255, 255, 255, 0.2);
92+
}
93+
94+
.menubar a img {
95+
width: 1em;
96+
height: 1em;
97+
display: inline-block;
98+
margin-bottom: -0.1em;
99+
margin-right: 0.25em;
66100
}

0 commit comments

Comments
 (0)