Skip to content

Commit 9bce039

Browse files
committed
Add header and navigation styling for improved layout and responsiveness
1 parent 0a600e3 commit 9bce039

2 files changed

Lines changed: 62 additions & 0 deletions

File tree

_includes/header.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<div class="site-header">
2+
<div class="wrapper">
3+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}<b class="command_prompt"></b><b class="blinking_cursor">_</b></a>
4+
{% if site.dash.nav_links and site.dash.show_nav %}
5+
<nav class="site-nav">
6+
{% for link in site.dash.nav_links %}
7+
<a href="{{ link.url | relative_url }}" class="nav-link">{{ link.title }}</a>
8+
{% endfor %}
9+
</nav>
10+
{% endif %}
11+
<span class="social_links">
12+
{% for link in site.dash.social_links %}
13+
{% if link.fa == true %}
14+
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"{% if link.rel %} rel="{{ link.rel }}"{% endif %}><i class="fa fa-{{ link.icon }}"></i></a>
15+
{% else %}
16+
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"{% if link.rel %} rel="{{ link.rel }}"{% endif %}><i class="fab fa-{{ link.icon }}"></i></a>
17+
{% endif %}
18+
{% endfor %}
19+
</span>
20+
</div>
21+
</div>

assets/css/custom.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,44 @@
110110
font-size: 1.1rem;
111111
margin-bottom: 0.5rem;
112112
}
113+
114+
/* Navigation styling */
115+
.site-nav {
116+
display: inline-block;
117+
margin-left: 2em;
118+
}
119+
120+
.nav-link {
121+
display: inline-block;
122+
margin-right: 1.5em;
123+
color: #ffa7c4;
124+
text-decoration: none;
125+
font-size: 0.9em;
126+
transition: color 0.3s ease;
127+
}
128+
129+
.nav-link:hover {
130+
color: #ffffff;
131+
text-decoration: underline;
132+
}
133+
134+
@media (max-width: 768px) {
135+
.site-nav {
136+
display: block;
137+
margin-left: 0;
138+
margin-top: 0.5em;
139+
}
140+
141+
.nav-link {
142+
display: block;
143+
margin-right: 0;
144+
margin-bottom: 0.3em;
145+
}
146+
147+
.social_links {
148+
float: none !important;
149+
display: block;
150+
text-align: left;
151+
margin-top: 0.5em;
152+
}
153+
}

0 commit comments

Comments
 (0)