2021-04-02 17:20:02 +00:00
|
|
|
<?= helper('page') ?>
|
|
|
|
|
|
|
|
<!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'] ?>">
|
|
|
|
<link rel="manifest" href="<?= route_to('webmanifest') ?>">
|
2021-08-09 10:28:16 +00:00
|
|
|
|
2021-10-21 13:12:38 +00:00
|
|
|
<title><?= lang('Podcast.followTitle', [
|
2021-04-02 17:20:02 +00:00
|
|
|
'actorDisplayName' => $actor->display_name,
|
2021-09-08 15:51:33 +00:00
|
|
|
]) ?></title>
|
2021-04-02 17:20:02 +00:00
|
|
|
<meta name="description" content="<?= $actor->summary ?>"/>
|
2021-10-21 13:12:38 +00:00
|
|
|
<meta property="og:title" content="<?= lang('Podcast.followTitle', [
|
2021-04-02 17:20:02 +00:00
|
|
|
'actorDisplayName' => $actor->display_name,
|
2021-09-08 15:51:33 +00:00
|
|
|
]) ?>"/>
|
2021-04-02 17:20:02 +00:00
|
|
|
<meta property="og:locale" content="<?= service(
|
|
|
|
'request',
|
2021-09-08 15:51:33 +00:00
|
|
|
)->getLocale() ?>" />
|
2021-04-02 17:20:02 +00:00
|
|
|
<meta property="og:url" content="<?= current_url() ?>" />
|
|
|
|
<meta property="og:image" content="<?= $actor->avatar_image_url ?>" />
|
|
|
|
<meta property="og:description" content="<?= $actor->summary ?>" />
|
2021-08-09 10:28:16 +00:00
|
|
|
|
2021-09-08 15:51:33 +00:00
|
|
|
<?= service('vite')
|
|
|
|
->asset('styles/index.css', 'css') ?>
|
2021-10-21 13:12:38 +00:00
|
|
|
<?= 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 bg-base theme-<?= service('settings')
|
|
|
|
->get('App.theme') ?>">
|
2021-04-02 17:20:02 +00:00
|
|
|
<header class="flex flex-col items-center mb-8">
|
2021-11-08 16:52:20 +00:00
|
|
|
<h1 class="w-full pt-8 pb-32 text-lg font-semibold text-center text-white bg-header"><?= lang(
|
2021-08-27 10:58:22 +00:00
|
|
|
'Fediverse.follow.subtitle',
|
2021-04-02 17:20:02 +00:00
|
|
|
) ?></h1>
|
2021-11-05 14:36:34 +00:00
|
|
|
<div class="flex flex-col w-full max-w-xs -mt-24 overflow-hidden shadow bg-elevated rounded-xl">
|
|
|
|
<img src="<?= $actor->podcast->banner->small_url ?>" alt="" class="object-cover w-full h-32 bg-header" />
|
2021-04-02 17:20:02 +00:00
|
|
|
<div class="flex px-4 py-2">
|
|
|
|
<img src="<?= $actor->avatar_image_url ?>" alt="<?= $actor->display_name ?>"
|
2021-11-05 14:36:34 +00:00
|
|
|
class="w-16 h-16 mr-4 -mt-8 rounded-full ring-2 ring-background-elevated" />
|
|
|
|
<div class="flex flex-col">
|
2021-04-02 17:20:02 +00:00
|
|
|
<p class="font-semibold"><?= $actor->display_name ?></p>
|
2021-11-05 14:36:34 +00:00
|
|
|
<p class="text-sm text-skin-muted">@<?= $actor->username ?></p>
|
2021-04-02 17:20:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<main class="w-full max-w-md px-4 mx-auto">
|
2021-11-08 16:52:20 +00:00
|
|
|
<form action="<?= route_to('attempt-follow', $actor->username) ?>" method="POST" class="flex flex-col gap-y-2">
|
2021-10-13 15:43:40 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
<?= view('_message_block') ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
|
2021-10-13 15:43:40 +00:00
|
|
|
<Forms.Field
|
|
|
|
name="handle"
|
|
|
|
label="<?= lang('Fediverse.your_handle') ?>"
|
|
|
|
hint="<?= lang('Fediverse.your_handle_hint') ?>"
|
|
|
|
required="true"
|
|
|
|
/>
|
2021-11-08 16:52:20 +00:00
|
|
|
<Button variant="primary" type="submit" class="self-end" iconRight="send-plane"><?= lang('Fediverse.follow.submit') ?></Button>
|
2021-09-20 15:45:38 +00:00
|
|
|
</form>
|
2021-04-02 17:20:02 +00:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<footer
|
2021-11-08 16:52:20 +00:00
|
|
|
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>',
|
|
|
|
]) ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
</footer>
|
2021-05-06 14:00:48 +00:00
|
|
|
</body>
|