From e4581f12339d9fc141100da815408676d22162be Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 28 Dec 2022 18:31:39 +0800 Subject: Style: category icons on homepage --- alabaster-lite/css/alabaster.css | 70 ++++++++++++++++++++++++++++++++++--- alabaster-lite/main.html | 2 +- alabaster-lite/sidebars/about.html | 9 +++-- docs/img/icons/comics.png | Bin 0 -> 12887 bytes docs/img/icons/ham.png | Bin 0 -> 12674 bytes docs/img/icons/icons.kra | Bin 0 -> 409336 bytes docs/img/icons/projects.png | Bin 0 -> 17891 bytes docs/img/icons/random.png | Bin 0 -> 22337 bytes docs/img/icons/shitpost.png | Bin 0 -> 13048 bytes docs/img/icons/ta.png | Bin 0 -> 15985 bytes docs/index.md | 51 +++++++++++++++++---------- 11 files changed, 105 insertions(+), 27 deletions(-) create mode 100644 docs/img/icons/comics.png create mode 100644 docs/img/icons/ham.png create mode 100644 docs/img/icons/icons.kra create mode 100644 docs/img/icons/projects.png create mode 100644 docs/img/icons/random.png create mode 100644 docs/img/icons/shitpost.png create mode 100644 docs/img/icons/ta.png diff --git a/alabaster-lite/css/alabaster.css b/alabaster-lite/css/alabaster.css index 89eae81..804746d 100644 --- a/alabaster-lite/css/alabaster.css +++ b/alabaster-lite/css/alabaster.css @@ -1,4 +1,7 @@ -/* This file used to import a css called basic.css, but the latter is fused into L584 now */ +/* + * This file used to import a css called basic.css, + * but the latter is fused in this file + */ /* -- page layout ----------------------------------------------------------- */ @@ -465,9 +468,6 @@ a:hover tt, a:hover code { .github { display: none; } - - - } @@ -572,6 +572,68 @@ nav li.active:not(.inactive) > a { color: #000; } +/* + * Custom home page for fkfd.me + * Created on 2022-12-28 + */ + +div .home-block-container { + display: grid; + gap: 20px; + grid-template-columns: 320px 320px; +} + +@media screen and (max-width: 870px) { + div .home-block-container { + display: grid; + gap: 20px; + /* one column only on narrow screens */ + grid-template-columns: 320px; + } +} + +div .home-block { + display: block; + width: 320px; + height: 120px; + background-size: contain; + background-repeat: no-repeat; +} + +div .home-block > span { + position: absolute; + margin-left: 150px; + margin-top: 40px; + color: white; + font-size: 1.5em; + font-variant-caps: small-caps; +} + +#category-projects { + background-image: url("../img/icons/projects.png"); +} + +#category-random { + background-image: url("../img/icons/random.png"); +} + +#category-shitpost { + background-image: url("../img/icons/shitpost.png"); +} + +#category-ta { + background-image: url("../img/icons/ta.png"); +} + +#category-ham { + background-image: url("../img/icons/ham.png"); +} + +#category-comics { + background-image: url("../img/icons/comics.png"); +} + + /* * basic.css * ~~~~~~~~~ diff --git a/alabaster-lite/main.html b/alabaster-lite/main.html index 9d288c8..c6ec757 100644 --- a/alabaster-lite/main.html +++ b/alabaster-lite/main.html @@ -13,7 +13,7 @@ {% endfor %} - + {% block extrahead %}{% endblock %} diff --git a/alabaster-lite/sidebars/about.html b/alabaster-lite/sidebars/about.html index 674dab4..89de15b 100644 --- a/alabaster-lite/sidebars/about.html +++ b/alabaster-lite/sidebars/about.html @@ -11,6 +11,9 @@

{{ config.site_name }}

{% endif %} -{% if config.site_description %} -

{{ config.site_description }}

-{% endif %} +

This is technically a blog.

+ + diff --git a/docs/img/icons/comics.png b/docs/img/icons/comics.png new file mode 100644 index 0000000..0073e6a Binary files /dev/null and b/docs/img/icons/comics.png differ diff --git a/docs/img/icons/ham.png b/docs/img/icons/ham.png new file mode 100644 index 0000000..e82e2b5 Binary files /dev/null and b/docs/img/icons/ham.png differ diff --git a/docs/img/icons/icons.kra b/docs/img/icons/icons.kra new file mode 100644 index 0000000..fbc9db6 Binary files /dev/null and b/docs/img/icons/icons.kra differ diff --git a/docs/img/icons/projects.png b/docs/img/icons/projects.png new file mode 100644 index 0000000..6c8c9bd Binary files /dev/null and b/docs/img/icons/projects.png differ diff --git a/docs/img/icons/random.png b/docs/img/icons/random.png new file mode 100644 index 0000000..e2355fd Binary files /dev/null and b/docs/img/icons/random.png differ diff --git a/docs/img/icons/shitpost.png b/docs/img/icons/shitpost.png new file mode 100644 index 0000000..f404a07 Binary files /dev/null and b/docs/img/icons/shitpost.png differ diff --git a/docs/img/icons/ta.png b/docs/img/icons/ta.png new file mode 100644 index 0000000..08fd8c3 Binary files /dev/null and b/docs/img/icons/ta.png differ diff --git a/docs/index.md b/docs/index.md index bff8d73..53dda73 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,26 +1,39 @@ # fkfd -This is technically a blog. - -- [About Me](/about) - -- [Atom feed](/feed/atom.xml) - ## Categories -- [Projects](/projects) - -- [Random](/random) - -- [Shitpost](/shitpost) - -- [TA Adventures](/ta) - -- [Ham Radio](/ham) - -## Non-blog Content - -- [Comics](/comics) +
+ +
+ Projects +
+
+ +
+ Random +
+
+ +
+ TA +
+
+ +
+ Ham Radio +
+
+ +
+ Shitpost +
+
+ +
+ Comics +
+
+
## Fun -- cgit v1.2.3