jonnybarnes.uk/resources/views/master.blade.php
Jonny Barnes ec17f65107
Simplify frontend assests and build steps
We just write the files directly in the public dir
Then change the npm scripts to lint and compress them directly
2023-12-21 17:57:48 +00:00

84 lines
4 KiB
PHP

<!doctype html>
<html lang="en-GB">
<head>
<meta charset="UTF-8">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield('title'){{ config('app.name') }}</title>
@if (!empty(config('app.font_link')))
<link rel="stylesheet" href="{{ config('app.font_link') }}">
@endif
<link rel="stylesheet" href="/assets/highlight/zenburn.css">
<link rel="stylesheet" href="/assets/css/app.css">
<link rel="alternate" type="application/rss+xml" title="Blog RSS Feed" href="/blog/feed.rss">
<link rel="alternate" type="application/atom+xml" title="Blog Atom Feed" href="/blog/feed.atom">
<link rel="alternate" type="application/json" title="Blog JSON Feed" href="/blog/feed.json">
<link rel="alternate" type="application/jf2feed+json" title="Blog JF2 Feed" href="/blog/feed.jf2">
<link rel="alternate" type="application/rss+xml" title="Notes RSS Feed" href="/notes/feed.rss">
<link rel="alternate" type="application/atom+xml" title="Notes Atom Feed" href="/notes/feed.atom">
<link rel="alternate" type="application/json" title="Notes JSON Feed" href="/notes/feed.json">
<link rel="alternate" type="application/jf2feed+json" title="Notes JF2 Feed" href="/blog/feed.jf2">
<link rel="openid.server" href="https://indieauth.com/openid">
<link rel="openid.delegate" href="{{ config('app.url') }}">
<link rel="authorization_endpoint" href="{{ config('url.authorization_endpoint') }}">
<link rel="token_endpoint" href="{{ config('app.url') }}/api/token">
<link rel="micropub" href="{{ config('app.url') }}/api/post">
<link rel="webmention" href="{{ config('app.url') }}/webmention">
<link rel="shortcut icon" href="{{ config('app.url') }}/assets/img/memoji-orange-bg-small-fs8.png">
<link rel="pgpkey" href="/assets/jonnybarnes-public-key-ecc.asc">
</head>
<body class="grid">
<is-land on:media="(prefers-reduced-motion: no-preference)">
<snow-fall
style="--snow-fall-color: oklch(36.14% 0.224 277.28)"
></snow-fall>
</is-land>
<header id="site-header">
<h1>
<a rel="author" href="/">{{ config('user.display_name') }}</a>
</h1>
<nav>
<a href="/">All</a>
<a href="/notes">Notes</a>
<a href="/blog">Articles</a>
<a href="/bookmarks">Bookmarks</a>
<a href="/likes">Likes</a>
<a href="/contacts">Contacts</a>
<a href="/projects">Projects</a>
<a href="/notes/feed.json" class="rss-icon">@include('icons.rss', ['title' => 'RSS Feed'])</a>
</nav>
</header>
<main>
@yield('content')
@isset($bio)
{!! $bio !!}
@endisset
</main>
<footer>
<div class="footer-actions">
<search>
<form action="/search" method="get">
<label for="search" class="sr-only">Search</label>
<input type="search" id="search" name="q" title="Search"><button type="submit">Search</button>
</form>
</search>
@auth()
<a href="/logout" class="auth">Logout</a>
@else
<a href="/login" class="auth">Login</a>
@endauth
</div>
<p>Built with love: <a href="/colophon">Colophon</a></p>
<a href="https://indieweb.org"><img src="/assets/img/iwc.svg" alt="Indie Web Camp logo" class="iwc-logo"></a>
</footer>
<!--scripts go here when needed-->
@section('scripts')
<script type="module" src="/assets/frontend/is-land.js"></script>
<script type="module" src="/assets/frontend/snow-fall.js"></script>
<script type="module" src="/assets/js/app.js"></script>
@show
</body>
</html>