mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-22 20:33:36 +02:00
91 lines
3.4 KiB
PHP
91 lines
3.4 KiB
PHP
|
<?= helper('page') ?>
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="<?= service('request')->getLocale() ?>">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="UTF-8" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
|
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
|
||
|
<link rel="stylesheet" href="/assets/index.css" />
|
||
|
|
||
|
<title><?= lang('Podcast.follow.title', [
|
||
|
'actorDisplayName' => $actor->display_name,
|
||
|
]) ?></title>
|
||
|
<meta name="description" content="<?= $actor->summary ?>"/>
|
||
|
<meta property="og:title" content="<?= lang('Podcast.follow.title', [
|
||
|
'actorDisplayName' => $actor->display_name,
|
||
|
]) ?>"/>
|
||
|
<meta property="og:locale" content="<?= service(
|
||
|
'request',
|
||
|
)->getLocale() ?>" />
|
||
|
<meta property="og:url" content="<?= current_url() ?>" />
|
||
|
<meta property="og:image" content="<?= $actor->avatar_image_url ?>" />
|
||
|
<meta property="og:description" content="<?= $actor->summary ?>" />
|
||
|
</head>
|
||
|
|
||
|
|
||
|
<body class="flex flex-col min-h-screen bg-pine-50">
|
||
|
<header class="flex flex-col items-center mb-8">
|
||
|
<h1 class="w-full pt-8 pb-32 text-center text-white bg-pine-900"><?= lang(
|
||
|
'ActivityPub.follow.subtitle',
|
||
|
) ?></h1>
|
||
|
<div class="flex flex-col w-full max-w-xs -mt-24 overflow-hidden bg-white shadow rounded-xl">
|
||
|
<?php if ($actor->cover_image_url): ?>
|
||
|
<img src="<?= $actor->cover_image_url ?>" alt="" class="object-cover w-full h-32 bg-pine-800" />
|
||
|
<?php else: ?>
|
||
|
<div class="w-full h-32 bg-pine-800"></div>
|
||
|
<?php endif; ?>
|
||
|
<div class="flex px-4 py-2">
|
||
|
<img src="<?= $actor->avatar_image_url ?>" alt="<?= $actor->display_name ?>"
|
||
|
class="w-16 h-16 mr-4 -mt-8 rounded-full shadow-xl ring-2 ring-white" />
|
||
|
<div class="">
|
||
|
<p class="font-semibold"><?= $actor->display_name ?></p>
|
||
|
<p class="text-sm text-gray-500">@<?= $actor->username ?></p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</header>
|
||
|
|
||
|
<main class="w-full max-w-md px-4 mx-auto">
|
||
|
<?= form_open(route_to('attempt-follow', $actor->username), [
|
||
|
'method' => 'post',
|
||
|
'class' => 'flex flex-col',
|
||
|
]) ?>
|
||
|
<?= csrf_field() ?>
|
||
|
<?= view('_message_block') ?>
|
||
|
|
||
|
<?= form_label(
|
||
|
lang('ActivityPub.your_handle'),
|
||
|
'handle',
|
||
|
[],
|
||
|
lang('ActivityPub.your_handle_hint'),
|
||
|
) ?>
|
||
|
<?= form_input([
|
||
|
'id' => 'handle',
|
||
|
'name' => 'handle',
|
||
|
'class' => 'form-input mb-4',
|
||
|
'required' => 'required',
|
||
|
'type' => 'text',
|
||
|
]) ?>
|
||
|
|
||
|
<?= button(
|
||
|
lang('ActivityPub.follow.submit'),
|
||
|
null,
|
||
|
['variant' => 'primary'],
|
||
|
['type' => 'submit', 'class' => 'self-end'],
|
||
|
) ?>
|
||
|
<?= form_close() ?>
|
||
|
</main>
|
||
|
|
||
|
<footer
|
||
|
class="container flex flex-col items-center px-2 py-4 mx-auto mt-auto text-xs border-t md:justify-between md:flex-row">
|
||
|
<?= render_page_links('inline-flex mb-4 md:mb-0') ?>
|
||
|
<p>
|
||
|
<?= lang('Common.powered_by', [
|
||
|
'castopod' =>
|
||
|
'<a class="underline hover:no-underline" href="https://castopod.org" target="_blank" rel="noreferrer noopener">Castopod</a>',
|
||
|
]) ?>
|
||
|
</p>
|
||
|
</footer>
|
||
|
</body>
|