Browse Source

reworking main page

Axolotle 1 year ago
parent
commit
5ba7b7254e

+ 5
- 6
app/main/views.py View File

@@ -55,9 +55,9 @@ partial_content_no_history = partial_content_no_history_decorator(base)
55 55
 def index():
56 56
     return [ 'displayMain',
57 57
            { "content": render_template("index.html",
58
-                                        podcasts = Podcast.list(),
59
-                                        blog_posts = BlogPost.list(),
60
-                                        events = Event.list()) } ]
58
+                                        podcasts = Podcast.list(number=3),
59
+                                        blog_posts = BlogPost.list(number=3),
60
+                                        events = Event.list(number=3)) } ]
61 61
 
62 62
 
63 63
 #########################
@@ -67,7 +67,7 @@ def index():
67 67
 @main.route('/about')
68 68
 @partial_content
69 69
 def about():
70
-    page = Page.query.filter_by(name='À propos').first_or_404()
70
+    page = Page.query.filter_by(name='about').first_or_404()
71 71
     return [ 'displayMain',
72 72
            { "content": render_template("main_pages/about.html",
73 73
                                         page=page) } ]
@@ -76,7 +76,7 @@ def about():
76 76
 @partial_content
77 77
 def contribute():
78 78
     # create a real "contribute" page
79
-    page = Page.query.filter_by(name='Contribuer').first_or_404()
79
+    page = Page.query.filter_by(name='contribute').first_or_404()
80 80
     return [ 'displayMain',
81 81
              { "content": render_template("main_pages/contribute.html",
82 82
                                           page=page) } ]
@@ -195,4 +195,3 @@ def get_live():
195 195
     return [ "updateLive",
196 196
              { "next_live_in" : next_live_in,
197 197
                "stream_url_play" : stream_url } ]
198
-

+ 26
- 1
app/static/css/style.css View File

@@ -91,6 +91,12 @@ section {
91 91
   padding-top: 5em; }
92 92
   section.solo {
93 93
     max-width: 40em; }
94
+  section.principal {
95
+    width: 35%; }
96
+  section.second {
97
+    width: 60%;
98
+    padding-left: 7em;
99
+    padding-right: 6em; }
94 100
   section div.flex {
95 101
     display: -webkit-box;
96 102
     display: -moz-box;
@@ -151,10 +157,29 @@ section {
151 157
     color: black;
152 158
     text-decoration: none; }
153 159
     section a:hover {
154
-      border-bottom-color: black; }
160
+      border-bottom-color: black;
161
+      color: black; }
162
+    section a:visited {
163
+      color: black; }
155 164
   section h3 {
156 165
     font-family: pixelpath;
157 166
     font-size: 2.2em; }
167
+  section .widget:not(:first-child) {
168
+    margin-top: 1em; }
169
+  section .widgetBis:not(:first-child) {
170
+    margin-top: 4em; }
171
+  section .description p {
172
+    margin-bottom: 1em; }
173
+  section .description a {
174
+    text-decoration: underline;
175
+    border-bottom: none; }
176
+  section .description h1, section .description h2, section .description h3, section .description h4, section .description h5, section .description h6 {
177
+    font-family: pixelpath;
178
+    font-size: 1.85em; }
179
+  section .description strong {
180
+    font-style: bold; }
181
+  section .description em {
182
+    font-style: italic; }
158 183
 
