diskfloppy.me/resources/views/components/layout.blade.php

89 lines
4 KiB
PHP
Raw Normal View History

@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>
2024-08-08 01:00:44 +00:00
<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()">
2024-08-08 01:00:44 +00:00
<div class="container">
<div class="page">
2024-08-08 14:34:32 +00:00
<header>
2024-08-08 01:00:44 +00:00
<h1>{{ str_replace("www.", "", Request::getHost()) }}</h1>
2024-08-08 14:34:32 +00:00
</header>
2024-08-08 01:00:44 +00:00
<div class="navbar">
<p>
<strong>Current Path:</strong>
@if(Request::getRequestUri() == "/")
/
@else
{{ str_replace("/", " / ", rtrim(Request::getRequestUri(), "/")) }}
@endif
</p>
</div>
<div class="content">
2024-08-08 14:34:32 +00:00
<main>
2024-08-08 01:00:44 +00:00
{{ $slot }}
2024-08-08 14:34:32 +00:00
</main>
2024-08-08 01:00:44 +00:00
<div class="sidebar">
2024-08-08 14:34:32 +00:00
<div class="section"><nav><x-navigation/></nav></div>
2024-08-08 01:00:44 +00:00
<div class="section"><x-settings/></div>
2024-08-08 14:21:30 +00:00
<div class="section centerbox"><x-discord-status/></div>
2024-08-08 01:00:44 +00:00
<div class="section"><x-weather/></div>
</div>
</div>
2024-08-08 14:34:32 +00:00
<footer>
2024-08-08 01:00:44 +00:00
<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>
2024-08-08 14:34:32 +00:00
</footer>
2024-08-08 01:00:44 +00:00
</div>
</div>
</body>
</html>