Browse Source

reworking contributor/collective template

Axolotle 2 years ago
parent
commit
df2dcc1b97

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

@@ -84,13 +84,17 @@ main {
84 84
 .marg2 {
85 85
   margin-top: 3em; }
86 86
 
87
+.marg3 {
88
+  margin-top: 2em; }
89
+
87 90
 .decal {
88 91
   margin-left: 5.5em; }
89 92
 
90 93
 section {
91 94
   padding-top: 5em; }
92 95
   section.solo {
93
-    max-width: 40em; }
96
+    max-width: 40em;
97
+    margin-left: 5em; }
94 98
   section.principal {
95 99
     width: 35%; }
96 100
   section.second {
@@ -161,6 +165,9 @@ section {
161 165
       color: black; }
162 166
     section a:visited {
163 167
       color: black; }
168
+  section a.pabo {
169
+    border: none;
170
+    text-decoration: underline; }
164 171
   section h3 {
165 172
     font-family: pixelpath;
166 173
     font-size: 2.2em; }

+ 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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C;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"

+ 9
- 0
app/static/scss/_sections.scss View File

@@ -5,6 +5,10 @@
5 5
 .marg2 {
6 6
     margin-top: 3em;
7 7
 }
8
+// WHOOPS
9
+.marg3 {
10
+    margin-top: 2em;
11
+}
8 12
 .decal {
9 13
     margin-left: 5.5em;
10 14
 }
@@ -14,6 +18,7 @@ section {
14 18
 
15 19
     &.solo {
16 20
         max-width: 40em;
21
+        margin-left: 5em;
17 22
     }
18 23
     &.principal {
19 24
         width: 35%;
@@ -100,6 +105,10 @@ section {
100 105
             color: $black;
101 106
         }
102 107
     }
108
+    a.pabo {
109
+        border: none;
110
+        text-decoration: underline;
111
+    }
103 112
 
104 113
     h3 {
105 114
         font-family: $font-title;

+ 67
- 88
app/templates/elem_pages/contributor.html View File

@@ -1,100 +1,79 @@
1
-<section>
2
-    {% if elem.collectives|length > 0 %}
3
-    <h2>Contributeur :</h2>
4
-    {% else %}
5
-    <h2>Collectif : {{ elem.collectives }}</h2>
6
-    {% endif %}
7
-    <p>{{ elem.name }}</p>
8
-
9
-    {% if elem.collectives %}
10
-    <p>COLLECTIFS : </br>
11
-    {% for collective in elem.collectives %}
12
-        <a class="content-link"
13
-            href="{{ url_for('main.collective', id=collective.id) }}">
14
-        {{ collective.name -}}
15
-        </a>
16
-        {%- if not loop.last %}, {% endif %}
17
-    {% endfor %}
18
-    </p>
19
-    {% endif %}
20
-
21
-
22
-    {% if elem.contributors %}
23
-    <p>CONTRIBUTEURS : </br>
24
-    {% for contributor in elem.contributors %}
25
-        <a class="content-link"
26
-            href="{{ url_for('main.contributor', id=contributor.id) }}">
27
-        {{ contributor.name -}}
28
-        </a>
29
-        {%- if not loop.last %}, {% endif %}
30
-    {% endfor %}
31
-    </p>
32
-    {% endif %}
33
-
34
-
35
-    {% if elem.channels %}
36
-    <p>CHANNEL : </br>
37
-    {% for channel in elem.channels %}
38
-        <a class="content-link"
39
-            href="{{ url_for('main.index') }}">
40
-        {{ channel.name -}}
41
-        </a>
42
-        {%- if not loop.last %}, {% endif %}
43
-    {% endfor %}
44
-    </p>
45
-    {% endif %}
46
-
47
-
48
-    {% if elem.podcasts %}
49
-    <p>PODCASTS : </br>
50
-    {% for podcast in elem.podcasts %}
51
-        <a class="content-link"
52
-            href="{{ url_for('main.podcast', id=podcast.id) }}">
53
-        {{ podcast.name -}}
54
-        </a>
55
-        {%- if not loop.last %}, {% endif %}
56
-    {% endfor %}
57
-    </p>
58
-    {% endif %}
59
-
60
-
61
-    {% if elem.sections %}
62
-    <p>SECTION : </br>
63
-    {% for section in elem.sections %}
64
-        <a class="content-link"
65
-            href="{{ url_for('main.podcast', id=section.podcast.id) }}">
66
-        {{ section.name -}}
67
-        </a>
68
-        {%- if not loop.last %}, {% endif %}
69
-    {% endfor %}
70
-    </p>
71
-    {% endif %}
72
-
1
+<section class="second">
2
+    <div class="title">
3
+    </div>
4
+    <article class="">
5
+        {#
6
+        {% if elem.collectives|length > 0 %}
7
+        <div class="title">
8
+            {% include 'svg/title_contributor.svg' %}
9
+        </div>
10
+        {% else %}
11
+        <div class="title">
12
+            {% include 'svg/title_collective.svg' %}
13
+        </div>
14
+        {% endif %}
15
+        #}
73 16
 
17
+        <h3>{{ elem.name }}</h3>
74 18
 
75
-    <p>INDICATION : {{ elem.status }}</p>
76
-    <p>{{ elem.email }}</p>
77
-    <p><a href="{{ elem.website }}">{{ elem.website }}</a></p>
19
+        {% if elem.website %}
20
+        <p class="marg"><a href="{{ elem.website }}">{{ elem.website }}</a></p>
21
+        {% endif %}
78 22
 
79
-    <p>DESCRIPTION :</p>
80
-    {{ elem.description|safe }}
23
+        {% if elem.status %}
24
+        <p class="marg">----> {{ elem.status }}</p>
25
+        {% endif %}
81 26
 
82
-</section>
27
+        {% if elem.collectives|length > 0 %}
28
+        <p class="marg">Membre de
29
+        {% for collective in elem.collectives %}
30
+            <a class="content-link"
31
+                href="{{ url_for('main.collective', id=collective.id) }}">
32
+            {{ collective.name -}}
33
+            </a>
34
+            {%- if not loop.last %}, {% endif %}
35
+        {% endfor %}
36
+        </p>
37
+        {% endif %}
83 38
 
84
-{% if elem.blog_posts %}
85
-<section>
86
-    <h2>Blog</h2>
87
-    <div class="list-item">
88
-        {% for post in elem.blog_posts %}
39
+        {% if elem.channels|length > 0 %}
40
+        <p class="marg">Anime
41
+        {% for elem in elem.channels %}
89 42
             <a class="content-link"
90
-                href="{{ url_for('main.blog', id=post.id) }}">
91
-            {{ post.name -}}
43
+                href="{{ url_for('main.collective', id=elem.id) }}">
44
+            {{ elem.name -}}
92 45
             </a>
93
-            <h5>{{ post.timestamp }}</h5>
94
-            {{ post.description|safe }}
95 46
             {%- if not loop.last %}, {% endif %}
96 47
         {% endfor %}
97 48
         </p>
49
+        {% endif %}
50
+
51
+        <!-- FIXME format mail adress [AT] -->
52
+        {#<p>{{ elem.email }}</p>#}
53
+
54
+        {% if elem.description %}
55
+        <div class="marg2 description">
56
+            {{ elem.description|safe }}
57
+        </div>
58
+        {% endif %}
59
+    </article>
60
+
61
+    <div class="marg2">
98 62
     </div>
63
+
64
+    {% if elem.podcasts|length > 0 %}
65
+    {% for elem in elem.podcasts %}
66
+    <article class="widget">
67
+        <div class="flex">
68
+            <a class="picto content-link" href="{{ url_for('main.play', id=elem.id) }}">
69
+                {% include 'svg/small_play.svg' -%}
70
+            </a>
71
+            <div class="bloc name">
72
+                <h3><a class="content-link" href="{{ url_for('main.podcast', id=elem.id) }}">{{ elem.name }}</a></h3>
73
+            </div>
74
+        </div>
75
+        <span class="license">{{ elem.timestamp|format_date }}</span>
76
+    </article>
77
+    {% endfor %}
78
+    {% endif %}
99 79
 </section>
100
-{% endif %}

+ 27
- 23
app/templates/main_pages/contributors.html View File

@@ -1,32 +1,36 @@
1
-<section id="left-panel">
2
-<h2>Contributeurs</h2>
3
-{{ contributors|length }}
4
-{% for contributor in contributors %}
5
-    <article class="list-elem">
1
+<section class="solo">
2
+    <div class="title">
3
+        {% include 'svg/title_contributors.svg' %}
4
+    </div>
5
+
6
+{% for elem in contributors %}
7
+    <article class="widget">
6 8
         <p>
7 9
             <a class="content-link"
8
-               href="{{ url_for('main.contributor', id=contributor.id) }}">
9
-            {{ contributor.name }}</a>
10
+               href="{{ url_for('main.contributor', id=elem.id) }}">
11
+            {{ elem.name }}</a>
10 12
             =>
11
-            <a href="{{ contributor.website }}">{{ contributor.website }}</a>
13
+            <a class="pabo" href="{{ elem.website }}">{{ elem.website }}</a>
12 14
         </p>
13
-        <p>------>{{ contributor.status }}</p>
15
+        <p class="marg">------> {{ elem.status }}</p>
14 16
     </article>
15 17
 {% endfor %}
16 18
 </section>
17 19
 
18
-<section id="right-panel">
19
-<h2>Collectifs</h2>
20
-{% for collective in collectives %}
21
-<article class="list-elem">
22
-    <p>
23
-        <a class="content-link"
24
-           href="{{ url_for('main.collective', id=collective.id) }}">
25
-        {{ collective.name }}</a>
26
-        =>
27
-        <a href="{{ collective.website }}">{{ collective.website }}</a>
28
-    </p>
29
-    <p>------>{{ collective.status }}</p>
30
-</article>
31
-{% endfor %}
20
+<section class="solo">
21
+    <div class="title">
22
+        {% include 'svg/title_collectives.svg' %}
23
+    </div>
24
+    {% for elem in collectives %}
25
+        <article class="widget">
26
+            <p>
27
+                <a class="content-link"
28
+                   href="{{ url_for('main.collective', id=elem.id) }}">
29
+                {{ elem.name }}</a>
30
+                =>
31
+                <a class="pabo" href="{{ elem.website }}">{{ elem.website }}</a>
32
+            </p>
33
+            <p class="marg">------> {{ elem.status }}</p>
34
+        </article>
35
+    {% endfor %}
32 36
 </section>

+ 21
- 0
app/templates/svg/title_collective.svg View File

@@ -0,0 +1,21 @@
1
+<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 155.4 24.6">
2
+    <g class="line aux-width">
3
+		<g class="black">
4
+			<polygon points="22.8,12.3 22.8,8.7 19.2,8.7 15.6,12.3 15.6,15.9 19.2,15.9"/>
5
+			<polyline points="12.3,8.7 8.7,8.7 5.1,12.3 5.1,15.9 8.7,15.9"/>
6
+			<polyline points="60,8.7 56.4,8.7 52.801,12.3 52.801,15.9 56.4,15.9"/>
7
+			<line x1="81.9" y1="12.3" x2="85.5" y2="12.3"/>
8
+			<polyline points="78.301,15.9 81.9,12.3 81.9,8.7 89.1,1.5"/>
9
+			<polyline points="33.3,1.5 33.3,5.1 29.7,8.7 29.7,12.3 26.1,15.9"/>
10
+			<polyline points="40.2,1.5 40.2,5.1 36.6,8.7 36.6,12.3 33,15.9"/>
11
+			<line x1="68.1" y1="5.1" x2="71.701" y2="5.1"/>
12
+			<polyline points="60.9,15.9 64.5,12.3 64.5,8.7 68.1,5.1 68.1,1.5"/>
13
+			<polyline points="41.1,12.3 48.3,12.3 48.3,8.7 44.7,8.7 41.1,12.3 41.1,15.9"/>
14
+			<polyline points="75,8.7 75,12.3 71.4,15.9"/>
15
+		</g>
16
+        <circle class="circle" cx="78.6" cy="1.5" r="1.5"/>
17
+        <line class="main-color" x1="1.5" y1="20.1" x2="87.6" y2="20.1"/>
18
+
19
+
20
+	</g>
21
+</svg>

+ 22
- 0
app/templates/svg/title_collectives.svg View File

@@ -0,0 +1,22 @@
1
+<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 155.4 24.6">
2
+    <g class="line aux-width">
3
+		<g class="black">
4
+			<polyline points="88.801,15.9 92.4,15.9 92.4,12.3 96,8.7 99.6,8.7"/>
5
+			<polygon points="22.8,12.3 22.8,8.7 19.2,8.7 15.6,12.3 15.6,15.9 19.2,15.9"/>
6
+			<polyline points="12.3,8.7 8.7,8.7 5.1,12.3 5.1,15.9 8.7,15.9"/>
7
+			<polyline points="60,8.7 56.4,8.7 52.801,12.3 52.801,15.9 56.4,15.9"/>
8
+			<line x1="81.9" y1="12.3" x2="85.5" y2="12.3"/>
9
+			<polyline points="78.301,15.9 81.9,12.3 81.9,8.7 89.1,1.5"/>
10
+			<polyline points="33.3,1.5 33.3,5.1 29.7,8.7 29.7,12.3 26.1,15.9"/>
11
+			<polyline points="40.2,1.5 40.2,5.1 36.6,8.7 36.6,12.3 33,15.9"/>
12
+			<line x1="68.1" y1="5.1" x2="71.701" y2="5.1"/>
13
+			<polyline points="60.9,15.9 64.5,12.3 64.5,8.7 68.1,5.1 68.1,1.5"/>
14
+			<polyline points="41.1,12.3 48.3,12.3 48.3,8.7 44.7,8.7 41.1,12.3 41.1,15.9"/>
15
+			<polyline points="75,8.7 75,12.3 71.4,15.9"/>
16
+		</g>
17
+        <circle class="circle" cx="78.6" cy="1.5" r="1.5"/>
18
+        <line class="main-color" x1="1.5" y1="20.1" x2="99.6" y2="20.1"/>
19
+
20
+
21
+	</g>
22
+</svg>

+ 23
- 0
app/templates/svg/title_contributor.svg View File

@@ -0,0 +1,23 @@
1
+<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 155.4 24.6">
2
+    <g class="line aux-width">
3
+		<g class="black">
4
+			<line x1="102.9" y1="5.1" x2="106.5" y2="5.1"/>
5
+			<polyline points="95.701,15.9 99.3,12.299 99.3,8.7 102.9,5.1 102.9,1.5"/>
6
+			<line x1="47.4" y1="5.1" x2="51" y2="5.1"/>
7
+			<polyline points="40.2,15.9 43.8,12.299 43.8,8.7 47.4,5.1 47.4,1.5"/>
8
+			<polyline points="122.1,8.7 118.5,12.299 122.1,15.9 125.701,15.9 125.701,12.299 129.3,8.7"/>
9
+			<polyline points="87,8.7 83.4,12.299 87,15.9 90.6,15.9 90.6,12.299 94.201,8.7"/>
10
+			<polygon points="22.8,12.299 22.8,8.7 19.2,8.7 15.6,12.299 15.6,15.9 19.2,15.9"/>
11
+			<polyline points="12.3,8.7 8.7,8.7 5.1,12.299 5.1,15.9 8.7,15.9"/>
12
+			<polyline points="106.8,12.299 114,12.299 114,8.7 110.4,8.7 106.8,12.299 106.8,15.9"/>
13
+			<circle class="circle" cx="68.4" cy="1.5" r="1.5"/>
14
+			<polyline points="64.8,8.7 64.8,12.299 61.2,15.9"/>
15
+			<polyline points="26.1,15.9 29.7,12.299 29.7,8.7 33.3,8.7 36.9,12.299 33.3,15.9"/>
16
+			<polyline points="132.6,15.9 132.6,12.299 136.2,8.7 139.8,12.299"/>
17
+			<polyline points="50.7,15.9 50.7,12.299 54.3,8.7 57.9,12.299"/>
18
+			<polyline points="71.7,8.7 75.3,8.7 78.9,12.299 75.3,15.9 68.1,15.9"/>
19
+			<polyline points="68.1,15.9 71.7,12.299 71.7,8.7 78.9,1.5"/>
20
+		</g>
21
+		<line class="main-color" x1="1.5" y1="20.1" x2="153.9" y2="20.1"/>
22
+	</g>
23
+</svg>

Loading…
Cancel
Save