summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2023-12-28 10:32:59 +0100
committerDaniel Weipert <git@mail.dweipert.de>2023-12-28 10:32:59 +0100
commit067e298b3d72fd7f66dfd3b0d2bca081971fd902 (patch)
tree67947ebea259b9e017d624263489249fe8b4098a /src
parent4cf5b0aeb95015e85f41c9962e85dcd20e92800d (diff)
add more socialsHEADmain
Diffstat (limited to 'src')
-rw-r--r--src/assets/img/social/Git-Icon-1788C.pngbin2383 -> 1477 bytes
-rw-r--r--src/assets/img/social/Steam_Logo.pngbin0 -> 5136 bytes
-rw-r--r--src/assets/img/social/itchio-textless.pngbin0 -> 6615 bytes
-rw-r--r--src/pages/index.php50
4 files changed, 42 insertions, 8 deletions
diff --git a/src/assets/img/social/Git-Icon-1788C.png b/src/assets/img/social/Git-Icon-1788C.png
index 51f4ae5..45ba239 100644
--- a/src/assets/img/social/Git-Icon-1788C.png
+++ b/src/assets/img/social/Git-Icon-1788C.png
Binary files 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
--- /dev/null
+++ b/src/assets/img/social/Steam_Logo.png
Binary files 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
--- /dev/null
+++ b/src/assets/img/social/itchio-textless.png
Binary files 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
@@ -75,6 +75,16 @@ $media = [
'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',
'icon' => '/assets/img/dweipert-x92.png',
@@ -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;
+ }
+ }
}
</style>
<?php
@@ -155,7 +177,19 @@ ob_start();
<div class="social">
<h2><?php echo $t('social'); ?></h2>
<ul class="social__list">
- <?php foreach ($media as $idx => $m): ?>
+ <?php foreach (array_slice($media, 0, 1) as $idx => $m): ?>
+ <li>
+ <a href="<?php echo $m['link']; ?>" target="_blank">
+ <?php if (! empty($m['icon'])): ?>
+ <img src="<?php echo $m['icon']; ?>" alt="<?php echo $m['title']; ?>">&nbsp;
+ <?php endif; ?>
+ <?php echo $m['title']; ?>
+ </a>
+ </li>
+ <?php endforeach; ?>
+ </ul>
+ <ul class="social__list">
+ <?php foreach (array_slice($media, 1) as $idx => $m): ?>
<li>
<a href="<?php echo $m['link']; ?>" target="_blank">
<?php if (! empty($m['icon'])): ?>