Skip to content

Commit 162b235

Browse files
committed
Replace navigation bar text with logo for cleaner look
1 parent c6a9aaf commit 162b235

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

_layouts/default.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<body>
55
<header class="site-header">
66
<div class="container">
7-
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title }}</a>
7+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">
8+
<img src="{{ '/assets/images/logo.png' | relative_url }}" alt="{{ site.title }}" class="site-logo">
9+
</a>
810
<nav class="site-nav">
911
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
1012
<label for="nav-trigger">

assets/css/style.scss

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,24 @@ body {
6060
}
6161

6262
.site-title {
63-
color: var(--gold-primary);
64-
font-weight: 700;
65-
font-size: 1.5rem;
66-
margin: 0;
63+
display: flex;
64+
align-items: center;
65+
text-decoration: none;
66+
transition: var(--transition);
67+
68+
.site-logo {
69+
height: 45px;
70+
width: auto;
71+
transition: var(--transition);
72+
}
6773

6874
&:hover {
69-
color: var(--gold-secondary);
7075
text-decoration: none;
76+
77+
.site-logo {
78+
transform: scale(1.05);
79+
filter: brightness(1.2);
80+
}
7181
}
7282
}
7383

0 commit comments

Comments
 (0)