diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-12-28 18:31:39 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-12-28 18:31:39 +0800 |
commit | e4581f12339d9fc141100da815408676d22162be (patch) | |
tree | c9635063d1463da3d5af45e2e02ed96914a24fd5 /alabaster-lite | |
parent | de43f5034b309e3216b62533540a7a622dd3598e (diff) |
Style: category icons on homepage
Diffstat (limited to 'alabaster-lite')
-rw-r--r-- | alabaster-lite/css/alabaster.css | 70 | ||||
-rw-r--r-- | alabaster-lite/main.html | 2 | ||||
-rw-r--r-- | alabaster-lite/sidebars/about.html | 9 |
3 files changed, 73 insertions, 8 deletions
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; } - - - } @@ -573,6 +573,68 @@ nav li.active:not(.inactive) > a { } /* + * 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 @@ <link href="{{ path }}" rel="stylesheet"> {% endfor %} - <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9"> + <meta name="viewport" content="width=device-width, initial-scale=0.9"> {% 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 @@ <h1 class="logo"><a href="{{nav.homepage.url|url}}">{{ config.site_name }}</a></h1> {% endif %} -{% if config.site_description %} - <p class="blurb">{{ config.site_description }}</p> -{% endif %} +<p class="blurb">This is technically a blog.</p> + +<ul> + <li><a href="/about">About Me</a></li> + <li><a href="/feed/atom.xml">Atom Feed</a></li> +</ul> |