Skip to content

Commit 76d9393

Browse files
feat: use the express logo in the header (#1839)
Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
1 parent d8c2409 commit 76d9393

File tree

3 files changed

+13
-33
lines changed

3 files changed

+13
-33
lines changed

_includes/header.html

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
<div id="mobile-menu">
33
<div id="nav-button" class="fa fa-bars fa-2x button"></div>
44
</div>
5-
<section id="logo"><a href="/" class="express">Express</a>
6-
</section>
5+
<div class="logo-container">
6+
<a href="/" class="hidden-dark" title="Go to homepage" aria-label="Go to homepage">
7+
<img src="/images/brand/logotype-light.svg" alt="Express.js logo" width="90" height="30"/>
8+
</a>
9+
<a href="/" class="hidden-light" title="Go to homepage" aria-label="Go to homepage">
10+
<img src="/images/brand/logotype-dark.svg" alt="Express.js logo" width="90" height="30"/>
11+
</a>
12+
</div>
713
<div id="navbar">
814
<input id="q" placeholder="🔎 search">
915
<ul id="navmenu">

css/style.css

+4-30
Original file line numberDiff line numberDiff line change
@@ -253,23 +253,10 @@ a {
253253
}
254254

255255
/* logo */
256-
257-
#logo {
258-
width: auto;
259-
z-index: 1;
260-
}
261-
262-
#logo a {
256+
.logo-container a {
263257
text-decoration: none;
264258
}
265259

266-
#logo .express {
267-
display: block;
268-
font: 25px "Helvetica Neue", "Open Sans", sans-serif;
269-
font-weight: 100;
270-
color: var(--card-fg);
271-
}
272-
273260
#description .express {
274261
display: block;
275262
font: 4.5em "Helvetica Neue", "Open Sans", sans-serif;
@@ -1039,21 +1026,8 @@ h2 a {
10391026
margin-right: 5%;
10401027
}
10411028

1042-
#logo {
1043-
position: static;
1044-
width: 100%;
1045-
margin-left: 60px;
1046-
}
1047-
1048-
#logo a {
1049-
display: table !important;
1050-
margin: 0 auto;
1051-
text-decoration: none;
1052-
}
1053-
1054-
#logo .express {
1055-
margin-top: 0px;
1056-
font-weight: bold;
1029+
.logo-container {
1030+
margin-inline: auto;
10571031
}
10581032

10591033
#home-menu {
@@ -1396,7 +1370,7 @@ strong.eol {
13961370
}
13971371

13981372
.hidden-dark {
1399-
display: block;
1373+
display: flex;
14001374
}
14011375

14021376
.hidden-light {

css/themes/dark-theme.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ html.dark-mode {
99
}
1010

1111
.hidden-light {
12-
display: block;
12+
display: flex;
1313
}
1414

1515
.hidden-dark {

0 commit comments

Comments
 (0)