Compare commits

..

10 commits

Author SHA1 Message Date
f5444a9bf6
Sure is a new site design 2024-11-28 00:07:08 +00:00
1d39acd298
idk why this is here but I'm committing it 2024-11-04 23:13:32 +00:00
098d68b393
woah is that a new design 2024-11-04 23:12:59 +00:00
5dc6252c4c
Update page layout
- Add more buttons
- Style <hr> elements
- Remove 'pixel nes' font from <h3> and <h4> elements
- Change footer grid column sizes to auto (previously 1fr)
- Add 5px top margin to sidebar buttons
2024-10-06 04:11:46 +01:00
d857991d18
Add privacy page 2024-10-06 04:11:08 +01:00
d8915dcca4
Update sitemap 2024-09-01 15:45:46 +01:00
61f01750ff
There will be no bias in my house! 2024-08-31 00:47:19 +01:00
a715ae58af
Handle any errors if unable to get presence or weather data 2024-08-31 00:47:01 +01:00
97d8f4447d
Update .gitignore 2024-08-30 19:56:07 +01:00
01be7aafc6
Correct steam link 2024-08-30 19:51:26 +01:00
36 changed files with 458 additions and 486 deletions

4
.gitignore vendored
View file

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

View file

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

View file

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

View file

@ -0,0 +1,39 @@
<?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 [
'name' => env('APP_NAME', 'diskfloppy.me'),
'version' => '2024.08.22',
'version' => '2024.08.30',
'env' => env('APP_ENV', 'production'),
'debug' => (bool) env('APP_DEBUG', false),
'url' => env('APP_URL', 'http://localhost'),

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 KiB

View file

@ -0,0 +1,3 @@
<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>

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

BIN
public/images/noik.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

View file

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

View file

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

View file

@ -1,11 +1,21 @@
<x-layout>
<x-slot:title>Bookmarks</x-slot:title>
@foreach($categories as $category)
<div class="section">
<div class="bookmark-category">
<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>
<ul>
@foreach($category->sites as $site)
@foreach($sites as $site)
<li><a href="{{ $site->url }}">{{ $site->name }}</a> - {{ $site->description }}</li>
@endforeach
</ul>

View file

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

View file

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

View file

@ -1,6 +1,3 @@
@php // Get colorscheme from cookie and apply immediately
$colorscheme = request()->cookie('colorscheme', 'catppuccin-macchiato');
@endphp
<!DOCTYPE html>
<html lang="en">
<head>
@ -8,13 +5,10 @@
<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="#333333">
<link rel="stylesheet" href="{{ asset("/css/colorschemes/$colorscheme.css") }}" id="css-colorscheme"/>
<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"/>
<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>' : '' !!}
<!-- Page-specific -->
@ -22,67 +16,41 @@
<meta property="og:title" content="{{ str_replace("www.", "", Request::getHost()) }} | {{ $title }}">
<meta property="og:image" content="/favicon-128x128.png">
</head>
<body onload="setSchemeSelector()">
<div class="container">
<div class="page">
<header>
<h1>{{ str_replace("www.", "", Request::getHost()) }}</h1>
</header>
<div class="navbar">
<body>
<div class="page-container">
<div id="header">
<h1>wah!</h1>
<p>
<strong>Current Path:</strong>
@if(Request::getRequestUri() == "/")
/
@else
{{ str_replace("/", " / ", rtrim(Request::getRequestUri(), "/")) }}
@endif
(dot moe)
</p>
<x-navigation></x-navigation>
</div>
<div class="content">
<main>
{{ $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 id="content">
{{ $slot }}
</div>
<footer>
<div id="footer">
<div>
(c) floppydisk 2021-{{ date('Y') }}<br>
v{{ config('app.version') }}, <a href="https://git.frzn.dev/fwoppydwisk/diskfloppy.me/releases/latest">Source</a><br>
Served by {{ gethostname() }}
<span>
&copysr; floppydisk 2021-{{ date('Y') }}<br>
v{{ config('app.version') }}, <a href="https://git.frzn.dev/fwoppydwisk/diskfloppy.me/releases/latest">Source</a><br>
Served by {{ gethostname() }}
</span>
</div>
<div>
<a href="https://dimden.dev/" class="button">
<img src="https://dimden.dev/services/images/88x31.gif" width="88" height="31"
class="pixel" alt="dimden.dev">
</a>
<a href="https://www.linux.org/" class="button">
<img src="{{ URL::asset('images/buttons/linuxnow.gif') }}" width="88"
class="pixel" height="31" alt="Linux NOW!">
</a>
<a href="https://www.vim.org/" class="button">
<img src="{{ URL::asset('images/buttons/vim.gif') }}" width="88" height="31"
class="pixel" alt="vim">
</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>
<img src="{{ URL::asset('images/buttons/cnfunknown.gif') }}">
<img src="{{ URL::asset('images/buttons/juli.gif') }}">
<img src="{{ URL::asset('images/buttons/x86.gif') }}">
<img src="{{ URL::asset('images/buttons/thnlqd.png') }}">
<img src="https://dimden.dev/services/images/88x31.gif">
<img src="{{ URL::asset('images/buttons/csshard.gif') }}"><br>
<img src="{{ URL::asset('images/buttons/linuxnow.gif') }}">
<img src="{{ URL::asset('images/buttons/paws.gif') }}">
<img src="{{ URL::asset('images/buttons/transrights.gif') }}">
<img src="{{ URL::asset('images/buttons/debian.gif') }}">
<img src="{{ URL::asset('images/buttons/vim.gif') }}">
<img src="{{ URL::asset('images/buttons/aliasing.png') }}">
</div>
</footer>
</div>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,16 @@
<!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,30 +1,9 @@
<p><strong>Navigation:</strong></p>
<div class="navlinks">
<a href="/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/home2.png') }}" width="16" height="16" alt="">Home
</a><br>
<a href="//git.diskfloppy.me/">
<img class="pixel navbar-icon" src="{{ asset('images/icons/nav/repo.png') }}" width="16" height="16" alt="">Git
</a><br>
<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>
<nav>
<strong>Pages:</strong>
<a href="/">home</a> |
<a href="//git.wah.moe">git</a> |
<a href="/pub">files</a> |
<a href="/bookmarks">bookmarks</a> |
<a href="/guestbook">guestbook</a> |
<a href="/music">music</a>
</nav>

View file

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

View file

@ -0,0 +1,5 @@
<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,11 +1,15 @@
<p><strong>Weather Conditions:</strong></p>
<hr style="margin: 4px 0">
<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>
@if ($conditions[0]["wind_speed_last"] != 0)
<p><strong>Wind:</strong> {{ round($conditions[0]["wind_speed_last"], 1) }}mph ({{ $conditions[0]["wind_dir_last"] }} deg)</p>
@if($conditions == null)
<p>Data Unavailable</p>
@else
<p><strong>Wind:</strong> 0mph</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>
@if ($conditions[0]["wind_speed_last"] != 0)
<p><strong>Wind:</strong> {{ round($conditions[0]["wind_speed_last"], 1) }}mph ({{ $conditions[0]["wind_dir_last"] }} deg)</p>
@else
<p><strong>Wind:</strong> 0mph</p>
@endif
<p><strong>Humidity:</strong> {{ round($conditions[0]["hum"], 1) }}%</p>
<p><strong>Pressure:</strong> {{ round($conditions[2]["bar_sea_level"], 1) }} inHg</p>
@endif
<p><strong>Humidity:</strong> {{ round($conditions[0]["hum"], 1) }}%</p>
<p><strong>Pressure:</strong> {{ round($conditions[2]["bar_sea_level"], 1) }} inHg</p>

View file

@ -1,9 +1,13 @@
<x-minimal>
<x-slot:title>Error 429: Overclocking Detected!</x-slot:title>
<h1>Error 429: Overclocking Detected!</h1>
<hr>
<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>
<br>
Click <a href="/guestbook">here</a> to go back to the guestbook.
<div class="page-container">
<div>
<h1 style="margin-top: 0">Error 429: Overclocking Detected!</h1>
<hr>
<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>
<br>
Click <a href="/guestbook">here</a> to go back to the guestbook.
</div>
</div>
</x-minimal>

View file

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

View file

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

View file

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