From efa766aa8b93c484148a497f628512c4ec096f0f Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 18 Oct 2023 14:36:57 +0200 Subject: initial commit --- .gitignore | 1 + build.php | 45 ++++ src/assets/favicon.png | Bin 0 -> 2440 bytes src/assets/img/dweipert-x178.png | Bin 0 -> 969 bytes src/assets/img/dweipert-x92.png | Bin 0 -> 2440 bytes src/assets/img/dweipert.svg | 1 + src/assets/img/social/Git-Icon-1788C.png | Bin 0 -> 2383 bytes src/assets/img/social/GitHub-Mark-Light-32px.png | Bin 0 -> 1571 bytes ...966062049829afb56cf11511236e61bcf425070e36e.png | Bin 0 -> 1592 bytes src/assets/img/social/gd-favicon.png | Bin 0 -> 2856 bytes src/assets/img/volunteering/EWL.png | Bin 0 -> 24558 bytes src/assets/img/volunteering/bns-favicon-32x32.png | Bin 0 -> 1517 bytes src/assets/img/volunteering/gwoe_icon_57x57.png | Bin 0 -> 809 bytes src/assets/img/volunteering/logo_weiss.png | Bin 0 -> 4306 bytes src/assets/img/volunteering/mge-favicon-32x32.png | Bin 0 -> 1192 bytes src/assets/img/volunteering/myc_weiss.png | Bin 0 -> 4067 bytes src/i18n.php | 29 +++ src/layout.php | 267 +++++++++++++++++++++ src/pages/index.php | 183 ++++++++++++++ src/pages/projects.php | 156 ++++++++++++ 20 files changed, 682 insertions(+) create mode 100644 .gitignore create mode 100644 build.php create mode 100644 src/assets/favicon.png create mode 100644 src/assets/img/dweipert-x178.png create mode 100644 src/assets/img/dweipert-x92.png create mode 100644 src/assets/img/dweipert.svg create mode 100644 src/assets/img/social/Git-Icon-1788C.png create mode 100644 src/assets/img/social/GitHub-Mark-Light-32px.png create mode 100644 src/assets/img/social/favicon-7901bd695fb93edb07975966062049829afb56cf11511236e61bcf425070e36e.png create mode 100644 src/assets/img/social/gd-favicon.png create mode 100644 src/assets/img/volunteering/EWL.png create mode 100644 src/assets/img/volunteering/bns-favicon-32x32.png create mode 100644 src/assets/img/volunteering/gwoe_icon_57x57.png create mode 100644 src/assets/img/volunteering/logo_weiss.png create mode 100644 src/assets/img/volunteering/mge-favicon-32x32.png create mode 100644 src/assets/img/volunteering/myc_weiss.png create mode 100644 src/i18n.php create mode 100644 src/layout.php create mode 100644 src/pages/index.php create mode 100644 src/pages/projects.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..84c048a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/build/ diff --git a/build.php b/build.php new file mode 100644 index 0000000..10d93d8 --- /dev/null +++ b/build.php @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/src/assets/img/social/Git-Icon-1788C.png b/src/assets/img/social/Git-Icon-1788C.png new file mode 100644 index 0000000..51f4ae5 Binary files /dev/null and b/src/assets/img/social/Git-Icon-1788C.png differ diff --git a/src/assets/img/social/GitHub-Mark-Light-32px.png b/src/assets/img/social/GitHub-Mark-Light-32px.png new file mode 100644 index 0000000..628da97 Binary files /dev/null and b/src/assets/img/social/GitHub-Mark-Light-32px.png differ diff --git a/src/assets/img/social/favicon-7901bd695fb93edb07975966062049829afb56cf11511236e61bcf425070e36e.png b/src/assets/img/social/favicon-7901bd695fb93edb07975966062049829afb56cf11511236e61bcf425070e36e.png new file mode 100644 index 0000000..67693e4 Binary files /dev/null and b/src/assets/img/social/favicon-7901bd695fb93edb07975966062049829afb56cf11511236e61bcf425070e36e.png differ diff --git a/src/assets/img/social/gd-favicon.png b/src/assets/img/social/gd-favicon.png new file mode 100644 index 0000000..b014cbc Binary files /dev/null and b/src/assets/img/social/gd-favicon.png differ diff --git a/src/assets/img/volunteering/EWL.png b/src/assets/img/volunteering/EWL.png new file mode 100644 index 0000000..4780348 Binary files /dev/null and b/src/assets/img/volunteering/EWL.png differ diff --git a/src/assets/img/volunteering/bns-favicon-32x32.png b/src/assets/img/volunteering/bns-favicon-32x32.png new file mode 100644 index 0000000..a960d89 Binary files /dev/null and b/src/assets/img/volunteering/bns-favicon-32x32.png differ diff --git a/src/assets/img/volunteering/gwoe_icon_57x57.png b/src/assets/img/volunteering/gwoe_icon_57x57.png new file mode 100644 index 0000000..431c7a8 Binary files /dev/null and b/src/assets/img/volunteering/gwoe_icon_57x57.png differ diff --git a/src/assets/img/volunteering/logo_weiss.png b/src/assets/img/volunteering/logo_weiss.png new file mode 100644 index 0000000..e97e9af Binary files /dev/null and b/src/assets/img/volunteering/logo_weiss.png differ diff --git a/src/assets/img/volunteering/mge-favicon-32x32.png b/src/assets/img/volunteering/mge-favicon-32x32.png new file mode 100644 index 0000000..0996edb Binary files /dev/null and b/src/assets/img/volunteering/mge-favicon-32x32.png differ diff --git a/src/assets/img/volunteering/myc_weiss.png b/src/assets/img/volunteering/myc_weiss.png new file mode 100644 index 0000000..2aa9d6c Binary files /dev/null and b/src/assets/img/volunteering/myc_weiss.png differ diff --git a/src/i18n.php b/src/i18n.php new file mode 100644 index 0000000..a458002 --- /dev/null +++ b/src/i18n.php @@ -0,0 +1,29 @@ + function ($id) use ($i18n) { + return $i18n[$_GET['lang'] ?? 'de'][$id] ?? $i18n['de'][$id]; + }, + + 'link_page' => function ($page) { + $locale = $_GET['lang'] ?? 'de'; + $page = trim($page, '/'); + $link = "/$locale/$page"; + + return $link; + }, + + 'link_language' => function ($locale) { + $page = trim($_GET['page'], '/'); + $link = "/$locale/$page"; + + return $link; + }, + + 'inactive_languages' => function () { + return array_values(array_diff(['de', 'en', 'jp'], [$_GET['lang'] ?? 'de'])); + }, + ]; +} diff --git a/src/layout.php b/src/layout.php new file mode 100644 index 0000000..60ce7f7 --- /dev/null +++ b/src/layout.php @@ -0,0 +1,267 @@ + [ + 'pages.projects' => 'Projekte', + + 'de' => 'Deutsch', + 'en' => 'English', + 'jp' => '日本語', + ], + 'en' => [ + 'pages.projects' => 'Projects', + + 'de' => 'Deutsch', + 'en' => 'English', + 'jp' => '日本語', + ], + 'jp' => [ + 'de' => 'Deutsch', + 'en' => 'English', + 'jp' => '日本語', + ], + ]); + $t = $i18n['translate']; + + ?> + + + + + + dweipert.de + + + + + + + + + + +
+
+ + +
+ + + + +
+ +
+ +
+
+
+ + + + + [ + 'topics' => 'Themenbereiche', + 'volunteering' => 'Ehrenämter & Mitgliedschaften', + 'social' => 'Social & Media', + 'other' => 'Weitere Links', + ], + 'en' => [ + 'topics' => 'Topics', + 'volunteering' => 'Volunteering & Memberships', + 'social' => 'Social & Media', + 'other' => 'Other Links', + ], + 'jp' => [ + 'topics' => '話題', + 'volunteering' => 'Ehrenämterと会員', + 'social' => 'ソーシャルとメディア', + 'other' => 'その他', + ], +]); +$t = $i18n['translate']; + +$volunteering = [ + [ + 'link' => 'https://web.ecogood.org/de/', + 'title' => 'International Federation for the Economy for the Common Good e.V.', + 'extra' => [ + 'link' => 'https://bayern.ecogood.org/', + 'title' => 'in Bayern', + ], + 'icon' => '/assets/img/volunteering/gwoe_icon_57x57.png', + ], + [ + 'link' => 'https://www.bund-naturschutz.de', + 'title' => 'BUND Naturschutz in Bayern e.V.', + 'extra' => [ + 'link' => 'https://rhoen-grabfeld.bund-naturschutz.de', + 'title' => 'Kreisgruppe Rhön-Grabfeld', + ], + 'icon' => '/assets/img/volunteering/bns-favicon-32x32.png', + ], + [ + 'link' => 'https://www.fairhandeln.de', + 'title' => 'Aktion Eine Welt e.V.', + 'icon' => '/assets/img/volunteering/EWL.png', + ], +]; + +$media = [ + [ + 'link' => 'https://gemeinwohl-development.de', + 'title' => 'GEMEINWOHL.development', + 'icon' => '/assets/img/social/gd-favicon.png', + ], + [ + 'link' => 'https://gitlab.com/dweipert-3138720606', + 'title' => 'GitLab', + 'icon' => '/assets/img/social/favicon-7901bd695fb93edb07975966062049829afb56cf11511236e61bcf425070e36e.png', + ], + [ + 'link' => 'https://github.com/dweipert-3138720606', + 'title' => 'GitHub', + 'icon' => '/assets/img/social/GitHub-Mark-Light-32px.png', + ], + [ + 'link' => 'https://git.dweipert.de', + 'title' => 'Git Projects', + 'icon' => '/assets/img/social/Git-Icon-1788C.png', + ], +]; + +$other = [ + [ + 'link' => 'https://www.bad-neustadt.de/unsere-stadt/familie-freizeit/vereine', + 'title' => 'Vereine in Bad Neustadt', + ], +]; + +ob_start(); +?> + + +
+
+

