Skip to content

Commit e23211b

Browse files
committed
Using a new icon/logo
1 parent 28a3f7a commit e23211b

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

app/assets/stylesheets/components/navigation.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,26 @@
2323

2424
.nav-brand {
2525
display: flex;
26-
flex-direction: column;
26+
align-items: center;
27+
gap: var(--spacing-3);
2728
}
2829

2930
.brand-link {
3031
font-size: var(--font-size-2xl);
3132
font-weight: var(--font-weight-bold);
3233
color: var(--color-text-nav);
3334
text-decoration: none;
34-
margin-bottom: -2px;
35+
margin-bottom: 0;
36+
display: inline-flex;
37+
align-items: center;
38+
gap: var(--spacing-2);
39+
}
40+
41+
.brand-icon {
42+
height: var(--nav-height);
43+
width: auto;
44+
display: block;
45+
object-fit: contain;
3546
}
3647

3748
.tagline {

app/views/layouts/application.html.slim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ html data-theme="light"
1313
= csp_meta_tag
1414
= yield :head
1515
link[rel="icon" href="/icon.png" type="image/png"]
16-
link[rel="icon" href="/icon.svg" type="image/svg+xml"]
1716
link[rel="apple-touch-icon" href="/icon.png"]
1817
script
1918
|
@@ -37,7 +36,9 @@ html data-theme="light"
3736
nav.main-navigation
3837
.nav-container
3938
.nav-brand
40-
= link_to "Hackorum", root_path, class: "brand-link"
39+
= link_to root_path, class: "brand-link" do
40+
img.brand-icon src="/icon.png" alt="Hackorum" width="24" height="24"
41+
span.brand-text Hackorum
4142
span.tagline PostgreSQL Hackers Archive
4243
.nav-links
4344
= link_to "Topics", topics_path, class: "nav-link"

public/icon.png

7.37 KB
Loading

0 commit comments

Comments
 (0)