Browse Source

adapting about agendas blogs & contribute

Axolotle 2 years ago
parent
commit
15aec370c3

+ 11
- 7
app/templates/main_pages/about.html View File

@@ -1,14 +1,18 @@
1
-<section>
2
-    <h2>{{ page.name }}</h2>
3
-    {{ page.description|safe }}
1
+<section class="second">
2
+    <div class="title marg2">
3
+        {% include 'svg/title_about.svg' %}
4
+    </div>
5
+    <div class="marg description">
6
+        {{ page.description|safe }}
7
+    </div>
4 8
 </section>
5 9
 
6
-<section id="subscribe">
7
-  <h2 class="iconbox-title">Newsletter</h2>
8
-    <div class="iconbox-desc">
10
+<section id="subscribe" class="principal">
11
+  <h3 class="iconbox-title marg">Newsletter</h3>
12
+    <div class="iconbox-desc marg">
9 13
     <form id="ml-subscribe" method="POST" action="https://radiorhino.eu/mailman/subscribe/news">
10 14
         <input  type="text" name="email" maxlength="80" size="20" placeholder="Votre adresse email" required>
11
-        <input type="submit" value="S'inscrire" href="javascript:{}" onclick="document.getElementById('ml-subscribe').submit(); return false;">
15
+        <input class="marg" type="submit" value="S'inscrire" href="javascript:{}" onclick="document.getElementById('ml-subscribe').submit(); return false;">
12 16
     </form>
13 17
     </div>
14 18
 </section>

+ 23
- 14
app/templates/main_pages/agendas.html View File

@@ -1,16 +1,25 @@
1
-<section id="left-panel">
2
-<h2>Agenda</h2>
3
-{% for event in events %}
4
-<div class="list-elem">
5
-    <h3>{{ event.name }}</h3>
6
-    <p>PLACE : {{ event.place }}</p>
7
-    <p>FROM {{ event.begin }} TO {{ event.end }}</p>
8
-    <p>LIVE : {{ event.live_show }}</p>
9
-    <p>{{ event.description|safe }}</p>
10
-</div>
11
-{% endfor %}
12
-</section>
1
+<section class="second">
2
+    {% if events %}
3
+        <div class="title marg2">
4
+            {% include 'svg/title_agenda.svg' %}
5
+        </div>
6
+        <div>
7
+            {% for elem in events %}
8
+            <article class="widgetBis">
9
+                <h3>{{ elem.name }}</h3>
10
+                <span>Du {{ elem.begin|format_date  }} au {{ elem.end|format_date }}</span>
11
+
12
+                {% if elem.place %}
13
+                <p>Lieu : {{ elem.place }}</p>
14
+                {% endif %}
15
+
16
+                <div class="marg description">
17
+                    {{ elem.description|safe }}
18
+                </div>
19
+            </article>
20
+            {% endfor %}
21
+        </div>
22
+
13 23
 
14
-<section id="right-panel">
15
-<h2>Selection</h2>
24
+    {% endif %}
16 25
 </section>

+ 39
- 21
app/templates/main_pages/blogs.html View File

@@ -1,24 +1,42 @@
1
-<section id="left-panel">
2
-<h2>Blog</h2>
3
-{% for post in blog_posts %}
4
-<div class="list-elem">
5
-    <h3>{{ post.name }}</h3>
6
-    <p>CHANNEL : <a>
7
-        {{ post.channel.name }}
8
-    </a></p>
9
-    {% if post.contributor %}
10
-    <p>CONTRIBUTOR : <a class="content-link"
11
-        href="{{ url_for('main.contributor', contrib=post.contributor.id) }}">
12
-        {{ post.contributor.name }}
13
-    </a></p>
14
-    {% endif %}
1
+<section class="second">
2
+    {% if blog_posts %}
3
+    <div class="title">
4
+        {% include 'svg/title_blog.svg' %}
5
+    </div>
15 6
 
16
-    <p>{{ post.timestamp }}</p>
17
-    {{ post.description|safe }}
18
-</div>
19
-{% endfor %}
20
-</section>
7
+    {% for elem in blog_posts %}
8
+    <article class="widgetBis">
9
+        <h3>{{ elem.name }}</h3>
10
+        <span class="license">{{ elem.timestamp|format_date }}</span>
11
+
12
+        {% if elem.contributors|length > 0 %}
13
+        <p class="marg">Par
14
+        {% for contributor in elem.contributors %}
15
+            <a class="content-link"
16
+                href="{{ url_for('main.contributor', id=contributor.id) }}">
17
+            {{ contributor.name -}}
18
+            </a>
19
+            {%- if not loop.last %}, {% endif %}
20
+        {% endfor %}
21
+        {% if elem.contributors|length > 0 %}
22
+        @
23
+        {% for collective in elem.collectives %}
24
+            <a class="content-link"
25
+                href="{{ url_for('main.collective', id=collective.id) }}">
26
+            {{ collective.name -}}
27
+            </a>
28
+            {%- if not loop.last %}, {% endif %}
29
+        {% endfor %}
30
+        {% endif %}
31
+        </p>
32
+        {% endif %}
33
+
34
+        <div class="marg2 description">
35
+            {{ elem.description|safe }}
36
+        </div>
37
+
38
+    </article>
39
+    {% endfor %}
40
+    {% endif %}
21 41
 
22
-<section id="right-panel">
23
-<h2>Selection</h2>
24 42
 </section>

+ 7
- 3
app/templates/main_pages/contribute.html View File

@@ -1,4 +1,8 @@
1
-<section>
2
-    <h2>{{ page.name }}</h2>
3
-    {{ page.description|safe }}
1
+<section class="second">
2
+    <div class="title marg2">
3
+        {% include 'svg/title_contribute.svg' %}
4
+    </div>
5
+    <div class="marg description">
6
+        {{ page.description|safe }}
7
+    </div>
4 8
 </section>

+ 1
- 2
app/templates/player.html View File

@@ -35,8 +35,7 @@
35 35
             </div>
36 36
             <div id="play-infos" class="text">
37 37
                 <h3 id="track-title">TITRE</h3>
38
-                <p>date</p>
39
-                <p>infos</p>
38
+                <p>CHANNEL</p>
40 39
             </div>
41 40
         </div>
42 41
 

Loading…
Cancel
Save