+
    + $v): ?> +
  • + <?php echo $v['title']; ?>  + + + + +
  • + +
+
+ + + +
+

+ +
+
+ [ + 'intro.0' => 'Auflistung aller Projekte, an denen ich arbeite oder arbeiten möchte.', + 'intro.1' => 'Alle genannten Softwareprojekte sollen Open-Source sein.', + 'intro.2' => 'Alle genannten Unternehmungen sollen als (gemeinnützige) Vereine bzw genossenschaftlich organisiert sein.', + 'intro.3' => 'Keine kapitalistischen "Geld ist Selbstzweck" Bestrebungen.', + + 'footnotes.0' => '*Projekt, das ich einfach nur verwirklicht sehen möchte und nicht die persönliche Anforderung habe, dort direkt mitwirken zu müssen', + ], +]); +$t = $i18n['translate']; + +$projects = [ + 'stores_places' => [ + 'title' => 'Läden & Orte', + 'items' => [ + [ + 'title' => 'Repair-Café*', + ], + [ + 'title' => 'Offener, kreativer Begegnungsort*', + ], + [ + 'title' => 'Japanische Kultur-Events', + ], + [ + 'title' => 'Spielwarenladen mit offenem Treffpunkt', + 'description' => 'ausreichend Platz und Tische (für zB Magic the Gathering)', + ], + ], + ], + + 'it' => [ + 'title' => 'Soft- und Hardware', + 'items' => [ + [ + 'title' => 'Lokale, regionale, dezentralisierte Alternative zu Lieferando', + ], + [ + 'title' => 'Nachhaltige:r Server-Hardware-Infrastruktur Lieferant*in/Dienstleister*in', + ], + [ + 'title' => 'Einfaches, niederschwelliges, erweiterbares, flexibles Server-Software-Installations-Management-Interface', + ], + [ + 'title' => 'Modularer Web-Browser*', + 'description' => 'HTML-, JS, CSS-Parser, etc. als standalone Module als Alternativen zu bestehenden tightly-coupled Browsern', + 'link' => 'https://ladybird.dev', + ], + [ + 'title' => 'Single person (Flat-File?) Matrix Server', + ], + [ + 'title' => 'Source-to-Source Compiler Framework', + 'description' => 'In Kombination mit eigener Programmiersprache als Input', + ], + ], + ], + + 'educational' => [ + 'title' => 'Educational', + 'items' => [ + [ + 'title' => 'GPS-Game mit Pflanzen und Tieren', + 'description' => 'Mobile-Game - Pokémon Go-like', + ], + [ + 'title' => 'Elements', + 'description' => 'Tabletop - Nachhaltig produziertes, offenes, educational, Magic-like Kartenspiel mit historischen Referenzmaterialien', + ], + [ + 'title' => 'Historische Kriege und Scharmützel', + 'description' => 'Computerspiel - Fire Emblem-like', + ], + ], + ], + + 'hobby' => [ + 'title' => 'Hobby-Projekte', + 'items' => [ + [ + 'title' => 'BomberTux Story', + 'link' => 'https://gitlab.com/bombertux/bombertux-story', + ], + [ + 'title' => 'BomberTux Hero', + 'link' => 'https://gitlab.com/bombertux/bombertux-hero', + ], + [ + 'title' => 'Flat-File Forms', + 'link' => 'https://gitlab.com/dweipert-3138720606/flat-file-forms', + ], + ], + ], + + 'other' => [ + 'title' => 'Sonstige', + 'items' => [ + [ + 'title' => '"Wie nachhaltig leben?"-Buch', + 'description' => 'Leitfaden für nachhaltiges Leben im Raum Bad Neustadt', + 'link' => 'https://book.dweipert.de', + ], + ], + ], +]; + +ob_start(); +?> +
+

+ +

+

+
+
+ +

+ + +
+

+
    + +
  • + + + + + + + + + + + +
  • + +
+
+ + +

+ + + +

+
+