Skip to content

Commit e8c644e

Browse files
committed
Modified font again and added new post
1 parent c768036 commit e8c644e

File tree

8 files changed

+24
-8
lines changed

8 files changed

+24
-8
lines changed

assets/sass/_global.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ body {
88
display: flex;
99
flex-direction: column;
1010
min-height: 100vh;
11-
font-size: 1.3rem;
12-
line-height: 1.6;
11+
font-size: 1.2rem;
12+
line-height: 1.5;
1313
}
1414

1515
a {

assets/sass/utils/_fonts.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
@font-face{
22
font-family: "Fira Mono";
3-
src: url("../fonts/FiraMono/FiraMono-Medium.eot");
43
src: local("Fira Mono"),
5-
url("../fonts/FiraMono/FiraMono-Medium.eot") format("embedded-opentype"),
6-
url("../fonts/FiraMono/FiraMono-Medium.woff") format("woff"),
7-
url("../fonts/FiraMono/FiraMono-Medium.ttf") format("truetype");
4+
url("../fonts/FiraMono/FiraMono-Medium.woff2") format("woff2"),
5+
url("../fonts/FiraMono/FiraMono-Medium.woff") format("woff");
86
font-weight: 400;
7+
font-display: swap;
98
font-style: normal;
109
}
1110
@font-face {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
+++
2+
title = 'A fresh coat of paint'
3+
date = 2024-02-02
4+
draft = false
5+
description = 'I gave my website a small facelift'
6+
+++
7+
8+
If you didn't know already, my website is built using [Hugo](https://gohugo.io/), a static site generator and I use a theme called Nightfall. Although the theme is simple and clean, there were some things which really bothered me. However, I have resolved most of the issues and thought I would share what I did with you.
9+
10+
- For navigation on mobile devices, a hamburger menu was used. Currently, I only have two links in my nav bar and there isn't a need for me to use it. Plus, these menus are not accessible to all. So I decided to remove it.
11+
- All links are now underlined and have a contrasting colour.
12+
- Typography has improved! Now, the body text uses [GeneralSans](https://www.fontshare.com/fonts/general-sans) font, which I discovered after browsing [Kev Quirk's](https://kevquirk.com/) website. The font size and line height has also changed.
13+
- I also made some changes to the structure of the [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) files. Some of the [div](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div) classes have been replaced with [semantic elements](https://developer.mozilla.org/en-US/docs/Glossary/semantics#semantics_in_html).
14+
15+
Making and testing these changes did take a few hours. But I am happy how it turned out in the end. If you have any suggestions, please do send me an e-mail or message me through Mastodon.
16+
17+
This is day 4 of [#100daystoOffload](https://100daystooffload.com/)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
body{font-family:generalsans,sans-serif;color:#eceff4;background-color:#2e3440;margin:0;display:flex;flex-direction:column;min-height:100vh;font-size:1.3rem;line-height:1.6}a{color:#88c0d0}pre code{font-family:fira mono,monospace;font-size:75%;display:block;background:#3b4252;padding:10px;overflow:auto}code{font-family:fira mono,monospace;font-size:75%}h1{font-family:fira mono,monospace}h2{font-family:fira mono,monospace}h3{font-family:fira mono,monospace}h4{font-family:fira mono,monospace}h5{font-family:fira mono,monospace}h6{font-family:fira mono,monospace}@-ms-viewport{width: device-width; }@font-face{font-family:fira mono;src:url(../fonts/FiraMono/FiraMono-Medium.eot);src:local("Fira Mono"),url(../fonts/FiraMono/FiraMono-Medium.eot)format("embedded-opentype"),url(../fonts/FiraMono/FiraMono-Medium.woff)format("woff"),url(../fonts/FiraMono/FiraMono-Medium.ttf)format("truetype");font-weight:400;font-style:normal}@font-face{font-family:generalsans;src:url(../fonts/GeneralSans/GeneralSans-Variable.woff2)format("woff2"),url(../fonts/GeneralSans/GeneralSans-Variable.woff)format("woff");font-weight:200 700;font-display:swap;font-style:normal}.footer{padding:15px;text-align:center;background-color:#3b4252}.footerLink{color:#88c0d0}.header{font-family:fira mono,monospace;font-size:1.1rem;padding:0 20px;height:60px;display:flex;justify-content:space-between;align-items:center;width:760px}.headerWrapper{overflow:auto;box-sizing:border-box;background-color:#3b4252;display:flex;justify-content:center;flex-shrink:0}.headerLinks ul{list-style:none;padding:0;margin:0}.headerLinks ul li{display:inline;margin:5px}.headerLinks ul li a{color:#eceff4}.headerLinks ul li a:hover{color:#a3be8c}.terminal{font-size:1.1rem}.terminal a{color:#eceff4;text-decoration:none}.terminal a:hover{color:#ebcb8b}.postDate{float:right;color:#eceff4}.postTitle{color:#88c0d0;text-transform:capitalize;font-family:fira mono,monospace;font-size:1.25rem;margin:0}.postHeader{overflow:hidden;display:flex;flex-direction:row;justify-content:space-between;align-items:baseline}.postsList{margin-top:20px}.postListItem{padding:20px;background-color:#3b4252;margin-bottom:20px}.postExcerpt{text-align:initial;text-decoration:none;color:#eceff4}.headerContainer{display:flex;justify-content:space-between}.noDecoration{text-decoration:none}a:hover{color:#a3be8c}.socialNavbar ul{list-style:none;padding:0}.socialNavbar ul li{display:inline}.socialNavbar a{-webkit-font-smoothing:antialiased;display:inline-block;margin:10px}.postWrapper{text-align:left}.postMetadata{font-family:fira mono,monospace;display:block;background:#3b4252;padding:10px}dt,dd{line-height:1.5}dl{display:grid;grid-template-columns:max-content auto}dt{grid-column-start:1}dd{grid-column-start:2}dt::after{content:":"}.listHeader,.listContent{text-align:left}.indexWrapper{display:flex;flex-direction:column;justify-content:center}.indexHeader{font-size:3em}.content{text-align:center;flex:1 auto;display:flex;justify-content:center}.content img{max-width:100%}.vertical{flex-direction:column;align-items:center}.flexWrapper{display:flex;flex-direction:column;justify-content:center;min-height:100vh;flex:1 auto}.main{height:100%;padding:20px}@media only screen and (min-width:992px){.main{width:760px}}
1+
body{font-family:generalsans,sans-serif;color:#eceff4;background-color:#2e3440;margin:0;display:flex;flex-direction:column;min-height:100vh;font-size:1.2rem;line-height:1.5}a{color:#88c0d0}pre code{font-family:fira mono,monospace;font-size:75%;display:block;background:#3b4252;padding:10px;overflow:auto}code{font-family:fira mono,monospace;font-size:75%}h1{font-family:fira mono,monospace}h2{font-family:fira mono,monospace}h3{font-family:fira mono,monospace}h4{font-family:fira mono,monospace}h5{font-family:fira mono,monospace}h6{font-family:fira mono,monospace}@-ms-viewport{width: device-width; }@font-face{font-family:fira mono;src:local("Fira Mono"),url(../fonts/FiraMono/FiraMono-Medium.woff2)format("woff2"),url(../fonts/FiraMono/FiraMono-Medium.woff)format("woff");font-weight:400;font-display:swap;font-style:normal}@font-face{font-family:generalsans;src:url(../fonts/GeneralSans/GeneralSans-Variable.woff2)format("woff2"),url(../fonts/GeneralSans/GeneralSans-Variable.woff)format("woff");font-weight:200 700;font-display:swap;font-style:normal}.footer{padding:15px;text-align:center;background-color:#3b4252}.footerLink{color:#88c0d0}.header{font-family:fira mono,monospace;font-size:1.1rem;padding:0 20px;height:60px;display:flex;justify-content:space-between;align-items:center;width:760px}.headerWrapper{overflow:auto;box-sizing:border-box;background-color:#3b4252;display:flex;justify-content:center;flex-shrink:0}.headerLinks ul{list-style:none;padding:0;margin:0}.headerLinks ul li{display:inline;margin:5px}.headerLinks ul li a{color:#eceff4}.headerLinks ul li a:hover{color:#a3be8c}.terminal{font-size:1.1rem}.terminal a{color:#eceff4;text-decoration:none}.terminal a:hover{color:#ebcb8b}.postDate{float:right;color:#eceff4}.postTitle{color:#88c0d0;text-transform:capitalize;font-family:fira mono,monospace;font-size:1.25rem;margin:0}.postHeader{overflow:hidden;display:flex;flex-direction:row;justify-content:space-between;align-items:baseline}.postsList{margin-top:20px}.postListItem{padding:20px;background-color:#3b4252;margin-bottom:20px}.postExcerpt{text-align:initial;text-decoration:none;color:#eceff4}.headerContainer{display:flex;justify-content:space-between}.noDecoration{text-decoration:none}a:hover{color:#a3be8c}.socialNavbar ul{list-style:none;padding:0}.socialNavbar ul li{display:inline}.socialNavbar a{-webkit-font-smoothing:antialiased;display:inline-block;margin:10px}.postWrapper{text-align:left}.postMetadata{font-family:fira mono,monospace;display:block;background:#3b4252;padding:10px}dt,dd{line-height:1.5}dl{display:grid;grid-template-columns:max-content auto}dt{grid-column-start:1}dd{grid-column-start:2}dt::after{content:":"}.listHeader,.listContent{text-align:left}.indexWrapper{display:flex;flex-direction:column;justify-content:center}.indexHeader{font-size:3em}.content{text-align:center;flex:1 auto;display:flex;justify-content:center}.content img{max-width:100%}.vertical{flex-direction:column;align-items:center}.flexWrapper{display:flex;flex-direction:column;justify-content:center;min-height:100vh;flex:1 auto}.main{height:100%;padding:20px}@media only screen and (min-width:992px){.main{width:760px}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"Target":"sass/main.min.5bd85d62e90f7a600f78542da0642a54698bce694332373de9e2d5adc24076a5.css","MediaType":"text/css","Data":{"Integrity":"sha256-W9hdYukPemAPeFQtoGQqVGmLzmlDMjc96eLVrcJAdqU="}}
1+
{"Target":"sass/main.min.8755f476e08370598147ebf70a98c381576be5603050dd93291f857d2986a956.css","MediaType":"text/css","Data":{"Integrity":"sha256-h1X0duCDcFmBR+v3CpjDgVdr5WAwUN2TKR+FfSmGqVY="}}
-74.1 KB
Binary file not shown.
-124 KB
Binary file not shown.
-169 KB
Binary file not shown.

0 commit comments

Comments
 (0)