Skip to content

Commit e17d4d6

Browse files
committed
Decorate footer component using bootstrap-icon
1 parent 31dde0f commit e17d4d6

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

frontend/styles/index.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* If you need to add @import statements, do so up here */
2+
@import "bootstrap-icons/font/bootstrap-icons.css";
23

34
@import "jit-refresh.css"; /* triggers frontend rebuilds */
45
@import "rouge-emacs-theme.css";
@@ -94,7 +95,7 @@ body > nav a {
9495
}
9596

9697
main {
97-
margin: 2rem auto 4rem;
98+
margin: 2rem auto 2rem;
9899
max-width: 65rem;
99100
min-height: calc(100vh - 200px);
100101
padding: 25px 25px 50px;
@@ -109,7 +110,7 @@ main {
109110

110111
footer {
111112
text-align: center;
112-
margin-bottom: 4rem;
113+
margin-bottom: 2rem;
113114
font-size: 1em;
114115
}
115116

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"tailwindcss": "^3.0.23"
1818
},
1919
"dependencies": {
20+
"bootstrap-icons": "^1.8.1",
2021
"pretendard": "^1.2.2"
2122
}
2223
}

src/_components/footer.liquid

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
<footer>
2-
Contact me at <a href="mailto:{{ metadata.email }}">{{ metadata.email }}</a>
3-
</footer>
1+
<footer class="flex justify-start sm:justify-center flex-col sm:flex-row">
2+
<a class="my-2 mx-3 no-underline" href="{{ '/feed.xml' | relative_url }}">
3+
<i class="bi bi-rss-fill text-2xl"></i> Feed
4+
</a>
5+
<a class="my-2 mx-3 no-underline" href="mailto:{{ metadata.email }}">
6+
<i class="bi bi-envelope-fill text-2xl"></i> Email
7+
</a>
8+
<a class="my-2 mx-3 no-underline" href="https://twitter.com/kodingwarrior">
9+
<i class="bi bi-twitter text-2xl"></i> Twitter
10+
</a>
11+
</footer>

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ binary-extensions@^2.0.0:
199199
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
200200
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
201201

202+
bootstrap-icons@^1.8.1:
203+
version "1.8.1"
204+
resolved "https://registry.yarnpkg.com/bootstrap-icons/-/bootstrap-icons-1.8.1.tgz#773c1625bcbf3e86090ea9da4386c2c6459c5582"
205+
integrity sha512-IXUqislddPJfwq6H+2nTkHyr9epO9h6u1AG0OZCx616w+TgzeoCjfmI3qJMQqt1J586gN2IxzB4M99Ip4sTZ1w==
206+
202207
brace-expansion@^1.1.7:
203208
version "1.1.11"
204209
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"

0 commit comments

Comments
 (0)