flash.moe/pages/contact.php

191 lines
6.4 KiB
PHP
Raw Normal View History

2020-07-30 00:55:37 +00:00
<?php
2022-02-04 20:30:52 +00:00
namespace Makai;
2022-02-05 03:35:42 +00:00
$router->get('/contact.php', mkiRedirect('/contact'));
$router->get('/contact.html', mkiRedirect('/contact'));
2020-07-30 00:55:37 +00:00
2022-02-05 03:35:42 +00:00
$router->get('/nintendo', mkiRedirect('/contact#gaming'));
$router->get('/nintendo.php', mkiRedirect('/contact#gaming'));
2020-07-30 00:55:37 +00:00
2022-02-05 03:35:42 +00:00
$router->get('/contact', function() {
2020-07-30 00:55:37 +00:00
$contact = [
[
'id' => 'contact',
'title' => 'Direct Contact',
'items' => [
[
'id' => 'email',
'name' => 'E-mail',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-email',
2020-10-25 22:11:05 +00:00
'display' => 'contact@flash.moe',
'link' => 'mailto:contact@flash.moe',
2020-07-30 00:55:37 +00:00
],
],
],
[
'id' => 'communities',
'title' => 'Communities & Social Media',
'items' => [
[
'id' => 'flashii',
'name' => 'Flashii',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-flashii',
2020-07-30 00:55:37 +00:00
'display' => 'flash',
'link' => '//flashii.net/profile.php?u=1',
],
[
'id' => 'twitter',
'name' => 'Twitter',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-twitter',
2020-07-30 00:55:37 +00:00
'display' => '@smugwave',
'link' => '//twitter.com/smugwave',
],
[
'id' => 'youtube',
'name' => 'YouTube',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-youtube',
2020-07-30 00:55:37 +00:00
'display' => 'flashwave',
'link' => '//youtube.com/c/flashwave',
],
[
'id' => 'github',
'name' => 'Github',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-github',
2020-07-30 00:55:37 +00:00
'display' => 'flashwave',
'link' => '//github.com/flashwave',
],
[
'id' => 'twitch',
'name' => 'Twitch.tv',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-twitch',
2020-07-30 00:55:37 +00:00
'display' => 'flashwave0',
'link' => '//twitch.tv/flashwave0',
],
[
'id' => 'lastfm',
'name' => 'Last.fm',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-lastfm',
2020-07-30 00:55:37 +00:00
'display' => 'flashwave_',
'link' => '//last.fm/user/flashwave_',
],
],
],
[
'id' => 'gaming',
'title' => 'Gaming',
'items' => [
[
'id' => 'steam',
'name' => 'Steam',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-steam',
2020-07-30 00:55:37 +00:00
'display' => 'flashwave_',
'link' => '//steamcommunity.com/id/flashwave_',
],
[
'id' => 'nin-sw',
2021-07-07 01:13:50 +00:00
'name' => 'Nintendo Switch (EU)',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-switch',
2020-07-30 00:55:37 +00:00
'display' => 'SW-7446-8163-4902',
],
2021-07-07 01:13:50 +00:00
[
'id' => 'nin-sw',
'name' => 'Nintendo Switch (JP)',
'icon' => 'fmi fmi-switch',
'display' => 'SW-6001-2763-7822',
],
2020-07-30 00:55:37 +00:00
[
'id' => 'nin-3ds',
'name' => 'Nintendo 3DS',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-n3ds',
2020-07-30 00:55:37 +00:00
'display' => '4013-0352-0648',
],
[
'id' => 'nin-wiiu',
'name' => 'Wii U / NNID',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-wiiu',
2020-07-30 00:55:37 +00:00
'display' => 'flashwave0',
],
[
'id' => 'osu',
'name' => 'osu!',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-osu',
2020-07-30 00:55:37 +00:00
'display' => 'flash',
'link' => '//osu.ppy.sh/u/flash',
],
2020-10-03 16:27:02 +00:00
[
'id' => 'tetrio',
'name' => 'TETR.IO',
'icon' => 'fmi fmi-tetrio',
'display' => 'flash',
'link' => '//ch.tetr.io/u/flash',
],
2020-07-30 00:55:37 +00:00
],
],
[
'id' => 'support',
'title' => 'Support me',
'items' => [
[
'id' => 'paypal',
'name' => 'Paypal Donation',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-paypal',
2020-07-30 00:55:37 +00:00
'display' => 'flashwave',
'link' => '//paypal.me/flashwave',
],
[
'id' => 'patreon',
'name' => 'Patreon',
2020-08-19 01:20:25 +00:00
'icon' => 'fmi fmi-patreon',
2020-07-30 00:55:37 +00:00
'display' => 'flashwave',
'link' => '//patreon.com/flashwave',
],
],
],
];
2022-02-05 03:35:42 +00:00
$body = fm_component('header', [
2020-07-30 00:55:37 +00:00
'title' => 'flash.moe / contact',
]);
foreach($contact as $section) {
2022-02-05 03:35:42 +00:00
$body .= <<<HTML
<div class="section" id="section-{$section['id']}">
2020-07-30 00:55:37 +00:00
<div class="section-content">
<div class="section-background"></div>
2022-02-05 03:35:42 +00:00
<h1>{$section['title']}</h1>
2020-07-30 00:55:37 +00:00
</div>
</div>
<div class="socials">
2022-02-05 03:35:42 +00:00
HTML;
foreach($section['items'] as $social) {
$body .= '<div class="social social-' . $social['id'] . '">';
if(isset($social['link'])) {
$body .= '<a href="' . $social['link'] . '" class="social-background" target="_blank" rel="noopener"></a>';
} else {
$body .= '<div class="social-background" onclick="fm.selectTextInElement(this.parentNode.querySelector(\'.social-handle\')); fm.copySelectedText();"></div>';
}
$body .= <<<HTML
<div class="social-icon {$social['icon']}"></div>
2020-07-30 00:55:37 +00:00
<div class="social-content">
2022-02-05 03:35:42 +00:00
<div class="social-name">{$social['name']}</div>
<div class="social-handle">{$social['display']}</div>
2020-07-30 00:55:37 +00:00
</div>
</div>
2022-02-05 03:35:42 +00:00
HTML;
}
$body .= '</div>';
2020-07-30 00:55:37 +00:00
}
2022-02-05 03:35:42 +00:00
$body .= fm_component('footer');
2020-07-30 00:55:37 +00:00
2022-02-05 03:35:42 +00:00
return $body;
});