404
+This is a dead link. Whatever was here, it’s gone now.
+ +diff --git a/assets/sass/colors.scss b/assets/sass/colors.scss
index 4cfdf55..c9c38c7 100644
--- a/assets/sass/colors.scss
+++ b/assets/sass/colors.scss
@@ -141,8 +141,3 @@
--accent-950: #f8eeec;
}
}
-
-html {
- background: var(--background);
- color: var(--text);
-}
diff --git a/assets/sass/common.scss b/assets/sass/common.scss
new file mode 100644
index 0000000..63e2cb5
--- /dev/null
+++ b/assets/sass/common.scss
@@ -0,0 +1,23 @@
+:root {
+ background: var(--background);
+ color: var(--text);
+
+ font-size: 100%;
+ font-family: var(--font-family);
+ line-height: var(--line-height);
+
+ a {
+ text-decoration: none;
+ color: var(--text-600);
+ }
+
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
+ margin: 0;
+ font-weight: 500;
+ }
+}
diff --git a/assets/sass/fonts.scss b/assets/sass/fonts.scss
index 05c9eaa..15ea57f 100644
--- a/assets/sass/fonts.scss
+++ b/assets/sass/fonts.scss
@@ -173,9 +173,3 @@
font-optical-sizing: auto;
}
}
-
-html {
- font-size: 100%;
- font-family: var(--font-family);
- line-height: var(--line-height);
-}
diff --git a/assets/sass/header.scss b/assets/sass/header.scss
index 85efd3b..d649faa 100644
--- a/assets/sass/header.scss
+++ b/assets/sass/header.scss
@@ -22,6 +22,7 @@
.site-title {
font-size: 1.5rem;
+ font-weight: 500;
}
.nav {
diff --git a/assets/sass/main.scss b/assets/sass/main.scss
index a1402bd..43f2ed2 100644
--- a/assets/sass/main.scss
+++ b/assets/sass/main.scss
@@ -1,9 +1,12 @@
-$width-mobile: 32rem;
-$width-content: 48rem;
+$width-mobile: 30rem;
+$width-content: 45rem;
$width-max: 60rem;
@import "colors";
@import "fonts";
+@import "size";
+@import "common";
@import "header";
+@import "posts";
@import "footer";
diff --git a/assets/sass/posts.scss b/assets/sass/posts.scss
new file mode 100644
index 0000000..d96b7ff
--- /dev/null
+++ b/assets/sass/posts.scss
@@ -0,0 +1,36 @@
+.posts-list {
+ .post {
+ display: block;
+ color: inherit;
+ text-decoration: none;
+
+ &:not(:first-child) {
+ margin-top: 4rem;
+ }
+
+ .title {
+ font-size: 2.25rem;
+ }
+
+ .summary {
+ font-size: 1.1rem;
+ }
+
+ .meta {
+ font-size: 0.8rem;
+
+ .date {
+ color: var(--text-600);
+ }
+
+ .duration {
+ color: color-mix(in srgb, var(--text) 50%, var(--background));
+ }
+ }
+ }
+
+ .post:hover h1,
+ .post:hover p {
+ color: var(--text-900);
+ }
+}
diff --git a/assets/sass/size.scss b/assets/sass/size.scss
new file mode 100644
index 0000000..8da0787
--- /dev/null
+++ b/assets/sass/size.scss
@@ -0,0 +1,16 @@
+body {
+ margin: 0.5rem;
+ min-height: calc(100vh - 1rem);
+ display: flex;
+ flex-direction: column;
+
+ main {
+ flex: 1;
+
+ .content {
+ max-width: $width-content;
+ margin: 0 auto;
+ padding: 2.5rem;
+ }
+ }
+}
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..e557550
--- /dev/null
+++ b/layouts/404.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+ This is a dead link. Whatever was here, it’s gone now.404
+ {{ .Title }}
+