2022-01-25 08:08:31 -05:00
|
|
|
{layout '../layouts/hero.latte'}
|
2022-01-01 14:14:57 -05:00
|
|
|
|
2022-01-25 08:08:31 -05:00
|
|
|
{block content}
|
2022-01-25 11:20:11 -05:00
|
|
|
<p class="title">Welcome to ProxiTok!</p>
|
|
|
|
<p class="subtitle">An alternative open source frontend for TikTok</p>
|
2022-02-05 18:58:30 -05:00
|
|
|
<!-- Create forms from App\Models\HomeTemplate -->
|
2022-02-06 08:22:23 -05:00
|
|
|
<div class="columns is-centered is-vcentered is-multiline">
|
|
|
|
{foreach $forms as $form}
|
|
|
|
<div class="column is-narrow">
|
|
|
|
{embed '../components/card.latte'}
|
|
|
|
{block title}{$form['title']}{/block}
|
|
|
|
{block content}
|
|
|
|
<form action="{path('/redirect')}">
|
|
|
|
<div class="field has-addons has-addons-centered">
|
|
|
|
<div class="control">
|
|
|
|
<input name="{$form['input']}" class="input" type="text" placeholder="{$form['placeholder']}" required />
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
|
|
|
<button class="button is-success" type="submit">Search</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{/block}
|
|
|
|
{/embed}
|
2022-02-05 18:58:30 -05:00
|
|
|
</div>
|
2022-02-06 08:22:23 -05:00
|
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
<div class="columns is-centered is-mobile">
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<p>Discover</p>
|
|
|
|
<a class="button is-success" href="{path('/discover')}">Go</a>
|
|
|
|
</div>
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<p>Trending</p>
|
|
|
|
<a class="button is-success" href="{path('/trending')}">Go</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-25 08:08:31 -05:00
|
|
|
{/block}
|