60 lines
1.7 KiB
HTML
60 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>LinkLog Feed</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="stylesheet" href="/static/style.css" />
|
|
</head>
|
|
<body data-user-filter="{{ user_filter or '' }}">
|
|
<header class="site-header">
|
|
<div class="container">
|
|
<div class="header-row">
|
|
<div>
|
|
<h1>LinkLog</h1>
|
|
<p>Public link feed</p>
|
|
</div>
|
|
<a class="login-button" href="/login">Sign in</a>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="container">
|
|
{% if profile %}
|
|
<section class="link-item profile-summary">
|
|
<div class="link-header">
|
|
<div class="avatar">
|
|
{% if profile.avatar_url %}
|
|
<img src="{{ profile.avatar_url }}" alt="{{ profile.username }} avatar" />
|
|
{% else %}
|
|
{{ profile.username[:1].upper() }}
|
|
{% endif %}
|
|
</div>
|
|
<div class="user-name">{{ profile.username }}</div>
|
|
</div>
|
|
<p>{{ profile.bio or 'No profile information provided.' }}</p>
|
|
</section>
|
|
{% endif %}
|
|
<section class="toolbar">
|
|
<label>
|
|
Sort
|
|
<select id="sort-select">
|
|
<option value="newest">Newest first</option>
|
|
<option value="oldest">Oldest first</option>
|
|
</select>
|
|
</label>
|
|
<label>
|
|
User filter
|
|
<select id="user-filter">
|
|
<option value="">All users</option>
|
|
</select>
|
|
</label>
|
|
</section>
|
|
|
|
<section id="feed" class="feed" aria-live="polite"></section>
|
|
</main>
|
|
|
|
<script src="/static/feed.js?v=4"></script>
|
|
</body>
|
|
</html>
|