aboutsummaryrefslogtreecommitdiff
path: root/resources/views/components
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/components')
-rw-r--r--resources/views/components/current-track.blade.php4
-rw-r--r--resources/views/components/discord-status.blade.php3
-rw-r--r--resources/views/components/errors/api-error.blade.php4
-rw-r--r--resources/views/components/errors/db-error.blade.php4
-rw-r--r--resources/views/components/git.blade.php48
-rw-r--r--resources/views/components/layout.blade.php88
-rw-r--r--resources/views/components/minimal-error.blade.php28
-rw-r--r--resources/views/components/minimal.blade.php0
-rw-r--r--resources/views/components/navigation.blade.php30
-rw-r--r--resources/views/components/never-said.blade.php3
-rw-r--r--resources/views/components/settings.blade.php37
-rw-r--r--resources/views/components/toh-quote.blade.php12
-rw-r--r--resources/views/components/top-tracks.blade.php18
-rw-r--r--resources/views/components/track.blade.php6
-rw-r--r--resources/views/components/weather.blade.php11
15 files changed, 0 insertions, 296 deletions
diff --git a/resources/views/components/current-track.blade.php b/resources/views/components/current-track.blade.php
deleted file mode 100644
index 0770240..0000000
--- a/resources/views/components/current-track.blade.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<div class="section current-track">
- <h2>Last/Current Track:</h2>
- <a href="{{ $track["url"] }}">{{ $track["title"] }} • {{ $track["artist"] }}</a><br>
-</div>
diff --git a/resources/views/components/discord-status.blade.php b/resources/views/components/discord-status.blade.php
deleted file mode 100644
index 00d2c7a..0000000
--- a/resources/views/components/discord-status.blade.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<span>I'm</span>
-<h2 class="online-status" style="color: {{ $status["color"] }};text-shadow: var(--firefox-shadow) {{ $status["color"] }}4f !important">{{ $status["text"] }}!</h2>
-<p><strong>Time in Britain:</strong> <span id="clock"></span></p>
diff --git a/resources/views/components/errors/api-error.blade.php b/resources/views/components/errors/api-error.blade.php
deleted file mode 100644
index 1d4609a..0000000
--- a/resources/views/components/errors/api-error.blade.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<div class="error-box">
- <p><b>API Error:</b> There was an error connecting to the API.</p>
- <p>If this error persists, please notify me via <a href="mailto:webmaster@diskfloppy.me">e-mail</a>.</p>
-</div>
diff --git a/resources/views/components/errors/db-error.blade.php b/resources/views/components/errors/db-error.blade.php
deleted file mode 100644
index 45f6157..0000000
--- a/resources/views/components/errors/db-error.blade.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<div class="error-box">
- <p><b>DB Error:</b> There was an error connecting to the database.</p>
- <p>If this error persists, please notify me via <a href="mailto:webmaster@diskfloppy.me">e-mail</a>.</p>
-</div>
diff --git a/resources/views/components/git.blade.php b/resources/views/components/git.blade.php
deleted file mode 100644
index e66a6eb..0000000
--- a/resources/views/components/git.blade.php
+++ /dev/null
@@ -1,48 +0,0 @@
-@php
-$api_root = app('config')->get('app')['api_root'];
-
-$commits = json_decode(file_get_contents($api_root.'/gitdata'));
-$count = 0;
-
-function formatRelativeTime(DateTime $dateTime) {
- $currentTimestamp = time();
- $dateTimeTimestamp = $dateTime->getTimestamp();
- $difference = $currentTimestamp - $dateTimeTimestamp;
-
- if ($difference < 60) {
- return "just now";
- } elseif ($difference < 3600) {
- $minutes = floor($difference / 60);
- $suffix = ($minutes > 1) ? "s" : "";
- return $minutes . " minute" . $suffix . " ago";
- } elseif ($difference < 86400) {
- $hours = floor($difference / 3600);
- $suffix = ($hours > 1) ? "s" : "";
- return $hours . " hour" . $suffix . " ago";
- } elseif ($difference < 604800) {
- $days = floor($difference / 86400);
- $suffix = ($days > 1) ? "s" : "";
- return $days . " day" . $suffix . " ago";
- } else {
- return $dateTime->format('Y-m-d H:i:s'); // Fallback to a specific format if desired
- }
-}
-@endphp
-<h1>Recent Site Updates</h1>
- <table class="commits">
-@foreach ($commits as $commit)
-
- @if ($count >= 5)
- </table>
- @break
- @endif
- @php
- $date = DateTime::createFromFormat("Y-m-d\TH:i:s\Z", $commit->author->date)
- @endphp
- <tr>
- <td>&bull;</td>
- <td>{{ formatRelativeTime($date) }}</td>
- <td><a href="{{ $commit->url }}">{{ $commit->message }}</a></td>
- </tr>
-@php $count++ @endphp
-@endforeach
diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php
deleted file mode 100644
index 7e36de5..0000000
--- a/resources/views/components/layout.blade.php
+++ /dev/null
@@ -1,88 +0,0 @@
-@php // Get colorscheme from cookie and apply immediately
- $colorscheme = request()->cookie('colorscheme', 'catppuccin-macchiato');
-@endphp
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <!-- Global -->
- <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"/>
- <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 -->
- <title>{{ $title ?? 'Unknown' }} - {{ 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">
-</head>
-<body onload="setSchemeSelector()">
-<div class="container">
- <div class="page">
- <header>
- <h1>{{ str_replace("www.", "", Request::getHost()) }}</h1>
- </header>
- <div class="navbar">
- <p>
- <strong>Current Path:</strong>
- @if(Request::getRequestUri() == "/")
- /
- @else
- {{ str_replace("/", " / ", rtrim(Request::getRequestUri(), "/")) }}
- @endif
- </p>
- </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>
- <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() }}
- </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>
- </div>
- </footer>
- </div>
-</div>
-</body>
-</html>
diff --git a/resources/views/components/minimal-error.blade.php b/resources/views/components/minimal-error.blade.php
deleted file mode 100644
index 3be5511..0000000
--- a/resources/views/components/minimal-error.blade.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
- <title>{{ $title ?? '' }}</title>
- <link rel="stylesheet" href="{{ URL::asset ('css/minimal.css') }}"/>
-</head>
-
-<body>
- <h1>Error {{ $code }} | <strong>{{ $message }}</strong></h1>
- <hr align="left">
- <p>Here, have a cat...</p>
- <img src="https://http.cat/{{ $code }}" width="500"><br><br>
- <p>If you believe this is a server error, contact the <a href="mailto:webmaster@diskfloppy.me">webmaster</a></p>
- <br>
- <h4>Diagnostic Info</h4>
- <table><tr><td>
- <code>
- Server: &nbsp;{{ gethostname() }}<br>
- Your IP: {{ Request::ip() }}<br>
- Root: &nbsp;&nbsp;&nbsp;{!! url('') !!}<br>
- Path: &nbsp;&nbsp;&nbsp;@if(Request::path() == "/")/@else/{{ Request::path() }}/@endif<br>
- Epoch: &nbsp;&nbsp;{{ now()->timestamp }}<br>
- Agent: &nbsp;&nbsp;Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0 </code>
- </td></tr></table>
- <hr align="left">
- <p>&copy; floppydisk 2021-2024</p>
-</body>
-</html>
diff --git a/resources/views/components/minimal.blade.php b/resources/views/components/minimal.blade.php
deleted file mode 100644
index e69de29..0000000
--- a/resources/views/components/minimal.blade.php
+++ /dev/null
diff --git a/resources/views/components/navigation.blade.php b/resources/views/components/navigation.blade.php
deleted file mode 100644
index 6c99e8c..0000000
--- a/resources/views/components/navigation.blade.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<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>
diff --git a/resources/views/components/never-said.blade.php b/resources/views/components/never-said.blade.php
deleted file mode 100644
index 9cb47b7..0000000
--- a/resources/views/components/never-said.blade.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<p class="quote">
- <strong>{{ $quote["name"] }}:</strong> "{{ $quote["quote"] }}"<br>
-</p>
diff --git a/resources/views/components/settings.blade.php b/resources/views/components/settings.blade.php
deleted file mode 100644
index 8851f6c..0000000
--- a/resources/views/components/settings.blade.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<p><strong>Site Settings:</strong></p>
-<label for="scheme-selector">Colors:</label>
-<select id="scheme-selector">
-{{-- <optgroup label="Misc">--}}
-{{-- <option value="c64">C64</option>--}}
-{{-- </optgroup>--}}
- <optgroup label="Light">
- <option value="catppuccin-latte">Catppuccin Latte</option>
-{{-- <option value="gruvbox">Gruvbox</option>--}}
-{{-- <option value="man-page">Man Page</option>--}}
-{{-- <option value="papercolor-light">Papercolor Light</option>--}}
-{{-- <option value="rose-pine-dawn">Rosé Pine Dawn</option>--}}
-{{-- <option value="solarized-light">Solarized Light</option>--}}
-{{-- <option value="terminal-basic">Terminal Basic</option>--}}
- </optgroup>
- <optgroup label="Dark">
- <option value="catppuccin-frappe">Catppuccin Frappé</option>
- <option value="catppuccin-macchiato" selected="selected">Catppuccin Macchiato</option>
- <option value="catppuccin-mocha">Catppuccin Mocha</option>
-{{-- <option value="gruvbox-dark">Gruvbox Dark</option>--}}
-{{-- <option value="gruvbox-material">Gruvbox Material</option>--}}
-{{-- <option value="maia">Maia</option>--}}
-{{-- <option value="mono-amber">Mono Amber</option>--}}
-{{-- <option value="mono-cyan">Mono Cyan</option>--}}
-{{-- <option value="mono-green">Mono Green</option>--}}
-{{-- <option value="mono-red">Mono Red</option>--}}
-{{-- <option value="mono-white">Mono White</option>--}}
-{{-- <option value="mono-yellow">Mono Yellow</option>--}}
-{{-- <option value="papercolor-dark">Papercolor Dark</option>--}}
-{{-- <option value="rose-pine">Rosé Pine</option>--}}
-{{-- <option value="rose-pine-moon">Rose Pine Moon</option>--}}
-{{-- <option value="shel">Shel</option>--}}
-{{-- <option value="slate">Slate</option>--}}
-{{-- <option value="solarized-dark">Solarized Dark</option>--}}
- </optgroup>
-</select><br>
-<button onclick="swapScheme()">Apply</button>
diff --git a/resources/views/components/toh-quote.blade.php b/resources/views/components/toh-quote.blade.php
deleted file mode 100644
index d9dfab1..0000000
--- a/resources/views/components/toh-quote.blade.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<p class="quote">
- @foreach($quote["lines"] as $line)
- <strong>{{ $line["character"] }}:</strong>
- {{-- Literally only one thing will trigger this lmao --}}
- @if($line["line"] == "*Rage squeals*")
- {{ $line["line"] }}
- @else
- "{{ $line["line"] }}"
- @endif<br>
- @endforeach
- <small>({{ $quote["attribution"] }})</small>
-</p>
diff --git a/resources/views/components/top-tracks.blade.php b/resources/views/components/top-tracks.blade.php
deleted file mode 100644
index 0b563b4..0000000
--- a/resources/views/components/top-tracks.blade.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<div class="section">
-<table class="music-top10">
- <caption>
- <h2 style="margin-bottom: 5px">Top 10 Tracks (Last 30 days):</h2>
- </caption>
- <tr>
- <th><b>#</b></th>
- <th><b>Track</b></th>
- <th><b>Artist</b></th>
- <th><b>Plays</b></th>
- </tr>
- @php($count = 0)
- @foreach ($tracks as $track)
- @php($count++)
- <x-track :track="$track" :count="$count"/>
- @endforeach
-</table>
-</div>
diff --git a/resources/views/components/track.blade.php b/resources/views/components/track.blade.php
deleted file mode 100644
index b176e95..0000000
--- a/resources/views/components/track.blade.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<tr>
- <td>{{ $count }}</td>
- <td><a href="{{ $track["url"] }}">{{ $track["title"] }}</a></td>
- <td>{{ $track["artist"] }}</td>
- <td>{{ $track["plays"] }}</td>
-</tr>
diff --git a/resources/views/components/weather.blade.php b/resources/views/components/weather.blade.php
deleted file mode 100644
index b4dfcaa..0000000
--- a/resources/views/components/weather.blade.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<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>
-@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>