Browse Source

.box-jaune design cohérent avec le menu

Guillaume Joffre 2 years ago
parent
commit
a6c40157ad
10 changed files with 135 additions and 52 deletions
  1. 7
    2
      assets/css/menu.css
  2. 2
    2
      assets/css/page/coms.css
  3. 81
    16
      assets/css/template.css
  4. 1
    1
      blouse.php
  5. 9
    9
      clubs.php
  6. 10
    6
      coms.php
  7. 9
    7
      index.php
  8. 10
    7
      info.php
  9. 2
    2
      structure/menu.php
  10. 4
    0
      structure/template.php

+ 7
- 2
assets/css/menu.css View File

@@ -1,6 +1,6 @@
1 1
 .menu {
2 2
 	position: fixed;
3
-	bottom: 0;
3
+	bottom: -2px;
4 4
 	left: 0;
5 5
 	width: 100%;
6 6
 	height: auto;
@@ -12,9 +12,10 @@
12 12
 
13 13
 .tuyau {
14 14
 	position: fixed;
15
-	bottom: 0;
15
+	bottom: -2px;
16 16
 	right: 3vw;
17 17
 	width: 8%;
18
+	min-width: 6.3vmax;
18 19
 	height: auto;
19 20
 	z-index: 2;
20 21
 
@@ -26,6 +27,10 @@
26 27
 	transform-origin: center;
27 28
 }
28 29
 
30
+.menu-link.menu-bottom-line use {
31
+	transform-origin: bottom;
32
+}
33
+
29 34
 .menu-link text {
30 35
 	transition: transform 50ms;
31 36
 }

+ 2
- 2
assets/css/page/coms.css View File

@@ -3,8 +3,8 @@ body {
3 3
 	background-color: white;
4 4
 }
5 5
 
6
-#boxjaune h1 {
7
-	margin: 0;
6
+.box-jaune h1 {
7
+	margin: 0 0 0.5em;
8 8
 	padding: 0;
9 9
 }
10 10
 

+ 81
- 16
assets/css/template.css View File

@@ -48,36 +48,101 @@ a.linkmail:hover {
48 48
 	-webkit-text-stroke: 1px white;
49 49
 }
50 50
 
51
-#boxjaune {
51
+/** START BOX JAUNE **/
52
+
53
+.box-jaune {
52 54
 	display: inline-block;
53
-	background-color: #FFDC00;
55
+	position: relative;
54 56
 	padding: 10px;
55
-	box-shadow: 10px 10px 15px 5px rgba(0,0,0,0.61);
56
-	border: 3px solid black;
57 57
 	margin: 40px 10vw 0;
58
-	font-size: 1.5rem;
58
+	font-size: 2.5px;
59
+
60
+	background-color: #efd21f;
61
+	border-top: solid 2em #fbf322;
62
+	border-left: solid 2em #a29013;
63
+	border-right: solid 2em #f7e31c;
64
+	border-bottom: solid 2em #73590b;
65
+
66
+	clip-path: polygon(
67
+			0 2.00em,1em 1em,2.00em 0,
68
+			calc(100% - 2.00em) 0,calc(100% - 1em) 1em,100% 2.00em,
69
+			100% calc(100% - 2.00em),calc(100% - 1em) calc(100% - 1em),calc(100% - 2.00em) 100%,
70
+			2.00em 100%,1em calc(100% - 1em),0 calc(100% - 2.00em)
71
+	);
72
+}
73
+
74
+.corners-top::before {
75
+	top: -2em;
76
+	left: -2em;
77
+	background-color: #bfa018;
59 78
 }
60 79
 
61
-#title_in_box {
62
-	padding: 25px;
80
+.corners-top::after {
81
+	top: -2em;
82
+	right: -2em;
83
+	background-color: #fbfa87;
84
+}
85
+
86
+.corners-bottom::before {
87
+	bottom: -1.9em;
88
+	left: -2em;
89
+	background-color: #44350d;
90
+}
91
+
92
+.corners-bottom::after {
93
+	bottom: -1.9em;
94
+	right: -2em;
95
+	background-color: #967912;
96
+}
97
+
98
+.corners::before,
99
+.corners:after {
100
+	content:"";
101
+	position: absolute;
102
+	display:block;
103
+	width: 2em;
104
+	height: 2em;
105
+	z-index: 2;
106
+}
107
+
108
+.box-jaune .title {
109
+	padding: 3vw 4.5vw;
63 110
 	color: black;
111
+	font-size: 1.5rem;
112
+}
113
+
114
+.circles-top {
115
+	top: 3em;
64 116
 }
65 117
 
66
-.circle {
67
-	width: 10px;
68
-	height: 10px;
69
-    border-radius: 5px;
70
-    background: black;
118
+.circles-bottom {
119
+	bottom: 3em;
71 120
 }
72 121
 
73
-#circle_l {
74
-    float: right;
122
+.circles::after,
123
+.circles::before {
124
+	content: "";
125
+	position: absolute;
126
+	display: block;
127
+	width: 2em;
128
+	height: 2em;
129
+	top: inherit;
130
+	bottom: inherit;
131
+	border-radius: 100%;
132
+	background: black;
133
+	opacity: .9;
75 134
 }
76 135
 
77
-#circle_r {
78
-	float: left;
136
+.circles::before {
137
+	left: 3em;
79 138
 }
80 139
 
140
+.circles::after {
141
+	right: 3em;
142
+}
143
+
144
+/** END BOX JAUNE **/
145
+
81 146
 .menu_space_bottom {
82 147
   position: sticky;
83 148
 	width: 100%;

+ 1
- 1
blouse.php View File

@@ -44,7 +44,7 @@ ob_start(); // Start reading html
44 44
             à-dire, <strong>vert flamboyant si tu es <strong class="score-boo">BOOMIFLORE</strong> et violet intense pour <strong class="score-pek">PEKSUREAU</strong></strong> .</li>
45 45
         <li>Décore ta blouse selon le thème des <strong>INSA Games</strong> et de ton équipe.</li>
46 46
     </ul>
47
-    <b><strong>Mais attention ! Tu ne peux pas faire n’importe quoi, il y a des règles à respecter si tu
47
+    <p><strong>Mais attention ! Tu ne peux pas faire n’importe quoi, il y a des règles à respecter si tu
48 48
     ne veux pas rester coincé à l’aéroport !</strong></p>
49 49
 
50 50
 

+ 9
- 9
clubs.php View File

@@ -3,15 +3,15 @@ ob_start(); // Start reading html
3 3
 ?>
4 4
 <main>
5 5
 	<section>
6
-		<div id="boxjaune">
7
-	        <div id="circle_l" class="circle"></div>
8
-	        <div id="circle_r" class="circle"></div>
9
-	        <div id="title_in_box">
10
-	        	<a href="https://amicale-insat.fr/clubs" target="_NEWWWWW" class="link_in_yellow_box">amicale-insat.fr/clubs</a>
11
-	        </div>
12
-	        <div id="circle_l" class="circle"></div>
13
-	        <div id="circle_r" class="circle"></div>
14
-	    </div>
6
+        <div class="box-jaune">
7
+            <span class="corners corners-top"></span>
8
+            <span class="corners corners-bottom"></span>
9
+
10
+            <div class="title"><a href="https://amicale-insat.fr/clubs" target="_NEWWWWW" class="link_in_yellow_box">amicale-insat.fr/clubs</a></div>
11
+
12
+            <span class="circles circles-top"></span>
13
+            <span class="circles circles-bottom"></span>
14
+        </div>
15 15
 	</section>
16 16
 	<section>
17 17
 		<iframe src="https://amicale-insat.fr/clubs" class="iframe_amicale" allow="fullscreen" scrolling="auto"></iframe>

+ 10
- 6
coms.php View File

@@ -2,13 +2,17 @@
2 2
 ob_start(); // Start reading html
3 3
 ?>
4 4
 <main>
5
-	<div id="boxjaune">
6
-        <div id="circle_l" class="circle"></div>
7
-        <div id="circle_r" class="circle"></div>
8
-        <div id="title_in_box"><h1>Les Com's</h1><br>La liste des responsables (les meilleurs, objectivement ^^)</div>
9
-        <div id="circle_l" class="circle"></div>
10
-        <div id="circle_r" class="circle"></div>
5
+
6
+    <div class="box-jaune">
7
+        <span class="corners corners-top"></span>
8
+        <span class="corners corners-bottom"></span>
9
+
10
+        <div class="title"><h1>Les Com's</h1>La liste des responsables (les meilleurs, objectivement ^^)</div>
11
+
12
+        <span class="circles circles-top"></span>
13
+        <span class="circles circles-bottom"></span>
11 14
     </div>
15
+
12 16
     <div id="main_content">
13 17
 		<section>
14 18
 			<div class='title_com'>Le Bureau</div>

+ 9
- 7
index.php View File

@@ -3,14 +3,16 @@ ob_start(); // Start reading html
3 3
 ?>
4 4
 <main>
5 5
 
6
-    <div id="boxjaune">
7
-        <div id="circle_l" class="circle"></div>
8
-        <div id="circle_r" class="circle"></div>
9
-        <div id="title_in_box">Semaine d'Accueil INSA Toulouse 2022</div>
10
-        <div id="circle_l" class="circle"></div>
11
-        <div id="circle_r" class="circle"></div>
6
+    <div class="box-jaune">
7
+        <span class="corners corners-top"></span>
8
+        <span class="corners corners-bottom"></span>
9
+
10
+        <div class="title">Semaine d'Accueil INSA Toulouse 2022</div>
11
+
12
+        <span class="circles circles-top"></span>
13
+        <span class="circles circles-bottom"></span>
12 14
     </div>
13
-    
15
+
14 16
     <div id="msg_acc">
15 17
         <p>
16 18
             Bienvenue à l'INSA Toulouse jeune aventurier, pour ta magnifique semaine d'accueil.

+ 10
- 7
info.php View File

@@ -2,13 +2,16 @@
2 2
 ob_start(); // Start reading html
3 3
 ?>
4 4
 <main>
5
-	<div id="boxjaune">
6
-		<div id="circle_l" class="circle"></div>
7
-		<div id="circle_r" class="circle"></div>
8
-		<div id="title_in_box">Informations (contact, crédits, vie privée)</div>
9
-		<div id="circle_l" class="circle"></div>
10
-		<div id="circle_r" class="circle"></div>
11
-	</div>
5
+
6
+    <div class="box-jaune">
7
+        <span class="corners corners-top"></span>
8
+        <span class="corners corners-bottom"></span>
9
+
10
+        <div class="title">Informations (contact, crédits, vie privée)</div>
11
+
12
+        <span class="circles circles-top"></span>
13
+        <span class="circles circles-bottom"></span>
14
+    </div>
12 15
 
13 16
 	<div id="main_content">
14 17
 		<section>

+ 2
- 2
structure/menu.php View File

@@ -6,7 +6,7 @@ if(!isset($relativepath)) {
6 6
 
7 7
 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
8 8
      class="tuyau" id="parent"
9
-     viewBox="0 0 44 78">
9
+     viewBox="0 0 44 76">
10 10
 
11 11
     <!-- espace de définition -->
12 12
     <defs>
@@ -147,7 +147,7 @@ if(!isset($relativepath)) {
147 147
     $lien_y_1 = ["", "photos.php","lydia.php", "clubs.php", "prevs.php", "map_com_ville.php", "", "", "downloads.php", "coms.php", "info.php"];
148 148
     for($i = 0; $i <= 10; $i++) {
149 149
         echo
150
-        '<a href="'.$lien_y_1[$i].'" class="menu-link">
150
+        '<a href="'.$lien_y_1[$i].'" class="menu-link menu-bottom-line">
151 151
             <use xlink:href="#Brick" width="47" height="17" x="'.$co_y_1[$i].'" y="17.85"/>
152 152
             <svg id="btn10" width="47" height="17" x="'.$co_y_1[$i].'" y="17.85">
153 153
                 <text x="50%" y="50%">

+ 4
- 0
structure/template.php View File

@@ -61,6 +61,10 @@ $pagename = $infopage[4];      // nom de la page exact servant à appeler le css
61 61
         </footer>
62 62
 
63 63
          <!-- TODO un espace qui permet de couvrir la surface sous le menu, pour l'instant on utilise la même image pour pas oublier que l'espace doit être de la même taille que le menu mais faudra changer ça -->
64
+        <div style="height: 6.8vw">
65
+
66
+        </div>
67
+
64 68
     </body>
65 69
 </html>
66 70
 <?php

Loading…
Cancel
Save