159 184
 .more {
160 185
   margin-left: calc(100% - 5em);

+ 1
- 1
app/static/css/style.css.map View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
 "version": 3,
3
-"mappings": "AAaA;;;;EAIE;ACdF,CAAE;EACE,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;EACV,UAAU,EAAE,UAAU;;AAG1B,IAAK;EACD,WAAW,EDVF,eAAe;ECWxB,SAAS,EDTI,KAAK;ECUlB,gBAAgB,EDPZ,KAAK;;ACUb,IAAK;EACD,MAAM,EAAE,IAAI;ECuBd,OAAO,EAAE,WAAW;EACpB,OAAO,EAAE,QAAQ;EACjB,OAAO,EAAE,WAAW;EACpB,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,IAAI;EDzBX,MAAM,EAAE,kBAAkB;EAC1B,aAAa,EAAE,KAAK;EACpB,cAAc,EAAE,GAAG;;AAGvB,yBAA0B;EACtB,KAAK,EDlBD,KAAK;;ACoBb,CAAE;EACE,OAAO,EAAE,CAAC;;AAGd,GAAI;EACA,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,GAAG;EACV,YAAY,EAAE,GAAG;EACjB,YAAY,EAAE,GAAG;EAGjB,GAAG,EAAE,CAAC;EAEN,SAAM;IACF,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,OAAO;IAEf,aAAI;MACA,SAAS,EAAE,IAAI;EAIvB,kBAAe;IACX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U;AACV,KAAM;EACF,IAAI,EAAE,IAAI;EACV,cAAc,EAAE,KAAK;EACrB,eAAe,EAAE,KAAK;;AAE1B,WAAY;EACR,YAAY,EAAE,CAAC;EACf,iBAAiB,EAAE,CAAC;;AAExB,UAAW;EACP,YAAY,EAAE,CAAC;EACf,iBAAiB,EAAE,CAAC;;AAExB,MAAO;EACH,MAAM,EJTF,KAAK;;AIWb,WAAY;EACR,MAAM,EJXG,WAAW;;AIaxB,OAAQ;EACJ,IAAI,EJfA,KAAK;EIgBT,MAAM,EAAE,IAAI;;ACtBhB,WAAW;AAEX,sCAAsC;AACtC,UAKC;EAJC,WAAW,EAAE,WAAW;EACxB,GAAG,EAAE,yIAAyI;EAC9I,WAAW,EAAE,GAAG;EAChB,UAAU,EAAE,MAAM;AAIpB;;sBAEsB;AACtB,UAKC;EAJC,WAAW,EAAE,MAAM;EACnB,GAAG,EAAE,wNAAwN;EAC7N,WAAW,EAAE,GAAG;EAChB,UAAU,EAAE,MAAM;AAGpB,UAKC;EAJC,WAAW,EAAE,MAAM;EACnB,GAAG,EAAE,+MAA+M;EACpN,WAAW,EAAE,GAAG;EAChB,UAAU,EAAE,MAAM;AAGpB,UAKC;EAJC,WAAW,EAAE,MAAM;EACnB,GAAG,EAAE,qNAAqN;EAC1N,WAAW,EAAE,GAAG;EAChB,UAAU,EAAE,MAAM;AAGpB,UAKC;EAJC,WAAW,EAAE,MAAM;EACnB,GAAG,EAAE,iOAAiO;EACtO,WAAW,EAAE,GAAG;EAChB,UAAU,EAAE,MAAM",
4 4
 "sources": ["../scss/_rules.scss","../scss/style.scss","../scss/_mixins.scss","../scss/_sections.scss","../scss/_svgs.scss","../scss/_fonts.scss"],
5 5
 "names": [],
6 6
 "file": "style.css"

+ 39
- 1
app/static/scss/_sections.scss View File

@@ -15,6 +15,14 @@ section {
15 15
     &.solo {
16 16
         max-width: 40em;
17 17
     }
18
+    &.principal {
19
+        width: 35%;
20
+    }
21
+    &.second {
22
+        width: 60%;
23
+        padding-left: 7em;
24
+        padding-right: 6em;
25
+    }
18 26
 
19 27
     div {
20 28
         &.flex {
@@ -86,6 +94,10 @@ section {
86 94
 
87 95
         &:hover {
88 96
             border-bottom-color: $black;
97
+            color: $black;
98
+        }
99
+        &:visited {
100
+            color: $black;
89 101
         }
90 102
     }
91 103
 
@@ -93,11 +105,37 @@ section {
93 105
         font-family: $font-title;
94 106
         font-size: $font-title-size;
95 107
     }
108
+    .widget:not(:first-child) {
109
+        margin-top: 1em;
110
+    }
111
+    .widgetBis:not(:first-child) {
112
+        margin-top: 4em;
113
+    }
114
+
115
+    .description {
116
+        p {
117
+            margin-bottom: 1em;
118
+        }
119
+        a {
120
+            text-decoration: underline;
121
+            border-bottom: none;
122
+        }
123
+        h1, h2, h3, h4, h5, h6 {
124
+            font-family: $font-title;
125
+            font-size: 1.85em;
126
+        }
127
+        strong {
128
+            font-style: bold;
129
+        }
130
+        em {
131
+            font-style: italic;
132
+        }
133
+    }
96 134
 
135
+}
97 136
 
98 137
 
99 138
 
100
-}
101 139
 .more {
102 140
     margin-left: calc(100% - 5em);
103 141
     text-align: center;

+ 0
- 1
app/static/scss/style.scss View File

@@ -86,7 +86,6 @@ main {
86 86
 ::-moz-selection {
87 87
     background-color: $black;
88 88
     color: $white;
89
-
90 89
  }
91 90
 ::selection {
92 91
     background-color: $black;

+ 1
- 1
app/templates/elem_pages/podcast.html View File

@@ -42,7 +42,7 @@
42 42
     {% endif %}
43 43
 
44 44
     {% if elem.description %}
45
-    <div class="marg2 decal">
45
+    <div class="marg2 decal description">
46 46
         {{ elem.description|safe }}
47 47
     </div>
48 48
     {% endif %}

+ 68
- 16
app/templates/index.html View File

@@ -1,19 +1,71 @@
1
-<section id="left-panel">
2
-    <ul>
3
-        <h2>Derniers podcasts</h2>
4
-        {% for podcast in podcasts %}
5
-        <li>
6
-            <a class="content-link" href="{{ url_for('main.podcast', id=podcast.id) }}">{{ podcast.name }}</a>
7
-        </li>
8
-        {% endfor %}
9
-    </ul>
1
+<section class="principal">
2
+    <div class="title">
3
+        {% include 'svg/title_podcasts.svg' %}
4
+    </div>
5
+    {% for elem in podcasts %}
6
+    <article class="widget">
7
+        <div class="flex">
8
+            <a class="picto content-link" href="{{ url_for('main.play', id=elem.id) }}">
9
+                {% include 'svg/small_play.svg' -%}
10
+            </a>
11
+            <div class="bloc name">
12
+                <h3><a class="content-link" href="{{ url_for('main.podcast', id=elem.id) }}">{{ elem.name }}</a></h3>
13
+            </div>
14
+        </div>
15
+        <span class="license">{{ elem.timestamp|format_date }}</span>
16
+    </article>
17
+    {% endfor %}
18
+
19
+    {% if events %}
20
+        <div class="title marg2">
21
+            {% include 'svg/title_agenda.svg' %}
22
+        </div>
23
+        <div>
24
+            {% for elem in events %}
25
+            <article class="widgetBis">
26
+                <h3>{{ elem.name }}</h3>
27
+                <span>Du {{ elem.begin|format_date  }} au {{ elem.end|format_date }}</span>
28
+                <div class="marg description">
29
+                    {{ elem.description|safe|truncate(200, False) }}
30
+                </div>
31
+            </article>
32
+            {% endfor %}
33
+        </div>
34
+
35
+
36
+    {% endif %}
37
+
10 38
 </section>
11 39
 
12
-<section id="right-panel">
13
-{% if blog_posts %}
14
-    {% include "blog.html" %}
15
-{% endif %}
16
-{% if events %}
17
-    {% include "agenda.html" %}
18
-{% endif %}
40
+<section class="second">
41
+    {% if blog_posts %}
42
+    <div class="title">
43
+        {% include 'svg/title_blog.svg' %}
44
+    </div>
45
+
46
+    {% for elem in blog_posts %}
47
+    <article>
48
+        <h3>{{ elem.name }}</h3>
49
+        <span class="license">{{ elem.timestamp|format_date }}</span>
50
+
51
+        {% if elem.contributors|length > 0 %}
52
+        <p class="marg">Par
53
+        {% for contributor in elem.contributors %}
54
+            <a class="content-link"
55
+                href="{{ url_for('main.contributor', id=contributor.id) }}">
56
+            {{ contributor.name -}}
57
+            </a>
58
+            {%- if not loop.last %}, {% endif %}
59
+        {% endfor %}
60
+        </p>
61
+        {% endif %}
62
+
63
+        <div class="marg2 description">
64
+            {{ elem.description|safe }}
65
+        </div>
66
+
67
+    </article>
68
+    {% endfor %}
69
+    {% endif %}
70
+
19 71
 </section>

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

@@ -60,9 +60,9 @@
60 60
                 </svg>
61 61
             </div>
62 62
             <div id="side-infos" class="text">
63
-                <h3>TITRE</h3>
63
+                <!-- <h3>TITRE</h3>
64 64
                 <p>date</p>
65
-                <p>infos</p>
65
+                <p>infos</p> -->
66 66
             </div>
67 67
         </div>
68 68
 

Loading…
Cancel
Save