diff options
author | Frederick Yin <fkfd@fkfd.me> | 2023-11-05 23:11:00 -0500 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2023-11-05 23:11:00 -0500 |
commit | 8832a71bfd27fb683c7f09f6e27e8fff61263ab8 (patch) | |
tree | 0f449e69382ef77517189fc14bd6ddafc05f8ad6 | |
parent | e7f1836918da835a10f154f7098723dec711a5f2 (diff) |
Icons for header
-rw-r--r-- | alabaster-lite/css/fkfd.css | 52 | ||||
-rw-r--r-- | docs/img/icons/about.png | bin | 0 -> 7898 bytes | |||
-rw-r--r-- | docs/img/icons/icons.kra | bin | 334509 -> 458222 bytes | |||
-rw-r--r-- | docs/img/icons/links.png | bin | 0 -> 10202 bytes | |||
-rw-r--r-- | docs/img/icons/x.png | bin | 0 -> 7438 bytes | |||
-rw-r--r-- | docs/index.md | 24 |
6 files changed, 67 insertions, 9 deletions
diff --git a/alabaster-lite/css/fkfd.css b/alabaster-lite/css/fkfd.css index 749c4cb..294c4f6 100644 --- a/alabaster-lite/css/fkfd.css +++ b/alabaster-lite/css/fkfd.css @@ -118,35 +118,49 @@ div.footer a { /* * Custom home page for fkfd.me * Created on 2022-12-28 + * Last revision 2023-11-05 */ -div .category-block-container { +.header-block-container { + display: grid; + gap: 60px; + grid-template-columns: 120px 120px 120px; +} + +.category-block-container { display: grid; gap: 20px; grid-template-columns: 320px 320px; } -div .webring-block-container { +.webring-block-container { display: grid; gap: 0px; grid-template-columns: 120px 120px 120px; } @media screen and (max-width: 870px) { - div .category-block-container { - display: grid; - gap: 20px; + .header-block-container { + gap: 0px; + } + + .category-block-container { /* one column only on narrow screens */ grid-template-columns: 320px; } } -.category-block, .webring-block { +.header-block-container a, +.webring-block-container a { + text-decoration: none; +} + +.header-block, .category-block, .webring-block { display: grid; text-align: center; } -.category-icon, .webring-icon { +.header-icon, .category-icon, .webring-icon { display: block; width: 120px; height: 120px; @@ -159,12 +173,19 @@ div .webring-block-container { -webkit-mask-repeat: no-repeat; } +@media screen and (max-width: 870px) { +} + @media (prefers-color-scheme: dark) { - .category-icon, .webring-icon { + .header-icon, .category-icon, .webring-icon { background-color: white; } } +.header-text { + text-align: center; +} + .category-text { position: absolute; margin-left: 130px; @@ -176,6 +197,21 @@ div .webring-block-container { text-align: center; } +#icon-about { + mask-image: url("../img/icons/about.png"); + -webkit-mask-image: url("../img/icons/about.png"); +} + +#icon-x { + mask-image: url("../img/icons/x.png"); + -webkit-mask-image: url("../img/icons/x.png"); +} + +#icon-links { + mask-image: url("../img/icons/links.png"); + -webkit-mask-image: url("../img/icons/links.png"); +} + #icon-projects { mask-image: url("../img/icons/projects.png"); -webkit-mask-image: url("../img/icons/projects.png"); diff --git a/docs/img/icons/about.png b/docs/img/icons/about.png Binary files differnew file mode 100644 index 0000000..4043190 --- /dev/null +++ b/docs/img/icons/about.png diff --git a/docs/img/icons/icons.kra b/docs/img/icons/icons.kra Binary files differindex 7b679f4..d086c14 100644 --- a/docs/img/icons/icons.kra +++ b/docs/img/icons/icons.kra diff --git a/docs/img/icons/links.png b/docs/img/icons/links.png Binary files differnew file mode 100644 index 0000000..5d78c41 --- /dev/null +++ b/docs/img/icons/links.png diff --git a/docs/img/icons/x.png b/docs/img/icons/x.png Binary files differnew file mode 100644 index 0000000..0018a03 --- /dev/null +++ b/docs/img/icons/x.png diff --git a/docs/index.md b/docs/index.md index 01a22e7..38933a7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,7 +1,29 @@ --- title: Home --- -# [about](/about) | [x](/x) | [links](/links) + +# fkfd.me + +<header class="header-block-container"> + <a href="/about"> + <div class="header-block"> + <span class="header-icon" id="icon-about"></span> + <span class="header-text">About</span> + </div> + </a> + <a href="/x"> + <div class="header-block"> + <span class="header-icon" id="icon-x"></span> + <span class="header-text">x</span> + </div> + </a> + <a href="/links"> + <div class="header-block"> + <span class="header-icon" id="icon-links"></span> + <span class="header-text">Links</span> + </div> + </a> +</header> ## Categories |