summaryrefslogtreecommitdiff
path: root/app/templates/home.html
blob: 5598739cad28c83e70818f32d3bf007aa09353e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<link rel= "stylesheet" type= "text/css" href= "{{ url_for('static',filename='styles/default.css') }}">
<link rel= "stylesheet" type= "text/css" href= "{{ url_for('static',filename='styles/home.css') }}">

{% extends "base.html" %}
{% block content %}

<!-- 'Yes' tab -->
<a href="{{ url_for('yes') }}" class="tab-yes"></a>
<!-- 'No' tab -->
<a href="{{ url_for('no') }}" class="tab-no"></a>

<div class="feed-post">
    {% for post in posts %}
    <div class="post-wrapper">
        <a href="{{ url_for('home') }}" class="btn-yes"></a>
        <a href="{{ url_for('home') }}" class="btn-no"></a>
        <div class="post">
            <h1>{{post.author}}</h1>
            <h2>{{post.date}}</h2>
            <p>{{post.content}}</p>
        </div>
        {% if post.type == message %}
        <!-- implement a drop-down "drawer" quick reply feature -->
        {% endif %}
    </div>

    {% endfor %}
</div>

{% endblock content %}
Copyright 2019--2024 Marius PETER