feat: back button from full thread page

This commit is contained in:
Ayo Ayco 2024-04-25 16:35:54 +02:00
parent 4ea9637e3a
commit cea96e6fe0
2 changed files with 21 additions and 2 deletions

View file

@ -23,6 +23,18 @@
} }
} }
main .back {
padding:1em 0 0;
& a {
text-decoration: none;
}
& a::before {
content: '\25C0';
}
}
ul { ul {
list-style: none; list-style: none;
} }
@ -102,15 +114,22 @@
</head> </head>
<body> <body>
<header> <header>
<a href="/">go home</a></nav> <nav><a href="/">go home</a></nav>
<h1>{{ app.title }}</h1> <h1>{{ app.title }}</h1>
<p>{{ app.description }}</p> <p>{{ app.description }}</p>
</header> </header>
<main> <main>
{% if threads|length == 1 and threads[0].descendants %}
<div class="back">
<a href="{{url_for('threads.home')}}">Back</a>
</div>
{% endif %}
<ul> <ul>
{% for thread in threads %} {% for thread in threads %}
<li class="card"> <li class="card">
<div class="card_avatar"> <div class="card_avatar">
{% if thread.account.avatar is defined %} {% if thread.account.avatar is defined %}
<img class="avatar" src="{{thread.account.avatar}}" /> <img class="avatar" src="{{thread.account.avatar}}" />

View file

@ -8,7 +8,7 @@ server = 'https://social.ayco.io'
thread_ids = ['112319729193615365', '112258065967208438'] thread_ids = ['112319729193615365', '112258065967208438']
app = { app = {
"title":"Ayo's Threads", "title":"Ayo's Threads",
"description": "Incubator for thoughts before they become a blog." "description": "Release candidate for thoughts before they become a blog."
} }
attribution = { attribution = {
"owner": "Ayo Ayco", "owner": "Ayo Ayco",