diff options
author | Frankie B <git@diskfloppy.me> | 2024-06-11 18:02:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 18:02:01 +0100 |
commit | 0f52d80ca67a49258b235f5831163dd72fbd54cf (patch) | |
tree | 9c5cd36b6e0a233e09ac88a4409fb68c63e4781a /resources/views/pages | |
parent | a64bcc2c4639d5804b6dada23151bfcb8b198121 (diff) |
Merge MVC rewrite into master (#21)
* Just commit it all
* Require auth
* crap
* Update homepage
* Block AI scrapers
* Update cache update script
* Add dummy file
* Remove unnecessary lastfm config var
* Use withQueryParameters for LastFM API
* Fix embeds
* Update example env
* Smard
Diffstat (limited to 'resources/views/pages')
-rw-r--r-- | resources/views/pages/admin/guestbook-del-confirm.blade.php | 33 | ||||
-rw-r--r-- | resources/views/pages/admin/guestbook.blade.php | 32 | ||||
-rw-r--r-- | resources/views/pages/admin/index.blade.php | 9 | ||||
-rw-r--r-- | resources/views/pages/bookmarks.blade.php | 52 | ||||
-rw-r--r-- | resources/views/pages/bot.blade.php | 7 | ||||
-rw-r--r-- | resources/views/pages/calculators.blade.php | 110 | ||||
-rw-r--r-- | resources/views/pages/computers.blade.php | 442 | ||||
-rw-r--r-- | resources/views/pages/guestbook.blade.php | 102 | ||||
-rw-r--r-- | resources/views/pages/home.blade.php | 88 | ||||
-rw-r--r-- | resources/views/pages/music.blade.php | 66 | ||||
-rw-r--r-- | resources/views/pages/projects.blade.php | 16 | ||||
-rw-r--r-- | resources/views/pages/template.blade.php | 6 | ||||
-rw-r--r-- | resources/views/pages/weather.blade.php | 61 |
13 files changed, 0 insertions, 1024 deletions
diff --git a/resources/views/pages/admin/guestbook-del-confirm.blade.php b/resources/views/pages/admin/guestbook-del-confirm.blade.php deleted file mode 100644 index de920e0..0000000 --- a/resources/views/pages/admin/guestbook-del-confirm.blade.php +++ /dev/null @@ -1,33 +0,0 @@ -@extends('layouts.minimal') -@section('title', 'Delete confirm') -@section('content') - <h1>Delete Confirmation</h1> - <hr> - <p>Are you sure you want to delete this entry?</p> - - <h3>Entry Details:</h3> - <table class="gb-entry-details"> - <tr> - <td><b>ID:</b></td> - <td>{{ $entry->id }}</td> - </tr> - <tr> - <td><b>Name:</b></td> - <td>{{ $entry->name }}</td> - </tr> - <tr> - <td><b>Date:</b></td> - <td>{{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }}</td> - </tr> - <tr> - <td><b>Message:</b></td> - <td>{{ $entry->message }}</td> - </tr> - </table> - - <form action="/admin/guestbook/delete" method="POST"> - @csrf - <input type="hidden" name="id" value="{{ $entry->id }}"> - <button type="submit">Confirm Delete</button> - </form> -@stop diff --git a/resources/views/pages/admin/guestbook.blade.php b/resources/views/pages/admin/guestbook.blade.php deleted file mode 100644 index 85460cc..0000000 --- a/resources/views/pages/admin/guestbook.blade.php +++ /dev/null @@ -1,32 +0,0 @@ -@extends('layouts.default-admin') -@section('title', 'Guestbook') -@section('content') - @php - $entries = DB::select(' - SELECT id, name, timestamp, message, ip_address - FROM guestbook__entries - ORDER BY id DESC - '); - @endphp - <h1>Entries <small>({{ count($entries) }} total)</small></h1> - @foreach ($entries as $entry) - <table class="gb-admin"> - <tr> - <td> - Name: {{ $entry->name }}<br> - IP: {{ $entry->ip_address }}<br> - Date: {{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }} - </td> - <td class="gb-del"> - <a href="/admin/guestbook/delete?id={{ $entry->id }}">del</a> - </td> - </tr> - <tr> - <td class="gb-message"> - <br> - {{ htmlspecialchars($entry->message) }} - </td> - </tr></table> - @endforeach -@stop - diff --git a/resources/views/pages/admin/index.blade.php b/resources/views/pages/admin/index.blade.php deleted file mode 100644 index fd34313..0000000 --- a/resources/views/pages/admin/index.blade.php +++ /dev/null @@ -1,9 +0,0 @@ -@extends('layouts.default-admin') -@section('title', 'Page Title') -@section('description', 'Page description goes here') -@php - $user = auth()->user(); -@endphp -@section('content') - <p>You are logged in as {{ $user->name }} ({{ $user->email }})</p> -@stop diff --git a/resources/views/pages/bookmarks.blade.php b/resources/views/pages/bookmarks.blade.php deleted file mode 100644 index 55cc801..0000000 --- a/resources/views/pages/bookmarks.blade.php +++ /dev/null @@ -1,52 +0,0 @@ -@extends('layouts.default') -@section('title', 'Bookmarks') -@section('description', 'This is the personal homepage of floppydisk.') -@section('content') - @php - $db_alive = true; - try { - DB::connection()->getPdo(); - } catch (Exception $e) { - $db_alive = false; - } - @endphp - @if (!$db_alive) - @include('components.errors.db-error') - @else - @php - $categories = DB::select(' - SELECT id, name - FROM bookmark__categories - ORDER BY priority ASC - '); - @endphp - - @foreach ($categories as $category) - <table class="info-table" role="presentation"> - - <caption> - <h2>{{ $category->name }}</h2> - <hr> - </caption> - - @php - $sites = DB::select( - ' - SELECT name, url, description - FROM bookmark__sites - WHERE category_id = ? ORDER BY priority ASC - ', - [$category->id], - ); - @endphp - @foreach ($sites as $site) - <tr> - <td><a href="{{ $site->url }}">{{ $site->name }}</a> - - {{ $site->description }}</td> - </tr> - @endforeach - </table> - <br> - @endforeach - @endif -@stop diff --git a/resources/views/pages/bot.blade.php b/resources/views/pages/bot.blade.php deleted file mode 100644 index b9475fc..0000000 --- a/resources/views/pages/bot.blade.php +++ /dev/null @@ -1,7 +0,0 @@ -@extends('layouts.default') -@section('title', 'Discord Bot') -@section('description', '') -@section('content') - <p>The diskfloppy.me Discord bot blah blah blah blah blah</p> - <p>Maybe I'll finish this page later idk</p> -@stop diff --git a/resources/views/pages/calculators.blade.php b/resources/views/pages/calculators.blade.php deleted file mode 100644 index 5d629ed..0000000 --- a/resources/views/pages/calculators.blade.php +++ /dev/null @@ -1,110 +0,0 @@ -@extends('layouts.default') -@section('title', 'Calculators') -@section('description', 'C a l c u l a t o r s.') -@section('content') - <h1>CASIO fx-CG50</h1> - <p>TBD</p> - <h2>Pictures</h2> - <p>Click images to view full size</p> - <a href="/images/calculators/casio-fx-cg50/1s.jpeg"><img src="/images/calculators/casio-fx-cg50/1s.jpeg" width="15%"></a> - <a href="/images/calculators/casio-fx-cg50/2s.jpeg"><img src="/images/calculators/casio-fx-cg50/2s.jpeg" width="15%"></a> - <a href="/images/calculators/casio-fx-cg50/3s.jpeg"><img src="/images/calculators/casio-fx-cg50/3s.jpeg" width="15%"></a> - <a href="/images/calculators/casio-fx-cg50/4s.jpeg"><img src="/images/calculators/casio-fx-cg50/4s.jpeg" width="15%"></a> - - <h1>CASIO fx-120 (1977-78)</h1> - <p>TBD</p> - <h2>Specifications</h2> - <table class="skami"> - <tr> - <td><b>Size</b></td> - <td>8.4cm x 16.2cm x 2.4cm</td> - </tr> - <tr> - <td><b>Weight (w/ battery)</b></td> - <td>209g</td> - </tr> - <tr> - <td><b>Type</b></td> - <td>Scientific</td> - </tr> - <tr> - <td><b>CPU</b></td> - <td>Hitachi HD38111A</td> - </tr> - <tr> - <td><b>Registers</b></td> - <td>2 standard<br>1 constant<br>4 bracket<br>1 memory</td> - </tr> - <tr> - <td><b>Features</b></td> - <td>%, +/-, RV, F, Sci, a<sup>b</sup>⁄<sub>c</sub>, Sqr, x<sup>2</sup>, pi, <sup>1</sup>⁄<sub>x</sub>, trig,<br>hyp, DMS-DD, log, y<sup>x</sup>, SD, nCr, P-R, n!</sup></td> - </tr> - <tr> - <td><b>Display</b></td> - <td>12-digit VFD (NEC LD8197A)</td> - </tr> - </table> - <h2>Pictures</h2> - <p>Click images to view full size</p> - <a href="/images/calculators/casio-fx-120/1s.jpeg"><img src="/images/calculators/casio-fx-120/1s.jpeg" width="15%"></a> - <a href="/images/calculators/casio-fx-120/2s.jpeg"><img src="/images/calculators/casio-fx-120/2s.jpeg" width="15%"></a> - <a href="/images/calculators/casio-fx-120/3s.jpeg"><img src="/images/calculators/casio-fx-120/3s.jpeg" width="15%"></a> - <a href="/images/calculators/casio-fx-120/4s.jpeg"><img src="/images/calculators/casio-fx-120/4s.jpeg" width="15%"></a> - - <h1>CASIO fx-82 (1982-85)</h1> - <p>TBD</p> - <h2>Pictures</h2> - <p>Click images to view full size</p> - <a href="/images/calculators/casio-fx-82/1s.jpeg"><img src="/images/calculators/casio-fx-82/1s.jpeg" width="15%"></a> - <a href="/images/calculators/casio-fx-82/2s.jpeg"><img src="/images/calculators/casio-fx-82/2s.jpeg" width="15%"></a> - <a href="/images/calculators/casio-fx-82/3s.jpeg"><img src="/images/calculators/casio-fx-82/3s.jpeg" width="15%"></a> - <a href="/images/calculators/casio-fx-82/4s.jpeg"><img src="/images/calculators/casio-fx-82/4s.jpeg" width="15%"></a> - - <h1>Texas Instruments TI-30 (1976-90)</h1> - <p>TBD</p> - <h2>Pictures</h2> - <p>Click images to view full size</p> - <a href="/images/calculators/ti-30/1s.jpeg"><img src="/images/calculators/ti-30/1s.jpeg" width="15%"></a> - <a href="/images/calculators/ti-30/2s.jpeg"><img src="/images/calculators/ti-30/2s.jpeg" width="15%"></a> - <a href="/images/calculators/ti-30/3s.jpeg"><img src="/images/calculators/ti-30/3s.jpeg" width="15%"></a> - <a href="/images/calculators/ti-30/4s.jpeg"><img src="/images/calculators/ti-30/4s.jpeg" width="15%"></a> - - <h1>Texet 880 Executive (1977-78)</h1> - - <p>The calculator measures 74.2mm x 135mm x 22.2mm. It weighs 86g without the battery installed, which is a 9v PP3-type battery. Rather than the usual press-stud type holder, the housing has two metal slide clips. There is also what I assume to be a sponge at one end which is supposed to aid in holding the battery in, however it appears to have gone completely hard and I will most likely replace it in the future. There's small adaptor hole at the top, of which the input isn't specified (though it's generally agreed that it's 4.5v centre-positive).</p> - <p>The case is black & silvery colored with a thin brushed metallic front panel. The eight-digit bubble display has an absolutely <i>terrible</i> viewing angle, which means you either have to be holding it under your coat or against your face to read it!</p> - The keypad is particularly strange in the way that it has 3 cancel buttons, <pre>[CE]</pre>, <pre>[C]</pre> and <pre>[CA]</pre>, while the <pre>[CS]</pre> button is a Clear Sign button, <i>not</i> another cancel! The keys themselves are particularly stiff and you really have to push them to get them to register. Many 880s suffered something referred to as the "pseudo fixed decimal bug" where, if you typed in <pre>1 + 1.00 = </pre>, it would display <pre>2.00</pre> instead of the expected <pre>2</pre> - <h2>Specifications</h2> - <table class="skami"> - <tr> - <td><b>Size</b></td> - <td>7.4cm x 13.5cm x 2.2cm</td> - </tr> - <tr> - <td><b>Weight (w/o battery)</b></td> - <td>86</td> - </tr> - <tr> - <td><b>Type</b></td> - <td>Arithmetic</td> - </tr> - <tr> - <td><b>Logic</b></td> - <td>Algebraic</td> - </tr> - <tr> - <td><b>Power Source</b></td> - <td>PP3 9v</td> - </tr> - <tr> - <td><b>Display</b></td> - <td>8-digit LED</td> - </tr> - </table> - <h2>Pictures</h2> - <p>Click images to view full size</p> - <a href="/images/calculators/texet-880/1s.jpeg"><img src="/images/calculators/texet-880/1s.jpeg" width="15%"></a> - <a href="/images/calculators/texet-880/2s.jpeg"><img src="/images/calculators/texet-880/2s.jpeg" width="15%"></a> - <a href="/images/calculators/texet-880/3s.jpeg"><img src="/images/calculators/texet-880/3s.jpeg" width="15%"></a> - <a href="/images/calculators/texet-880/4s.jpeg"><img src="/images/calculators/texet-880/4s.jpeg" width="15%"></a> -@stop diff --git a/resources/views/pages/computers.blade.php b/resources/views/pages/computers.blade.php deleted file mode 100644 index a7cec24..0000000 --- a/resources/views/pages/computers.blade.php +++ /dev/null @@ -1,442 +0,0 @@ -@extends('layouts.default') -@section('title', 'Computers') -@section('description', 'Computers I own or have owned.') -@section('content') - <table class="computers"> - <tr> - <th>PICTURES</th> - <th>SPECS & DESCRIPTION</th> - </tr> - <tr> - <td>2023 MacBook Pro 14"</td> - <td> - <section-title>Quick Specs</section-title> - <ul> - <li>Apple M3 Pro</li> - <li>18GB RAM</li> - <li>500GB SSD</li> - <li>macOS Sonoma</li> - </ul> - <p class="description">WHAT</p> - </td> - </tr> - <tr> - <td>2018 MacBook Pro 13"</td> - <td> - <section-title>Quick Specs</section-title> - <ul> - <li>Intel i5-8259U @ 2.3GHz</li> - <li>Intel Iris Plus Graphics 655</li> - <li>8GB RAM</li> - <li>250GB SSD</li> - <li>macOS Sonoma</li> - </ul> - </td> - </tr> - <tr> - <td>2012 Lenovo ThinkPad T430</td> - <td> - <section-title>Quick Specs</section-title> - <ul> - <li>Intel Core i7</li> - <li>16GB RAM</li> - <li>Windows 7 Professional</li> - </ul> - </td> - </tr> - <tr> - <td>2005 IBM ThinkPad X41T</td> - <td> - <section-title>Quick Specs</section-title> - <ul> - <li>Intel Pentium M @ 1.6GHz</li> - <li>Mobile Intel Express Chipset Family (128MB)</li> - <li>1.5GB RAM</li> - <li>40GB HDD</li> - <li>Windows XP Tablet PC Edition</li> - </ul> - </td> - </tr> - <tr> - <td>1999 Dell OptiPlex GX1</td> - <td> - <section-title>Quick Specs</section-title> - <ul> - <li>Intel Pentium II (Deschutes) @ 400MHz</li> - <li>ATI 3D Rage Pro (4MB)</li> - <li>639MB</li> - <li>40GB HDD</li> - <li>MS-DOS 6.22 & WFW 3.10</li> - </ul> - </td> - </tr> - <tr> - <td>2003 IBM ThinkPad T40</td> - <td> - <section-title>Quick Specs</section-title> - <ul> - <li>Intel Pentium M @ 1.3GHz</li> - <li>ATI Mobility Radeon 7500 (32MB)</li> - <li>1GB RAM</li> - <li>30GB HDD</li> - <li>Windows 2000 Professional</li> - </ul> - </td> - </tr> - <tr> - <td>2010 HP Compaq Elite 8100</td> - <td> - <section-title>Quick Specs</section-title> - <ul> - <li>Intel Core i7</li> - <li>16GB RAM</li> - <li>some SSD and an HDD</li> - <li>Windows Vista Ultimate (64-bit)</li> - </ul> - </td> - </tr> - <tr> - <td>2014 Mac mini</td> - <td> - <section-title>Quick Specs</section-title> - <ul> - <li>Intel Core i5-4278U @ 2.6GHz</li> - <li>Intel Iris Graphics</li> - <li>8GB RAM</li> - <li>1TB HDD</li> - <li>VMware ESXi 6.7.0u3</li> - </ul> - </td> - </tr> - <tr> - <td>1996 Fujitsu Milan</td> - <td> - <section-title>Quick Specs</section-title> - <ul> - <li>Intel Pentium</li> - <li>32MB RAM</li> - <li>1215MB HDD</li> - <li>Windows 98 SE</li> - </ul> - </td> - </tr> - <tr> - <td>1999 Compaq Armada M300</td> - <td> - <section-title>Quick Specs</section-title> - <ul> - <li>Intel Pentium III</li> - </ul> - </td> - </tr> - </table> - <!--<table class="computer" role="presentation"> - <tr> - <td colspan="2"><h2>Custom Build</h2><hr></td> - </tr> - <tr> - <td> - <table class="computer-specs"> - <tr> - <td class="spec-title">OS:</td> - <td class="spec">NixOS 22.11 / Windows 10 Pro</td> - </tr> - <tr> - <td class="spec-title">CPU:</td> - <td class="spec">Intel i7-6700K (8-core) @ 4.0GHz</td> - </tr> - <tr> - <td class="spec-title">GPU:</td> - <td class="spec">NVidia GTX 1060 (3GB)</td> - </tr> - <tr> - <td class="spec-title">Memory:</td> - <td class="spec">64GB</td> - </tr> - <tr> - <td class="spec-title">DISK0:</td> - <td class="spec">SanDisk SSD Plus (120GB, Win10)</td> - </tr> - <tr> - <td class="spec-title">DISK1:</td> - <td class="spec">Crucial CT500MX500SSD1 (500GB, NixOS)</td> - </tr> - <tr> - <td class="spec-title">DISK2:</td> - <td class="spec">WDC WD20EZEAZ-00GGJB0 (2TB, Data)</td> - </tr> - </table> - </td> - </tr> - </table> - <table class="computer" role="presentation"> - <tr> - <td colspan="2"><h2>MacBook Pro (2018)</h2><hr></td> - </tr> - <tr> - <td> - <table class="computer-specs"> - <tr> - <td class="spec-title">OS:</td> - <td class="spec">macOS 12.5.1</td> - </tr> - <tr> - <td class="spec-title">Display:</td> - <td class="spec">2560x1600 (Retina)</td> - </tr> - <tr> - <td class="spec-title">CPU:</td> - <td class="spec">Intel i5-8259U (8-core) @ 2.3GHz</td> - </tr> - <tr> - <td class="spec-title">GPU:</td> - <td class="spec">Intel Iris Plus Graphics 655</td> - </tr> - <tr> - <td class="spec-title">Memory:</td> - <td class="spec">8GB</td> - </tr> - <tr> - <td class="spec-title">DISK:</td> - <td class="spec">Apple SSD AP0256M (250GB)</td> - </tr> - </table> - </td> - </tr> - </table> - <table class="computer" role="presentation"> - <tr> - <td colspan="2"><h2>Lenovo ThinkPad T430 (2012)</h2><hr></td> - </tr> - <tr> - <td> - <table class="computer-specs"> - <tr> - <td class="spec-title">OS:</td> - <td class="spec">NixOS 22.11 / Windows 7 Ultimate</td> - </tr> - <tr> - <td class="spec-title">CPU:</td> - <td class="spec">Intel i7-3520M (4-core) @ 3.6GHz</td> - </tr> - <tr> - <td class="spec-title">GPU:</td> - <td class="spec">Intel 3rd Gen Core processor Graphics Controllertd> - </tr> - <tr> - <td class="spec-title">Memory:</td> - <td class="spec">16GB</td> - </tr> - <tr> - <td class="spec-title">DISK0:</td> - <td class="spec">Crucial CT500MX500SSD1 (500GB, NixOS)</td> - </tr> - <tr> - <td class="spec-title">DISK1:</td> - <td class="spec">Crucial CT250MX500SSD1 (250GB, Win7)</td> - </tr> - </table> - </td> - </tr> - </table> - <table class="computer" role="presentation"> - <tr> - <td colspan="2"><h2>IBM ThinkPad X41 (2005)</h2><hr></td> - </tr> - <tr> - <td> - <table class="computer-specs"> - <tr> - <td class="spec-title">OS:</td> - <td class="spec">Windows XP Tablet PC Edition (2005, SP3)</td> - </tr> - <tr> - <td class="spec-title">CPU:</td> - <td class="spec">Intel Pentium M (single-core) @ 1.6GHz</td> - </tr> - <tr> - <td class="spec-title">GPU:</td> - <td class="spec">Mobile Intel 915GM/GMS 910GML Express Chipset Family (128MB)</td> - </tr> - <tr> - <td class="spec-title">Memory:</td> - <td class="spec">1.5GB</td> - </tr> - <tr> - <td class="spec-title">DISK:</td> - <td class="spec">Hitachi HTC426040G9AT00 (40GB)</td> - </tr> - </table> - </td> - </tr> - </table> - <table class="computer" role="presentation"> - <tr> - <td colspan="2"><h2>Dell OptiPlex GX1 (400L+, 1999)</h2><hr></td> - </tr> - <tr> - <td> - <table class="computer-specs"> - <tr> - <td class="spec-title">OS:</td> - <td class="spec">Windows 3.10 for Workgroups (DOS 6.22)</td> - </tr> - <tr> - <td class="spec-title">CPU:</td> - <td class="spec">Intel Pentium II (Deschutes) @ 400MHz</td> - </tr> - <tr> - <td class="spec-title">GPU:</td> - <td class="spec">ATI 3D Rage Pro (4MB)</td> - </tr> - <tr> - <td class="spec-title">Memory:</td> - <td class="spec">639MB</td> - </tr> - <tr> - <td class="spec-title">DISK:</td> - <td class="spec">Unknown</td> - </tr> - </table> - </td> - </tr> - </table> - <table class="computer" role="presentation"> - <tr> - <td colspan="2"><h2>IBM ThinkPad T40 (2003)</h2><hr></td> - </tr> - <tr> - <td> - <table class="computer-specs"> - <tr> - <td class="spec-title">OS:</td> - <td class="spec">Windows XP Pro</td> - </tr> - <tr> - <td class="spec-title">CPU:</td> - <td class="spec">Intel Pentium M (single-core) @ 1.3GHz</td> - </tr> - <tr> - <td class="spec-title">GPU:</td> - <td class="spec">ATI Mobility Radeon 7500 (32MB)</td> - </tr> - <tr> - <td class="spec-title">Memory:</td> - <td class="spec">1GB</td> - </tr> - <tr> - <td class="spec-title">DISK:</td> - <td class="spec">Fujitsu MHS2030AT (30GB)</td> - </tr> - </table> - </td> - </tr> - </table> - <table class="computer" role="presentation"> - <tr> - <td colspan="2"><h2>HP Compaq Elite 8100 CMT</h2><hr></td> - </tr> - <tr> - <td> - <table class="computer-specs"> - <tr> - <td class="spec-title">OS:</td> - <td class="spec">Windows Vista 64-bit</td> - </tr> - <tr> - <td class="spec-title">CPU:</td> - <td class="spec">Intel Core i7</td> - </tr> - <tr> - <td class="spec-title">GPU:</td> - <td class="spec"></td> - </tr> - <tr> - <td class="spec-title">Memory:</td> - <td class="spec">16GB</td> - </tr> - <tr> - <td class="spec-title">DISK0:</td> - <td class="spec">SanDisk SSD Plus (120GB, Win10)</td> - </tr> - <tr> - <td class="spec-title">DISK1:</td> - <td class="spec">Crucial CT500MX500SSD1 (500GB, NixOS)</td> - </tr> - </table> - </td> - </tr> - </table> - <table class="computer" role="presentation"> - <tr> - <td colspan="2"><h2>Mac mini (2014)</h2><hr></td> - </tr> - <tr> - <td> - <table class="computer-specs"> - <tr> - <td class="spec-title">OS:</td> - <td class="spec">VMware ESXi 6.7.0u3</td> - </tr> - <tr> - <td class="spec-title">CPU:</td> - <td class="spec">Intel i5-4278U (4-core) @ 2.6GHz</td> - </tr> - <tr> - <td class="spec-title">GPU:</td> - <td class="spec">Intel Iris Graphics</td> - </tr> - <tr> - <td class="spec-title">Memory:</td> - <td class="spec">8GB</td> - </tr> - <tr> - <td class="spec-title">DISK:</td> - <td class="spec">Apple HDD HTS541 (1TB)</td> - </tr> - </table> - </td> - </tr> - </table> - <table class="computer" role="presentation"> - <tr> - <td colspan="2"><h2>Fujitsu Milan (1996)</h2><hr></td> - </tr> - <tr> - <td> - <table class="computer-specs"> - <tr> - <td class="spec-title">OS:</td> - <td class="spec">Windows 98 SE</td> - </tr> - <tr> - <td class="spec-title">CPU:</td> - <td class="spec">Intel Pentium</td> - </tr> - <tr> - <td class="spec-title">Memory:</td> - <td class="spec">32MB</td> - </tr> - <tr> - <td class="spec-title">DISK:</td> - <td class="spec">IBM DPRA-21215 (1215MB)</td> - </tr> - </table> - </td> - </tr> - </table>--> - <!--<table class="computer" role="presentation"> - <tr> - <td colspan="2"><h2>Compaq Armada M300</h2><hr></td> - </tr> - <tr> - <td> - <table class="computer-specs"> - <tr> - <td class="spec">TBD</td> - </tr> - </table> - </td> - </tr> - </table>--> -@stop diff --git a/resources/views/pages/guestbook.blade.php b/resources/views/pages/guestbook.blade.php deleted file mode 100644 index a2c39fb..0000000 --- a/resources/views/pages/guestbook.blade.php +++ /dev/null @@ -1,102 +0,0 @@ -@extends('layouts.default') -@section('title', 'Guestbook') -@section('content') - @php - use UAParser\Parser; - $parser = Parser::create(); - $db_alive = true; - try { - DB::connection()->getPdo(); - } catch (Exception $e) { - $db_alive = false; - } - @endphp - @if (!$db_alive) - @include('components.errors.db-error') - @else - <br> - <table class="gb-entry-form-container" role="presentation"> - <tr> - <td> - <form method="POST" action="/guestbook"> - @csrf - <x-honeypot/> - <table class="gb-entry-form" role="presentation"> - <tr> - <td> - <label for="name"><strong>Name:</strong></label> - </td> - <td> - <input name="name" type="text" id="name"> - </td> - <td> - <span class="text-danger">{{ $errors->first('name') }}</span> - </td> - </tr> - <tr> - <td> - <label for="message"><strong>Message:</strong></label> - </td> - <td> - <textarea name="message" id="message" rows="3"></textarea> - </td> - <td> - <span class="text-danger">{{ $errors->first('message') }}</span> - </td> - </tr> - <tr> - <td></td> - <td> - <button type="submit">Submit</button> - </td> - </tr> - </table> - </form> - </td> - <td> - <p><i>A few things to note:</i></p> - <ul> - <li>You can submit an entry <u>once every hour</u>.</li> - <li>Your IP address is logged but <u>not</u> publicly displayed.</li> - <li>Any entries that appear to be spam <u>will</u> be removed.</li> - </ul> - </td> - </tr> - </table> - - - <hr> - @php - $entries = DB::select(' - SELECT name, timestamp, message, agent - FROM guestbook__entries - ORDER BY id DESC - '); - @endphp - <h2>Entries <small>({{ count($entries) }} total)</small></h2> - @foreach ($entries as $entry) - @php - $user_agent = $parser->parse($entry->agent); - @endphp - <table class="gb-entry" role="presentation"> - <tr> - <td> - Submitted by <strong>{{ $entry->name }}</strong> - on <strong>{{ gmdate('Y-m-d', $entry->timestamp) }}</strong> - at <strong>{{ gmdate('h:i:s A (e)', $entry->timestamp) }}</strong> - <hr> - {{ $entry->message }} - <hr> - @if($entry->agent === "Agent Unavailable") - <address>Agent unavailable</address> - @else - <address>Posted using <strong>{{ $user_agent->ua->toString() }}</strong> - on <strong>{{ $user_agent->os->toString() }}</strong></address> - @endif - </td> - </tr> - </table> - <br> - @endforeach - @endif -@stop diff --git a/resources/views/pages/home.blade.php b/resources/views/pages/home.blade.php deleted file mode 100644 index 01831d6..0000000 --- a/resources/views/pages/home.blade.php +++ /dev/null @@ -1,88 +0,0 @@ -@extends('layouts.default') -@section('title', 'Home') -@section('description', 'This is the personal homepage of floppydisk.') -@section('content') - - <p>Hi! This is my personal homepage on the <strong>W</strong>orld <strong>W</strong>ide <strong>W</strong>eb.</p> - - <table class="info-table" role="presentation"> - <caption> - <h2>QuickFacts™</h2> - <hr> - </caption> - <tr> - <td>◆ 18 y/o, he/him, British</td> - </tr> - <tr> - <td>◆ Theatre Technician, "Web Developer" and NixOS User</td> - </tr> - <tr> - <td>◆ Loves ETC desks, prefers Generics to LEDs for some reason</td> - </tr> - <tr> - <td>◆ Spends way too much time on his computer</td> - </tr> - <tr> - <td>◆ Favorite games: <a href="https://steamcommunity.com/id/floppydisk05/recommended/420530/">OneShot</a>, Minecraft, Stardew Valley, N++ and Starbound</td> - </tr> - <tr> - <td>◆ <a href="http://wxqa.com/">CWOP</a> member</td> - </tr> - </table> - <br> - - <table class="info-table" role="presentation"> - <caption> - <h2>Interests</h2> - <hr> - </caption> - <tr> - <td>◆ <b>Tech Theatre</b></td> - <td>- Lighting, Stage Management, etc. (<a href="https://www.controlbooth.com/members/floppydisk.28673/">ControlBooth</a>)</td> - </tr> - <tr> - <td>◆ <b>Programming</b></td> - <td>- HTML, CSS, JavaScript, C#, Java, PHP, Ruby, Python (<a href="https://github.com/floppydisk05">GitHub</a>)</td> - </tr> - <tr> - <td>◆ <b>Photography</b></td> - <td>- <a href="https://www.flickr.com/photos/floppydisk/">Flickr</a></td> - </tr> - <tr> - <td>◆ <b>Gaming</b></td> - <td>- <a href="https://steamcommunity.com/id/floppydisk05/">Steam Profile</a></td> - </tr> - </table> - <br> - - <table class="info-table never-said" role="presentation"> - <caption> - <h2>Things they never said</h2> - <hr> - </caption> - <tr> - <script type="text/javascript" src="/js/neverSaid.js"></script> - <noscript><td>Oops! You need JavaScript enabled to view this content.</td></noscript> - </tr> - </table> - <br> - - <table class="info-table" role="presentation"> - <caption> - <h2>Contact & social</h2> - <hr> - </caption> - <tr> - <td><strong>E-mail:</strong></td> - <td><a href="mailto:contact@diskfloppy.me">contact@diskfloppy.me</a></td> - </tr> - <tr> - <td><strong>Mastodon:</strong></td> - <td><a rel="me" href="https://c.im/@floppydisk">@floppydisk@c.im</a></td> - </tr> - <tr> - <td><strong>Matrix:</strong></td> - <td><a href="https://matrix.to/#/@floppydisk:arcticfoxes.net">@floppydisk:arcticfoxes.net</a></td> - </tr> - </table> -@stop diff --git a/resources/views/pages/music.blade.php b/resources/views/pages/music.blade.php deleted file mode 100644 index dba0750..0000000 --- a/resources/views/pages/music.blade.php +++ /dev/null @@ -1,66 +0,0 @@ -@extends('layouts.default') -@section('title', 'Music') -@section('description', '') -@section('content') - @php - - $cfg = app('config')->get('services')['lastfm']; - $api_root = app('config')->get('app')['api_root']; - - $api_alive = true; - - try { - $data = file_get_contents($api_root.'/lastfm/current'); - } catch (Exception $e) { - $api_alive = false; - } - @endphp - @if (!$api_alive) - @include('components.errors.api-error') - @else - - @php - $current_track = json_decode(file_get_contents($api_root . '/lastfm/current')); - $top_tracks = json_decode(file_get_contents($api_root . '/lastfm/top')); - $count = 0; - @endphp - <table class="info-table" role="presentation" width="100%"> - <tr> - <td colspan="4"> - <h2>Last/Current Track:</h2> - </td> - </tr> - <tr> - <td colspan="4"> - <a href="{{ $current_track->url }}">{{ $current_track->title }} • {{ $current_track->artist }}</a><br> - </td> - </tr> - </table> - <hr> - <table class="music-top10"> - <tr> - <td colspan="4"> - <h2 style="margin-bottom: 5px">Top {{ $cfg['toptracks'] }} Tracks (Last 7 days)</h2> - </td> - </tr> - <tr> - <td style="text-align: right"><b>#</b></td> - <td><b>Track</b></td> - <td><b>Artist</b></td> - <td><b>Plays</b></td> - </tr> - @foreach ($top_tracks as $track) - @php $count++ @endphp - @if ($count >= $cfg['toptracks']+1) - @break - @endif - <tr> - <td style="text-align: right">{{ $count }}</td> - <td style="white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:1px;" width="50%"><a href="{{ $track->url }}">{{ $track->title }}</a></td> - <td style="white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:1px;" width="50%">{{ $track->artist }}</td> - <td>{{ $track->playcount }}</td> - </tr> - @endforeach - </table> - @endif -@stop diff --git a/resources/views/pages/projects.blade.php b/resources/views/pages/projects.blade.php deleted file mode 100644 index aad454b..0000000 --- a/resources/views/pages/projects.blade.php +++ /dev/null @@ -1,16 +0,0 @@ -<?php $categories = app('config')->get('projects'); ?> -@extends('layouts.default') -@section('title', 'Projects') -@section('description', 'My projects') -@section('content') - @foreach ($categories as $category) - <h2>{{ $category['name']}}</h2> - @foreach ($category['projects'] as $project) - <div> - <a href="{{ $project['url'] }}">{{ $project['name'] }}</a> - {{ $project['description'] }}<br> - <b>Languages:</b> {{ implode(", ", $project['languages']) }} - </div> - <br> - @endforeach -@endforeach -@stop diff --git a/resources/views/pages/template.blade.php b/resources/views/pages/template.blade.php deleted file mode 100644 index 18fe585..0000000 --- a/resources/views/pages/template.blade.php +++ /dev/null @@ -1,6 +0,0 @@ -@extends('layouts.default') -@section('title', 'Page Title') -@section('description', 'Page description goes here') -@section('content') -<p>page content</p> -@stop diff --git a/resources/views/pages/weather.blade.php b/resources/views/pages/weather.blade.php deleted file mode 100644 index a759534..0000000 --- a/resources/views/pages/weather.blade.php +++ /dev/null @@ -1,61 +0,0 @@ -@extends('layouts.default') -@section('title', 'Weather') -@section('description', 'Data from my weather station') -@section('content') -@php -$api_root = app('config')->get('app')['api_root']; - -function degreesToCompassDirection($degrees) { - $cardinalDirections = [ - 'N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', - 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW', 'N' - ]; - return $cardinalDirections[round($degrees*16/360)]; -} - -$api_alive = true; - -try { - $data = file_get_contents($api_root.'/weather'); -} catch (Exception $e) { - $api_alive = false; -} -@endphp -@if (!$api_alive) - @include('components.errors.api-error') -@else - @php - $data = json_decode(file_get_contents($api_root.'/weather')); - $updated = gmdate('H:i Y-m-d', $data->updated); - $data = $data->current; - @endphp -<table class="info-table" role="presentation"> - <caption> - <h2>Local Weather</h2> - <hr> - </caption> - <tr> - <td><b>Wind Speed:</b></td> - <td>{{ $data->wind->speed }} mph</td> - </tr> - <tr> - <td><b>Wind Direction:</b></td> - <td>{{ $data->wind->direction->degrees }}°, {{ $data->wind->direction->cardinal }}</td> - </tr> - <tr> - <td><b>Temperature:</b></td> - <td>{{ $data->temperature }}°C</td> - </tr> - <tr> - <td><b>Rain Rate:</b></td> - <td>{{ $data->rain_rate }} mm/hr</td> - </tr> - <tr> - <td><b>Humidity:</b></td> - <td>{{ $data->humidity }}%</td> - </tr> -</table> -<br> -<small><i>(Last Update: {{ $updated }})</i></small> -@endif -@stop |