Compare commits

..

No commits in common. "master" and "v2024.08.22" have entirely different histories.

36 changed files with 458 additions and 430 deletions

4
.gitignore vendored
View file

@ -18,7 +18,3 @@ yarn-error.log
/.idea /.idea
/.vscode /.vscode
**/.DS_Store **/.DS_Store
/log
/storage
/tmp
/public/pub

View file

@ -1,16 +0,0 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\View\View;
class PrivacyController extends Controller{
/**
* Shows the page
* @return View
*/
public function show(): View {
return view('privacy');
}
}

View file

@ -31,15 +31,13 @@ public function getDiscordPresence(): mixed {
$response = Http::get('https://api.lanyard.rest/v1/users/' . Config::get('services.lanyard.user_id')); $response = Http::get('https://api.lanyard.rest/v1/users/' . Config::get('services.lanyard.user_id'));
$data = $response->json(); $data = $response->json();
if (!isset($data["data"])) return null;
$presence = $data["data"]; $presence = $data["data"];
Cache::put('discord_presence', $presence, now()->addSeconds(60)); Cache::put('discord_presence', $presence, now()->addSeconds(60));
return $presence; return $presence;
} }
public function getOnlineStatus(): ?array { public function getOnlineStatus(): array {
$presence = $this->getDiscordPresence(); $presence = $this->getDiscordPresence();
if ($presence == null) return null;
return match ($presence["discord_status"]) { return match ($presence["discord_status"]) {
"online", "dnd" => [ "online", "dnd" => [
"text" => "online", "text" => "online",

View file

@ -3,7 +3,6 @@
namespace App\View\Components; namespace App\View\Components;
use Closure; use Closure;
use Exception;
use Illuminate\Contracts\View\View; use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Config;
@ -26,16 +25,11 @@ public function getWeatherData(): mixed {
return Cache::get('weather_data'); return Cache::get('weather_data');
} }
try {
$response = Http::get('http://'. Config::get('services.weatherlink') . '/v1/current_conditions'); $response = Http::get('http://'. Config::get('services.weatherlink') . '/v1/current_conditions');
$data = $response->json(); $data = $response->json();
$conditions = $data["data"]["conditions"]; $conditions = $data["data"]["conditions"];
Cache::put('weather_data', $conditions, now()->addSeconds(60)); Cache::put('weather_data', $conditions, now()->addSeconds(60));
return $conditions; return $conditions;
} catch (Exception $ex) {
return null;
}
} }
/** /**

View file

@ -1,39 +0,0 @@
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Http;
use Illuminate\View\Component;
class Wah extends Component
{
/**
* Create a new component instance.
*/
public function __construct() {}
public function getWah(): string {
try {
$response = Http::get('https://api.tinyfox.dev/img.json?animal=wah');
$data = $response->json();
return "https://tinyfox.dev".$data["loc"];
} catch (Exception $ex) {
return "";
}
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string {
return view('components.wah', [
'wah' => $this->getWah(),
]);
}
}

View file

@ -5,7 +5,7 @@
return [ return [
'name' => env('APP_NAME', 'diskfloppy.me'), 'name' => env('APP_NAME', 'diskfloppy.me'),
'version' => '2024.08.30', 'version' => '2024.08.22',
'env' => env('APP_ENV', 'production'), 'env' => env('APP_ENV', 'production'),
'debug' => (bool) env('APP_DEBUG', false), 'debug' => (bool) env('APP_DEBUG', false),
'url' => env('APP_URL', 'http://localhost'), 'url' => env('APP_URL', 'http://localhost'),

View file

@ -1,237 +1,336 @@
:root { @font-face {
--background: #f2efbd; font-family: 'BigBlue TerminalPlus';
--foreground: #2a271c; src: url('/fonts/BigBlue_TerminalPlus.woff2') format('woff2'),
--border-color: #f27405; url('/fonts/BigBlue_TerminalPlus.woff') format('woff');
--border: var(--border-color) 2px solid; font-weight: normal;
--shadow-color: hsla(11, 96%, 43%, 0.4); font-style: normal;
--shadow: drop-shadow(8px 8px var(--shadow-color)); font-display: swap;
--shadow-small: drop-shadow(3px 3px var(--shadow-color));
--links: hsl(183, 93%, 27%);
--links-hover: hsl(183, 93%, 15%);
--table-header: hsla(11, 96%, 43%, 0.2);
} }
html { @font-face {
font-family: pixel nes;
src: url("/fonts/Pixel_NES.eot?") format("eot"),
url("/fonts/Pixel_NES.woff") format("woff"),
url("/fonts/Pixel_NES.ttf") format("truetype");
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: nec_apc3;
src: url("/fonts/Web437_NEC_APC3_8x16.woff") format("woff");
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: nec_apc3;
src: url("/fonts/Web437_Nix8810_M16.woff") format("woff");
font-style: normal;
font-weight: 700;
}
@supports (-moz-appearance:none) {
h2 {
text-shadow: var(--firefox-shadow) var(--shadow) !important;
}
}
html,
body,
.container {
height: 100%; height: 100%;
color-scheme: light;
} }
body { body {
background-color: var(--background);
color: var(--foreground); color: var(--foreground);
min-height: 100%;
background-color: hsla(0, 0%, 0%, 0);
padding: 10px;
} }
/*noinspection CssUnknownTarget*/ body,
body::before { button,
content: ""; select {
position: fixed; font-family: russiangothic, ms ui gothic, "nec_apc3", Tahoma, sans-serif;
top: 0; }
left: 0;
background-image: url("/images/background.jpg"); h1,
width: 100%; h2,
height: 100%; h3,
z-index: -1; h4 {
opacity: 0.8; font-family: "pixel nes", sans-serif;
background-size: cover;
background-attachment: fixed;
overflow: hidden;
} }
h1, h1,
h2, h2,
h3, h3,
h4, h4,
h5,
h6 {
margin: 20px 0 0 0;
}
p,
ul, ul,
ol, p {
dl,
menu,
dir {
margin: 0; margin: 0;
} }
hr {
border: none;
border-top: var(--border);
}
a { a {
color: var(--links); color: var(--links);
text-decoration: underline dotted; text-decoration: underline dotted;
} }
a:hover { a:hover {
color: var(--links-hover); text-decoration: underline;
text-decoration: underline solid;
} }
div.page-container { ul {
width: 800px; list-style: square;
margin: 5px auto; padding-left: 0;
list-style-position: inside;
} }
div.page-container > div { .container {
background-color: var(--background); display: flex;
filter: var(--shadow); /*align-items: center;*/
padding: 10px; justify-content: center;
border: var(--border);
margin-bottom: 20px;
/* temporary */
/* height: 600px; */
} }
div.page-container > div:last-child { .page {
margin-bottom: 0; min-width: var(--page-width);
max-width: var(--page-width);
} }
div#header h1 { .navbar {
border: var(--foreground) solid 1px;
}
.navbar ul {
list-style-type: none;
margin: 0; margin: 0;
font-style: italic; padding: 0;
overflow: hidden;
} }
div#header h1, .navbar li {
div#header p { float: left;
display: inline; border-right: solid var(--foreground) 1px;
} }
div#content { .navbar li a {
position: relative;
}
div#content::after {
display: block; display: block;
content: "";
clear: both;
}
div.wah {
float: right;
border: var(--border);
padding: 5px;
filter: var(--shadow-small);
background-color: var(--background);
}
div.wah img {
display: block;
}
div.wah h3,
div.wah p {
text-align: center; text-align: center;
margin: 5px 0; color: var(--foreground);
font-style: italic; text-decoration: none;
padding: 5px 7px 5px 5px;
} }
div.wah p { .navbar li a:hover {
margin-bottom: 0; background-color: var(--foreground);
color: var(--background);
} }
div.wah img { .pathbar {
width: 250px; border: 1px solid var(--foreground);
padding: 5px;
} }
div#footer { .content {
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 0;
}
.section {
border: var(--foreground) 1px solid;
padding: 10px;
}
.sidebar {
flex-basis: var(--sidebar-width);
flex-grow: 1;
}
main {
flex-basis: 0;
flex-grow: 999;
min-inline-size: 50%;
}
.navbar,
.content,
header,
footer {
margin: 10px 10px 0 0;
}
header,
footer,
.navbar {
padding: 5px;
}
footer {
display: grid; display: grid;
grid-template-columns: auto 1fr; grid-template-columns: repeat(2, 1fr);
grid-template-rows: 1fr; grid-template-rows: 1fr;
grid-column-gap: 0px; grid-column-gap: 0;
grid-row-gap: 0px; grid-row-gap: 0;
align-items: center;
} }
div#footer div:last-child { footer div:last-child {
text-align: right; text-align: right;
} }
div#footer div:last-child img { select {
image-rendering: pixelated; background-color: var(--background-secondary);
margin: 0; border: 1px solid var(--foreground);
padding: 0; color: var(--foreground);
width: 88px; padding: 0.25em;
height: 31px;
} }
/** Guestbook **/ button {
table.form input,
table.form textarea,
table.form button {
background-color: var(--background); background-color: var(--background);
border: var(--border); color: var(--foreground);
filter: var(--shadow-small); border: 1px solid var(--foreground);
padding: 0.25em 0.5em;
} }
table.form input, button:hover {
table.form textarea { background-color: var(--foreground);
width: 250px;
}
table.form button:hover {
background-color: var(--border-color);
color: var(--background); color: var(--background);
filter: none;
} }
table.form tr td, img.pixel {
table.gb-entry-form-container td:last-child { image-rendering: pixelated;
vertical-align: top;
} }
div.gb-entry { a.button,
border: var(--border); a.button:hover {
filter: var(--shadow-small); text-decoration: none;
background-color: var(--background);
width: 75%;
padding: 10px;
} }
/** Music **/ a.button:hover img {
table.music-top10 { opacity: 80%;
border: var(--border);
filter: var(--shadow-small);
background-color: var(--background);
border-collapse: collapse;
} }
table.music-top10 th, main > .section,
table.music-top10 td { .sidebar > .section {
padding: 2px 5px; margin-bottom: 10px;
} }
table.music-top10 th:first-child { main > .section:last-child,
text-align: left; .sidebar > .section:last-child {
margin-bottom: 0;
} }
table.music-top10 tr:first-child th { .navbar-icon {
border-right: var(--border); margin-right: 0.25em;
border-bottom: var(--border);
} }
table.music-top10 tr:first-child th:last-child { .navlinks {
border-right: none; padding-left: 10px;
} }
table.music-top10 tr td { .online-status {
border-right: var(--border); display: inline;
} }
table.music-top10 tr td:last-child { .centerbox {
border-right: none; text-align: center;
} }
table.music-top10 tr:first-child th,
table.music-top10 tr td:first-child { .quote {
background-color: var(--table-header); padding-left: 10px;
border-left: solid 2px var(--foreground);
}
.music-top10 {
width: 100%;
}
.music-top10 td,
.music-top10 th {
border: none;
border-left: 1px dotted var(--foreground);
padding: 2px 5px
}
.music-top10 tr:nth-child(1) th {
border-bottom: 1px dotted var(--foreground);
}
.music-top10 tr:nth-child(2) td {
padding-top: 5px;
}
.music-top10 td:first-child,
.music-top10 th:first-child {
border: none;
}
.music-top10 tr th:first-child {
text-align: right;
}
.music-top10 td {
max-width: 200px;
white-space: nowrap;
text-overflow:ellipsis;
overflow: hidden;
}
.music-top10 tr td:first-child {
text-align: right;
}
.music-top10 tr td:nth-child(2),
.music-top10 tr td:nth-child(3) {
} }
/** Bookmarks **/ .current-track h2 {
div.bookmark-category:first-child h2 {
margin: 0; margin: 0;
} }
table.computers {
table-layout: auto;
width: 75%;
}
table.computers td ul {
margin: 0;
padding-left: 20px;
}
table.computers .section-title {
text-decoration: underline;
font-style: italic;
font-weight: bold;
}
table.computers p.description {
font-style: italic;
margin: 5px 0 2px 0;
}
table.computers th {
background-color: var(--background-secondary);
}
table.computers td:first-child {
white-space: nowrap;
}
table.computers td,
table.computers th {
border: var(--foreground) solid 1px;
padding: 5px;
}
.calculator-spec-table td {
border: var(--foreground) solid 1px;
}
.calculator-spec-table td {
padding: 5px 10px 5px 5px;
}
.calculator-spec-table tr td:first-child {
background-color: var(--background-secondary);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 837 KiB

View file

@ -1,3 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" viewBox="0 0 800 800" preserveAspectRatio="xMidYMid slice"><defs><pattern id="pppixelate-pattern" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="translate(0 0) scale(8) rotate(0)" shape-rendering="crispEdges">
<rect width="1" height="1" x="9" y="0" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="0" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="1" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="1" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="2" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="2" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="3" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="3" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="4" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="4" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="5" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="5" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="6" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="6" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="7" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="7" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="8" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="8" fill="#FFFFFF80"></rect><rect width="1" height="1" x="0" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="1" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="2" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="3" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="4" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="5" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="6" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="7" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="8" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="9" fill="#FFFFFFbf"></rect><rect width="1" height="1" x="10" y="9" fill="#FFFFFFbf"></rect><rect width="1" height="1" x="11" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="12" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="13" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="14" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="15" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="16" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="17" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="18" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="19" y="9" fill="#FFFFFF80"></rect><rect width="1" height="1" x="0" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="1" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="2" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="3" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="4" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="5" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="6" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="7" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="8" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="10" fill="#FFFFFFbf"></rect><rect width="1" height="1" x="10" y="10" fill="#FFFFFFbf"></rect><rect width="1" height="1" x="11" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="12" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="13" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="14" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="15" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="16" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="17" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="18" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="19" y="10" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="11" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="11" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="12" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="12" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="13" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="13" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="14" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="14" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="15" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="15" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="16" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="16" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="17" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="17" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="18" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="18" fill="#FFFFFF80"></rect><rect width="1" height="1" x="9" y="19" fill="#FFFFFF80"></rect><rect width="1" height="1" x="10" y="19" fill="#FFFFFF80"></rect>
</pattern></defs><rect width="100%" height="100%" fill="url(#pppixelate-pattern)"></rect></svg>

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 885 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 996 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 534 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

1
public/pub Symbolic link
View file

@ -0,0 +1 @@
/srv/pubfiles

View file

@ -1,29 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- created with www.mysitemapgenerator.com --> <!--suppress ALL -->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
<url> <url>
<loc>https://www.diskfloppy.me/</loc> <loc>https://www.diskfloppy.me</loc>
<lastmod>2024-11-27T23:59:26+00:00</lastmod> <lastmod>2023-10-10</lastmod>
<priority>1.0</priority> <changefreq>always</changefreq>
<priority>0.5</priority>
</url> </url>
<url> <url>
<loc>https://www.diskfloppy.me/pub/</loc> <loc>https://www.diskfloppy.me/pub</loc>
<lastmod>2024-11-27T23:59:26+00:00</lastmod> <lastmod>2023-10-10</lastmod>
<priority>0.8</priority> <changefreq>always</changefreq>
<priority>0.5</priority>
</url> </url>
<url> <url>
<loc>https://www.diskfloppy.me/bookmarks</loc> <loc>https://www.diskfloppy.me/computers</loc>
<lastmod>2024-11-27T23:59:26+00:00</lastmod> <lastmod>2023-10-10</lastmod>
<priority>1.0</priority> <changefreq>always</changefreq>
<priority>0.5</priority>
</url> </url>
<url> <url>
<loc>https://www.diskfloppy.me/guestbook</loc> <loc>https://www.diskfloppy.me/guestbook</loc>
<lastmod>2024-11-27T23:59:26+00:00</lastmod> <lastmod>2023-10-10</lastmod>
<priority>1.0</priority> <changefreq>always</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://www.diskfloppy.me/weather</loc>
<lastmod>2023-10-10</lastmod>
<changefreq>always</changefreq>
<priority>0.5</priority>
</url> </url>
<url> <url>
<loc>https://www.diskfloppy.me/music</loc> <loc>https://www.diskfloppy.me/music</loc>
<lastmod>2024-11-27T23:59:26+00:00</lastmod> <lastmod>2023-10-10</lastmod>
<priority>1.0</priority> <changefreq>always</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://www.diskfloppy.me/bookmarks</loc>
<lastmod>2023-10-10</lastmod>
<changefreq>always</changefreq>
<priority>0.5</priority>
</url> </url>
</urlset> </urlset>

View file

@ -1,21 +1,11 @@
<x-layout> <x-layout>
<x-slot:title>Bookmarks</x-slot:title> <x-slot:title>Bookmarks</x-slot:title>
@foreach($categories as $category) @foreach($categories as $category)
<div class="bookmark-category"> <div class="section">
<h2>{{ $category->name }}</h2> <h2>{{ $category->name }}</h2>
@if($category->id == 1)
<p><em>(These are shuffled every load)</em></p>
@php
$sites = $category->sites->shuffle();
@endphp
@else
@php
$sites = $category->sites;
@endphp
@endif
<hr> <hr>
<ul> <ul>
@foreach($sites as $site) @foreach($category->sites as $site)
<li><a href="{{ $site->url }}">{{ $site->name }}</a> - {{ $site->description }}</li> <li><a href="{{ $site->url }}">{{ $site->name }}</a> - {{ $site->description }}</li>
@endforeach @endforeach
</ul> </ul>

View file

@ -1,4 +1,4 @@
<div class="current-track"> <div class="section current-track">
<h2>Last/Current Track:</h2> <h2>Last/Current Track:</h2>
<a href="{{ $track["url"] }}">{{ $track["title"] }} {{ $track["artist"] }}</a><br> <a href="{{ $track["url"] }}">{{ $track["title"] }} {{ $track["artist"] }}</a><br>
</div> </div>

View file

@ -1,7 +1,3 @@
@if($status == null)
<p>Status Unavailable</p>
@else
<span>I'm</span> <span>I'm</span>
<h2 class="online-status" style="color: {{ $status["color"] }};text-shadow: var(--firefox-shadow) {{ $status["color"] }}4f !important">{{ $status["text"] }}!</h2> <h2 class="online-status" style="color: {{ $status["color"] }};text-shadow: var(--firefox-shadow) {{ $status["color"] }}4f !important">{{ $status["text"] }}!</h2>
@endif
<p><strong>Time in Britain:</strong> <span id="clock"></span></p> <p><strong>Time in Britain:</strong> <span id="clock"></span></p>

View file

@ -1,3 +1,6 @@
@php // Get colorscheme from cookie and apply immediately
$colorscheme = request()->cookie('colorscheme', 'catppuccin-macchiato');
@endphp
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -5,10 +8,13 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#f27405"> <meta name="theme-color" content="#333333">
<link rel="stylesheet" href="{{ asset("/css/colorschemes/$colorscheme.css") }}" id="css-colorscheme"/>
<link rel="stylesheet" href="{{ asset('/css/master.css') }}"/> <link rel="stylesheet" href="{{ asset('/css/master.css') }}"/>
<link rel="icon" type="image/png" href="{{ asset('/favicon-32x32.png') }}" sizes="32x32"/> <link rel="icon" type="image/png" href="{{ asset('/favicon-32x32.png') }}" sizes="32x32"/>
<link rel="icon" type="image/png" href="{{ asset('/favicon-16x16.png') }}" sizes="16x16"/> <link rel="icon" type="image/png" href="{{ asset('/favicon-16x16.png') }}" sizes="16x16"/>
<script src="{{ asset('/js/schemeSwap.js') }}"></script>
<script src="{{ asset('/js/liveClock.js') }}"></script>
{!! (intval(date('n')) == 12) ? '<script src="/js/christmas/snow.js"></script>' : '' !!} {!! (intval(date('n')) == 12) ? '<script src="/js/christmas/snow.js"></script>' : '' !!}
<!-- Page-specific --> <!-- Page-specific -->
@ -16,40 +22,66 @@
<meta property="og:title" content="{{ str_replace("www.", "", Request::getHost()) }} | {{ $title }}"> <meta property="og:title" content="{{ str_replace("www.", "", Request::getHost()) }} | {{ $title }}">
<meta property="og:image" content="/favicon-128x128.png"> <meta property="og:image" content="/favicon-128x128.png">
</head> </head>
<body> <body onload="setSchemeSelector()">
<div class="page-container"> <div class="container">
<div id="header"> <div class="page">
<h1>wah!</h1> <header>
<h1>{{ str_replace("www.", "", Request::getHost()) }}</h1>
</header>
<div class="navbar">
<p> <p>
(dot moe) <strong>Current Path:</strong>
@if(Request::getRequestUri() == "/")
/
@else
{{ str_replace("/", " / ", rtrim(Request::getRequestUri(), "/")) }}
@endif
</p> </p>
<x-navigation></x-navigation>
</div> </div>
<div id="content"> <div class="content">
<main>
{{ $slot }} {{ $slot }}
</main>
<div class="sidebar">
<div class="section"><nav><x-navigation/></nav></div>
<div class="section"><x-settings/></div>
<div class="section centerbox"><x-discord-status/></div>
<div class="section"><x-weather/></div>
</div> </div>
<div id="footer"> </div>
<footer>
<div> <div>
<span> (c) floppydisk 2021-{{ date('Y') }}<br>
&copysr; floppydisk 2021-{{ date('Y') }}<br>
v{{ config('app.version') }}, <a href="https://git.frzn.dev/fwoppydwisk/diskfloppy.me/releases/latest">Source</a><br> v{{ config('app.version') }}, <a href="https://git.frzn.dev/fwoppydwisk/diskfloppy.me/releases/latest">Source</a><br>
Served by {{ gethostname() }} Served by {{ gethostname() }}
</span>
</div> </div>
<div> <div>
<img src="{{ URL::asset('images/buttons/cnfunknown.gif') }}"> <a href="https://dimden.dev/" class="button">
<img src="{{ URL::asset('images/buttons/juli.gif') }}"> <img src="https://dimden.dev/services/images/88x31.gif" width="88" height="31"
<img src="{{ URL::asset('images/buttons/x86.gif') }}"> class="pixel" alt="dimden.dev">
<img src="{{ URL::asset('images/buttons/thnlqd.png') }}"> </a>
<img src="https://dimden.dev/services/images/88x31.gif"> <a href="https://www.linux.org/" class="button">
<img src="{{ URL::asset('images/buttons/csshard.gif') }}"><br> <img src="{{ URL::asset('images/buttons/linuxnow.gif') }}" width="88"
<img src="{{ URL::asset('images/buttons/linuxnow.gif') }}"> class="pixel" height="31" alt="Linux NOW!">
<img src="{{ URL::asset('images/buttons/paws.gif') }}"> </a>
<img src="{{ URL::asset('images/buttons/transrights.gif') }}"> <a href="https://www.vim.org/" class="button">
<img src="{{ URL::asset('images/buttons/debian.gif') }}"> <img src="{{ URL::asset('images/buttons/vim.gif') }}" width="88" height="31"
<img src="{{ URL::asset('images/buttons/vim.gif') }}"> class="pixel" alt="vim">
<img src="{{ URL::asset('images/buttons/aliasing.png') }}"> </a><br>
<a href="https://wave.webaim.org/" class="button">
<img src="{{ URL::asset('images/buttons/evaluatedWAVE.png') }}" width="88" height="31"
class="pixel" alt="Evaluated to be accessible!">
</a>
<a href="https://jigsaw.w3.org/css-validator/check/referer" class="button">
<img src="{{ URL::asset('images/buttons/vcss-blue.gif') }}" width="88" height="31"
class="pixel" alt="Valid CSS!">
</a>
<a href="https://wiby.me/" class="button">
<img src="{{ URL::asset('images/buttons/wiby.gif') }}" width="88" height="31"
class="pixel" alt="Wiby - Search Engine for the Classic Web">
</a>
</div> </div>
</footer>
</div> </div>
</div> </div>
</body> </body>

View file

@ -1,16 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta property="og:type" content="website">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#f27405">
<link rel="stylesheet" href="{{ asset('/css/master.css') }}"/>
<link rel="icon" type="image/png" href="{{ asset('/favicon-32x32.png') }}" sizes="32x32"/>
<link rel="icon" type="image/png" href="{{ asset('/favicon-16x16.png') }}" sizes="16x16"/>
<title>{{ $title ?? 'Unknown' }}</title>
</head>
<body>
{{ $slot }}
</body>
</html>

View file

@ -1,9 +1,30 @@
<nav> <p><strong>Navigation:</strong></p>
<strong>Pages:</strong> <div class="navlinks">
<a href="/">home</a> | <a href="/">
<a href="//git.wah.moe">git</a> | <img class="pixel navbar-icon" src="{{ asset('images/icons/nav/home2.png') }}" width="16" height="16" alt="">Home
<a href="/pub">files</a> | </a><br>
<a href="/bookmarks">bookmarks</a> | <a href="//git.diskfloppy.me/">
<a href="/guestbook">guestbook</a> | <img class="pixel navbar-icon" src="{{ asset('images/icons/nav/repo.png') }}" width="16" height="16" alt="">Git
<a href="/music">music</a> </a><br>
</nav> <a href="/pub/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/pubfiles.png') }}" width="16" height="16" alt="">Public Files
</a><br>
<a href="/computers/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/computers.png') }}" width="16" height="16" alt="">Computers
</a><br>
<a href="/calculators/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/calculators.png') }}" width="16" height="16" alt="">Calculators
</a><br>
<a href="/bookmarks/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/bookmarks.png') }}" width="16" height="16" alt="">Bookmarks
</a><br>
<a href="/guestbook/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/guestbook.png') }}" width="16" height="16" alt="">Guestbook
</a><br>
<a href="//weather.diskfloppy.me/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/weather.png') }}" width="16" height="16" alt="">Weather
</a><br>
<a href="/music/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/music.png') }}" width="16" height="16" alt="">Music
</a><br>
</div>

View file

@ -1,3 +1,4 @@
<div class="section">
<table class="music-top10"> <table class="music-top10">
<caption> <caption>
<h2 style="margin-bottom: 5px">Top 10 Tracks (Last 30 days):</h2> <h2 style="margin-bottom: 5px">Top 10 Tracks (Last 30 days):</h2>
@ -14,3 +15,4 @@
<x-track :track="$track" :count="$count"/> <x-track :track="$track" :count="$count"/>
@endforeach @endforeach
</table> </table>
</div>

View file

@ -1,5 +0,0 @@
<div class="wah">
<h3>Random Wah!</h3>
<img src="{{ $wah }}">
<p>Image "stolen" from <a href="https://tinyfox.dev/">tinyfox.dev</a></p>
</div>

View file

@ -1,8 +1,5 @@
<p><strong>Weather Conditions:</strong></p> <p><strong>Weather Conditions:</strong></p>
<hr style="margin: 4px 0"> <hr style="margin: 4px 0">
@if($conditions == null)
<p>Data Unavailable</p>
@else
<p><strong>Temperature:</strong> {{ round(($conditions[0]["temp"] - 32) * (5/9), 1) }} degC</p> <p><strong>Temperature:</strong> {{ round(($conditions[0]["temp"] - 32) * (5/9), 1) }} degC</p>
<p><strong>Rain:</strong> {{ ($conditions[0]["rain_rate_last"] * 0.2) }}mm/hr ({{ $conditions[0]["rainfall_daily"] }}mm today)</p> <p><strong>Rain:</strong> {{ ($conditions[0]["rain_rate_last"] * 0.2) }}mm/hr ({{ $conditions[0]["rainfall_daily"] }}mm today)</p>
@if ($conditions[0]["wind_speed_last"] != 0) @if ($conditions[0]["wind_speed_last"] != 0)
@ -12,4 +9,3 @@
@endif @endif
<p><strong>Humidity:</strong> {{ round($conditions[0]["hum"], 1) }}%</p> <p><strong>Humidity:</strong> {{ round($conditions[0]["hum"], 1) }}%</p>
<p><strong>Pressure:</strong> {{ round($conditions[2]["bar_sea_level"], 1) }} inHg</p> <p><strong>Pressure:</strong> {{ round($conditions[2]["bar_sea_level"], 1) }} inHg</p>
@endif

View file

@ -1,13 +1,9 @@
<x-minimal> <x-minimal>
<x-slot:title>Error 429: Overclocking Detected!</x-slot:title> <x-slot:title>Error 429: Overclocking Detected!</x-slot:title>
<div class="page-container"> <h1>Error 429: Overclocking Detected!</h1>
<div>
<h1 style="margin-top: 0">Error 429: Overclocking Detected!</h1>
<hr> <hr>
<p>Whoa there! Your submissions are going at warp speed.</p> <p>Whoa there! Your submissions are going at warp speed.</p>
<p>Remember you can only submit an entry <u>once every hour</u>!</p> <p>Remember you can only submit an entry <u>once every hour</u>!</p>
<br> <br>
Click <a href="/guestbook">here</a> to go back to the guestbook. Click <a href="/guestbook">here</a> to go back to the guestbook.
</div>
</div>
</x-minimal> </x-minimal>

View file

@ -56,7 +56,7 @@
@php @php
$user_agent = $parser->parse($entry->agent); $user_agent = $parser->parse($entry->agent);
@endphp @endphp
<div class="gb-entry"> <div class="section">
Submitted by <strong>{{ $entry->name }}</strong> Submitted by <strong>{{ $entry->name }}</strong>
on <strong>{{ $entry->created_at->format('Y-m-d') }}</strong> on <strong>{{ $entry->created_at->format('Y-m-d') }}</strong>
at <strong>{{ $entry->created_at->format('h:i:s A (e)') }}</strong> at <strong>{{ $entry->created_at->format('h:i:s A (e)') }}</strong>

View file

@ -1,45 +1,42 @@
<x-layout> <x-layout>
<x-slot:title>Home</x-slot:title> <x-slot:title>Home</x-slot:title>
<x-wah></x-wah> <div class="section">
<p>Hi! This is my personal homepage on the <strong>W</strong>orld <strong>W</strong>ide <h2>About Me</h2>
<strong>W</strong>eb. <hr>
</p> <p>Hi! This is my personal homepage on the <strong>W</strong>orld <strong>W</strong>ide <strong>W</strong>eb.</p>
<br> <br>
<p>Some quick facts about me:</p> <p>QuickFacts&trade;:</p>
<ul> <ul>
<li>19 y/o, he/him, British</li> <li>{{ $age }} y/o, he/him, British</li>
<li>Theatre Technician and &quot;Web Developer&quot;</li> <li>Theatre Technician, &quot;Web Developer&quot; and NixOS User</li>
<li>Loves ETC desks, prefers Generics to LEDs for some reason</li> <li>Loves ETC desks, prefers Generics to LEDs for some reason</li>
<li>Has a crippling Soundcraft addiction</li>
<li>Spends way too much time on his computer</li> <li>Spends way too much time on his computer</li>
<li>Favorite games: <a href="https://steamcommunity.com/id/fwoppydwisk/recommended/420530/">OneShot</a>, <li>Favorite games: <a href="https://steamcommunity.com/id/floppydisk05/recommended/420530/">OneShot</a>, Minecraft, Stardew Valley, N++ and Starbound</li>
Minecraft, Stardew Valley, N++ and Starbound</li>
<li><a href="http://wxqa.com/">CWOP</a> member</li> <li><a href="http://wxqa.com/">CWOP</a> member</li>
</ul> </ul>
<br> <br>
<p>Interests:</p> <p>Interests:</p>
<ul> <ul>
<li><strong>Tech Theatre</strong> - Lighting, Stage Management, etc. (<a <li><strong>Tech Theatre</strong> - Lighting, Stage Management, etc. (<a href="https://www.controlbooth.com/members/floppydisk.28673/">ControlBooth</a>)</li>
href="https://www.controlbooth.com/members/floppydisk.28673/">ControlBooth</a>)</li> <li><strong>Programming</strong> - HTML, CSS, JavaScript, C#, Java, PHP, Ruby, Python (<a href="https://github.com/floppydisk05">GitHub</a>)</li>
<li><strong>Programming</strong> - HTML, CSS, JavaScript, C#, Java, PHP, Ruby, Python (<a
href="https://github.com/floppydisk05">GitHub</a>)</li>
<li><strong>Photography</strong> - <a href="https://www.flickr.com/photos/floppydisk/">Flickr</a></li> <li><strong>Photography</strong> - <a href="https://www.flickr.com/photos/floppydisk/">Flickr</a></li>
<li><strong>Gaming</strong> - <a href="https://steamcommunity.com/id/fwoppydwisk/">Steam Profile</a> <li><strong>Gaming</strong> - <a href="https://steamcommunity.com/id/floppydisk05/">Steam Profile</a></li>
</li>
</ul> </ul>
</div>
{{-- <div class="section">--}} <div class="section">
{{-- <h2>Random Quote</h2>--}} <h2>Random Quote</h2>
{{-- <hr>--}} <hr>
{{-- <x-toh-quote/>--}} <x-toh-quote/>
{{-- </div>--}} </div>
{{-- <div class="section">--}} <div class="section">
{{-- <h2>Contact</h2>--}} <h2>Contact</h2>
{{-- <hr>--}} <hr>
{{-- <p>--}} <p>
{{-- <strong>E-mail:</strong> <a href="mailto:contact@diskfloppy.me">contact@diskfloppy.me</a><br>--}} <strong>E-mail:</strong> <a href="mailto:contact@diskfloppy.me">contact@diskfloppy.me</a><br>
{{-- <strong>Mastodon:</strong> <a rel="me" href="https://c.im/@floppydisk">@floppydisk@c.im</a><br>--}} <strong>Mastodon:</strong> <a rel="me" href="https://c.im/@floppydisk">@floppydisk@c.im</a><br>
{{-- <strong>Matrix:</strong> <a href="https://matrix.to/#/@floppydisk:arcticfoxes.net">@floppydisk:arcticfoxes.net</a>--}} <strong>Matrix:</strong> <a href="https://matrix.to/#/@floppydisk:arcticfoxes.net">@floppydisk:arcticfoxes.net</a>
{{-- </p>--}} </p>
{{-- </div>--}} </div>
</x-layout> </x-layout>

