From 067e298b3d72fd7f66dfd3b0d2bca081971fd902 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 28 Dec 2023 10:32:59 +0100 Subject: add more socials --- Justfile | 11 +++++++ Makefile | 10 ------ src/assets/img/social/Git-Icon-1788C.png | Bin 2383 -> 1477 bytes src/assets/img/social/Steam_Logo.png | Bin 0 -> 5136 bytes src/assets/img/social/itchio-textless.png | Bin 0 -> 6615 bytes src/pages/index.php | 50 +++++++++++++++++++++++++----- 6 files changed, 53 insertions(+), 18 deletions(-) create mode 100644 Justfile delete mode 100644 Makefile create mode 100644 src/assets/img/social/Steam_Logo.png create mode 100644 src/assets/img/social/itchio-textless.png diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..5731185 --- /dev/null +++ b/Justfile @@ -0,0 +1,11 @@ +build_server: + php -S localhost:8081 -t src/pages + +build: + php build.php --pages="/,/projects" --languages="de,en,jp" --server="http://localhost:8081" + +dev: + ls build.php src/*.php src/pages/*.php | entr just build + +serve: + php -S localhost:8080 -t build diff --git a/Makefile b/Makefile deleted file mode 100644 index 88f5621..0000000 --- a/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -.ONESHELL: - -server: - php -S localhost:8080 -t src/pages - -build: ./src/*.php ./src/**/*.php - php build.php --pages="/,/projects" --languages="de,en,jp" --server="http://localhost:8080" - -build_server: - php -S localhost:8081 -t build diff --git a/src/assets/img/social/Git-Icon-1788C.png b/src/assets/img/social/Git-Icon-1788C.png index 51f4ae5..45ba239 100644 Binary files a/src/assets/img/social/Git-Icon-1788C.png and b/src/assets/img/social/Git-Icon-1788C.png differ diff --git a/src/assets/img/social/Steam_Logo.png b/src/assets/img/social/Steam_Logo.png new file mode 100644 index 0000000..cd24395 Binary files /dev/null and b/src/assets/img/social/Steam_Logo.png differ diff --git a/src/assets/img/social/itchio-textless.png b/src/assets/img/social/itchio-textless.png new file mode 100644 index 0000000..1426d73 Binary files /dev/null and b/src/assets/img/social/itchio-textless.png differ diff --git a/src/pages/index.php b/src/pages/index.php index 7733bf2..0fe3862 100644 --- a/src/pages/index.php +++ b/src/pages/index.php @@ -74,6 +74,16 @@ $media = [ 'title' => 'Git Projects', 'icon' => '/assets/img/social/Git-Icon-1788C.png', ], + [ + 'link' => 'https://dweipert.itch.io', + 'title' => 'itch.io', + 'icon' => '/assets/img/social/itchio-textless.png', + ], + [ + 'link' => 'https://steamcommunity.com/id/dweipert', + 'title' => 'Steam', + 'icon' => '/assets/img/social/Steam_Logo.png', + ], [ 'link' => 'https://blog.dweipert.de', 'title' => 'Blog', @@ -122,13 +132,25 @@ ob_start(); vertical-align: -6px; } -.social__list li > a { - display: flex; - align-items: center; -} -.social__list li > a > img { - max-height: 1.5em; - max-width: 1.5em; +.social__list { + &:nth-of-type(1) { + text-align: center; + margin-bottom: 0.75rem; + } + + &:nth-of-type(2) { + columns: 2 auto; + } + + li > a { + display: flex; + align-items: center; + + > img { + max-height: 1.5em; + max-width: 1.5em; + } + } }

+