2021-04-02 17:20:02 +00:00
|
|
|
<!DOCTYPE html>
|
2021-09-08 15:51:33 +00:00
|
|
|
<html lang="<?= service('request')
|
|
|
|
->getLocale() ?>">
|
2021-04-02 17:20:02 +00:00
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8"/>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
2021-10-26 15:54:56 +00:00
|
|
|
<link rel="icon" type="image/x-icon" href="<?= service('settings')
|
|
|
|
->get('App.siteIcon')['ico'] ?>" />
|
|
|
|
<link rel="apple-touch-icon" href="<?= service('settings')->get('App.siteIcon')['180'] ?>">
|
2021-11-23 11:54:34 +00:00
|
|
|
<link rel="manifest" href="<?= route_to('podcast-webmanifest', $post->actor->podcast->handle) ?>">
|
|
|
|
<meta name="theme-color" content="<?= \App\Controllers\WebmanifestController::THEME_COLORS[service('settings')->get('App.theme')]['theme'] ?>">
|
|
|
|
<script>
|
|
|
|
// Check that service workers are supported
|
|
|
|
if ('serviceWorker' in navigator) {
|
|
|
|
// Use the window load event to keep the page load performant
|
|
|
|
window.addEventListener('load', () => {
|
|
|
|
navigator.serviceWorker.register('/sw.js');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
</script>
|
2021-04-02 17:20:02 +00:00
|
|
|
|
2021-11-12 16:31:35 +00:00
|
|
|
<?= $metatags ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
|
2021-12-07 13:46:08 +00:00
|
|
|
<link rel='stylesheet' type='text/css' href='<?= route_to('color-themes-css') ?>' />
|
2021-09-08 15:51:33 +00:00
|
|
|
<?= service('vite')
|
|
|
|
->asset('styles/index.css', 'css') ?>
|
|
|
|
<?= service('vite')
|
|
|
|
->asset('js/podcast.ts', 'js') ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
</head>
|
|
|
|
|
2021-11-08 16:52:20 +00:00
|
|
|
<body class="flex flex-col min-h-screen mx-auto bg-base theme-<?= service('settings')
|
|
|
|
->get('App.theme') ?>">
|
|
|
|
<header class="pt-8 pb-32 bg-header">
|
|
|
|
<h1 class="text-lg font-semibold text-center text-white"><?= lang(
|
2021-08-27 10:58:22 +00:00
|
|
|
'Fediverse.' . $action . '.subtitle',
|
2021-04-02 17:20:02 +00:00
|
|
|
) ?></h1>
|
|
|
|
</header>
|
|
|
|
<main class="flex-1 max-w-xl px-4 pb-8 mx-auto -mt-24">
|
2021-10-25 10:35:45 +00:00
|
|
|
<?= view('post/_partials/card', [
|
|
|
|
'index' => 1,
|
|
|
|
'podcast' => $podcast,
|
|
|
|
'post' => $post,
|
|
|
|
]) ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
|
2021-11-08 16:52:20 +00:00
|
|
|
<form action="<?= route_to('post-attempt-remote-action', $post->id, $action) ?>" method="POST" class="flex flex-col mt-8 gap-y-2">
|
2021-09-20 15:45:38 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
<?= view('_message_block') ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
|
2021-09-20 15:45:38 +00:00
|
|
|
<Forms.Field
|
|
|
|
name="handle"
|
|
|
|
label="<?= lang('Fediverse.your_handle') ?>"
|
|
|
|
hint="<?= lang('Fediverse.your_handle_hint') ?>"
|
|
|
|
required="true" />
|
2021-04-02 17:20:02 +00:00
|
|
|
|
2021-10-21 13:12:38 +00:00
|
|
|
<Button variant="primary" type="submit" class="self-end" iconRight="send-plane"><?= lang('Fediverse.' . $action . '.submit') ?></Button>
|
2021-09-20 15:45:38 +00:00
|
|
|
</form>
|
2021-04-02 17:20:02 +00:00
|
|
|
</main>
|
2021-11-08 16:52:20 +00:00
|
|
|
<footer
|
|
|
|
class="flex-col w-full px-2 py-4 mt-auto text-xs text-center border-t text-skin-muted border-subtle">
|
|
|
|
<?= lang('Common.powered_by', [
|
|
|
|
'castopod' =>
|
|
|
|
'<a class="inline-flex font-semibold hover:underline focus:ring-accent" href="https://castopod.org" target="_blank" rel="noreferrer noopener">Castopod' . icon('social/castopod', 'ml-1 text-lg') . '</a>',
|
|
|
|
]) ?>
|
|
|
|
</footer>
|
2021-04-02 17:20:02 +00:00
|
|
|
</body>
|