Skip to content

Commit a67b364

Browse files
authored
Merge pull request #1343 from CodingTrain/new-logo
Adding new logo
2 parents d0c52fb + bc54834 commit a67b364

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

src/components/TopBar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react';
22
import { Link } from 'gatsby';
33

44
import Menu from './Menu';
5+
import NewLogo from '../images/new-logo.svg';
56

67
import * as css from './TopBar.module.css';
78

@@ -56,7 +57,7 @@ const TopBar = () => {
5657
<header className={css.root}>
5758
<div className={css.logo}>
5859
<Link to="/" aria-label="Go to homepage">
59-
<Logo width={250} />
60+
<NewLogo className={css.logoSvg} />
6061
</Link>
6162
</div>
6263
<div className={css.clock}>🕛</div>

src/components/TopBar.module.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
}
1717

1818
.logo {
19-
padding: 0 var(--box-padding);
19+
padding: 0 var(--spacing-normal);
20+
}
21+
22+
.logoSvg {
23+
height: 32px;
2024
}
2125

2226
.clock {
@@ -77,6 +81,12 @@
7781
}
7882
}
7983

84+
@media (--small) {
85+
.logoSvg {
86+
height: 28px;
87+
}
88+
}
89+
8090
@media (--xsmall) {
8191
.shortDate {
8292
display: initial;

src/images/new-logo.svg

Lines changed: 41 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)