This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
bdfr-browser/priv/templates/http/index.eex
Daniel Kempkens 38df258ce5
All checks were successful
Build / build (push) Successful in 2m42s
feat: Simulated multireddits
2023-10-02 12:59:52 +02:00

72 lines
1.8 KiB
Elixir

<h1>BDFR Browser</h1>
<div class="row text-center">
<div class="d-grid gap-2 col-12 mx-auto">
<a class="btn btn-outline-primary btn-lg" href="/chats" role="button">Chats</a>
<a class="btn btn-outline-secondary btn-lg" href="/all/subreddits" role="button">All Subreddits</a>
</div>
</div>
<br>
<form method="get" action="/search" class="row">
<div class="col-8">
<input type="text" class="form-control" placeholder="Search term" name="search" />
</div>
<div class="col-4 text-end">
<button type="submit" class="btn btn-primary">Search</button>
</div>
</form>
<br>
<h2>Archived Subreddits</h2>
<div class="row text-center">
<div class="d-grid gap-2 col-12 mx-auto">
<%= for subreddit <- subreddits do %>
<a class="btn btn-outline-secondary btn-lg" href="/r/<%= subreddit %>" role="button"><%= subreddit %></a>
<% end %>
</div>
</div>
<br>
<h2>Archived Users</h2>
<div class="row text-center">
<div class="d-grid gap-2 col-12 mx-auto">
<%= for user <- users do %>
<a class="btn btn-outline-secondary btn-lg" href="/user/<%= user %>" role="button"><%= user %></a>
<% end %>
</div>
</div>
<br>
<h2>Simulated Multireddits</h2>
<div class="row text-center">
<div class="d-grid gap-2 col-12 mx-auto">
<%= for {title, subreddits} <- multireddits do %>
<a class="btn btn-outline-secondary btn-lg" href="/m/<%= Enum.join(subreddits, "+") %>" role="button"><%= title %></a>
<% end %>
</div>
</div>
<br>
<h2>Saved Searches</h2>
<div class="row text-center">
<div class="d-grid gap-2 col-12 mx-auto">
<%= for search <- searches do %>
<a class="btn btn-outline-secondary btn-lg fst-italic" href="/search?<%= URI.encode_query(%{"search" => search}) %>" role="button">
<%= search %>
</a>
<% end %>
</div>
</div>
<br>