Skip to content

Commit 7a48359

Browse files
committed
more styling
1 parent db08de1 commit 7a48359

File tree

6 files changed

+59
-10
lines changed

6 files changed

+59
-10
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
description: >-
22
Random thoughts about my passions.
33
4+
sass:
5+
style: expanded
6+
47
theme: null
58
url: "henrylang.net"

_includes/footer.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<footer>
2+
<p>henrylang.net</p>
3+
<a href="/">index</a>
4+
<a href="/about">about</a>
5+
<a href="/posts">posts</a>
6+
</footer>

_layouts/default.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
---
22
---
33

4+
<!DOCTYPE html>
45
<html lang="en">
56
<head>
67
<meta charset="UTF-8">
78
<meta http-equiv="X-UA-Compatible" content="IE=edge">
89
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9-
<link rel="stylesheet" href="/assets/styles/style.css">
10+
<link rel="stylesheet" href="./assets/styles/style.css">
1011
<title>Document</title>
1112
</head>
1213
<body>
1314
<div class="wrapper">
1415
{% include nav.html %}
1516
{{ content }}
17+
{% include footer.html %}
1618
</div>
1719
</body>
1820
</html>

about.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
layout: default
3+
---

assets/styles/style.sass

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
font-family: Iosevka
66
src: url(../fonts/iosevka-regular.ttf)
77

8+
@keyframes fadein
9+
from
10+
opacity: 0
11+
transform: translateX(20px)
12+
13+
to
14+
opacity: 100%
15+
transform: translateX(0px)
16+
817
$accent: #4fb8ff
918
$text: #92a1ae
1019
$mid: #424c57
@@ -15,13 +24,31 @@ h1, a, p
1524
color: $text
1625
font-family: 'Iosevka'
1726

18-
nav >
19-
*
20-
display: inline-block
21-
font-weight: bold
22-
a
23-
color: $accent
24-
padding-right: 10px
27+
nav
28+
padding-top: 0.25rem
29+
border-bottom: 1px solid $mid
30+
31+
>
32+
*
33+
display: inline-block
34+
font-weight: bold
35+
a
36+
color: $accent
37+
padding-right: 0.15rem
38+
39+
footer
40+
// position: relative
41+
margin-top: -0.25rem
42+
width: 100%
43+
border-top: 1px solid $mid
44+
45+
>
46+
*
47+
display: inline-block
48+
font-weight: bold
49+
a
50+
color: $accent
51+
padding-right: 0.15rem
2552

2653
body
2754
padding: 0
@@ -35,10 +62,15 @@ body
3562
left: 1px solid $mid
3663
right: 1px solid $mid
3764
padding:
38-
top: 10px
65+
top: 0
66+
bottom: 0
3967
left: 2.5vw
4068
right: 2.5vw
41-
bottom: 0
4269
margin: auto
4370
width: 80vw
4471
min-height: 100vh
72+
animation: fadein 0.3s 0s
73+
74+
>
75+
*
76+
animation: fadein 0.35s

posts.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
layout: default
3+
---

0 commit comments

Comments
 (0)