|
| 1 | +<html lang="en" class="h-dvh flex flex-col scroll-smooth"> |
| 2 | +<head> |
| 3 | + <!-- Meta title --> |
| 4 | + <?php use App\Web\Meta\MetaType; |
| 5 | + |
| 6 | + $title = match (true) { |
| 7 | + isset($fullTitle) => $fullTitle, |
| 8 | + isset($title) => "{$title} — Tempest", |
| 9 | + default => 'Tempest', |
| 10 | + }; ?> |
| 11 | + |
| 12 | + <title>{{ $title }}</title> |
| 13 | + |
| 14 | + <link :if="$meta['canonical'] ?? null" rel="canonical" :href="$meta['canonical']" /> |
| 15 | + |
| 16 | + <meta name="title" :content="$title"> |
| 17 | + <meta name="twitter:title" :content="$title"> |
| 18 | + <meta property="og:title" :content="$title"> |
| 19 | + <meta itemprop="name" :content="$title"> |
| 20 | + |
| 21 | + <meta charset="UTF-8"/> |
| 22 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
| 23 | + |
| 24 | + <!-- Meta description --> |
| 25 | + <?php $description = match (true) { |
| 26 | + isset($description) => $description, |
| 27 | + default => 'Tempest is a modern framework designed to enable developers to write as little framework-specific code as possible, so that they can focus on application code instead.', |
| 28 | + }; ?> |
| 29 | + |
| 30 | + <meta name="description" :content="$description"> |
| 31 | + <meta name="twitter:description" :content="$description"> |
| 32 | + <meta property="og:description" :content="$description"> |
| 33 | + <meta itemprop="description" :content="$description"> |
| 34 | + |
| 35 | + |
| 36 | + <!-- Favicon --> |
| 37 | + <link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png"/> |
| 38 | + <link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png"/> |
| 39 | + <link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png"/> |
| 40 | + <link rel="manifest" href="/favicon/site.webmanifest"/> |
| 41 | + |
| 42 | + <!-- Vite tags --> |
| 43 | + <x-vite-tags/> |
| 44 | + |
| 45 | + <x-slot name="head"/> |
| 46 | +</head> |
| 47 | +<body |
| 48 | + class="relative antialiased flex flex-col grow selection:bg-(--ui-primary)/20 selection:text-(--ui-primary) font-sans text-(--ui-text) bg-(--ui-bg) scheme-light dark:scheme-dark !overflow-visible !pr-0" |
| 49 | +> |
| 50 | +<x-aurora class="dark:hidden" :if="! ($clean ?? null)" /> |
| 51 | +<x-moonlight :if="! ($clean ?? null)" /> |
| 52 | +<x-rain :if="! ($clean ?? null)" /> |
| 53 | + |
| 54 | +<x-slot/> |
| 55 | +</body> |
| 56 | +</html> |
0 commit comments