View file

@ -1,26 +0,0 @@
<x-layout>
<x-slot:title>Privacy</x-slot:title>
<div class="section">
<h2>What am I doing with your data?</h2>
<hr>
<h3>1. What's collected?</h3>
<p>This site uses the Apache2 webserver and thus, for every request received, the following is logged:</p>
<ul>
<li>IP address</li>
<li>Request time</li>
<li>Request type</li>
<li>Location of requested resource</li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer">Referrer</a> (what website linked you to this one)</li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent">User Agent</a> (Type and version of your web browser, often also operating system and version)</li>
</ul>
<p>My website doesn't collect any more than stated above (except MediaWiki maybe)</p><br>
<h3>2. Why are logs kept?</h3>
<p>So I can examine and prevent attacks such as spam or DDoS-ing attempts</p><br>
<h3>3. When are the logs analyzed?</h3>
<p>Usually, unless I suspect an attack of some kind, I won't actively spend hours perusing the logs.</p><br>
<h3>4. Can I opt-out?</h3>
<p>Maybe? If you want to, you can email <a href="mailto:wehmaster@weh.moe">wehmaster@weh.moe</a> and I'll try and sort it out as fast as possible (assuming I can figure out how)</p><br>
<address>Any outlinks and hotlinked/embedded resources are subject to their own privacy policies and have nothing to do with me.</address>
<address>Last updated: September 9th, 2024</address>
</div>
</x-layout>

View file

@ -6,7 +6,6 @@
use App\Http\Controllers\GuestbookController; use App\Http\Controllers\GuestbookController;
use App\Http\Controllers\HomeController; use App\Http\Controllers\HomeController;
use App\Http\Controllers\MusicController; use App\Http\Controllers\MusicController;
use App\Http\Controllers\PrivacyController;
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
/* /*
@ -27,6 +26,5 @@
Route::get('/calculators', [CalculatorsController::class, 'show']); Route::get('/calculators', [CalculatorsController::class, 'show']);
Route::get('/computers', [ComputersController::class, 'show']); Route::get('/computers', [ComputersController::class, 'show']);
Route::get('/music', [MusicController::class, 'show']); Route::get('/music', [MusicController::class, 'show']);
Route::get('/privacy', [PrivacyController::class, 'show']);
Route::post('/guestbook', [GuestbookController::class, 'addEntry']) Route::post('/guestbook', [GuestbookController::class, 'addEntry'])
->middleware('rate_limit'); ->middleware('rate_limit');