Ver código fonte

le ccs jolie et correction du html pour conformité au norme.

PCYoshi 9 anos atrás
pai
commit
4e4422b238
7 arquivos alterados com 133 adições e 101 exclusões
  1. 21
    3
      web/css/game.css
  2. 36
    26
      web/css/main.css
  3. 26
    24
      web/index.htm
  4. 8
    8
      web/palmares.htm
  5. 25
    23
      web/play.htm
  6. 8
    8
      web/rules.htm
  7. 9
    9
      web/solo.htm

+ 21
- 3
web/css/game.css Ver arquivo

@@ -1,4 +1,22 @@
1
-section#navbar li.current:last-child #score {
1
+@keyframes timebar
2
+{
3
+	0%{width: 100%;background-color: #57cc6b;}
4
+	30%{background-color: #57cc6b;}
5
+	40%{background-color: #e3a55c;}
6
+	60%{background-color: #e3a55c;}
7
+	70%{background-color: #cc5757;}
8
+	100%{width: 0;background-color: #cc5757;}
9
+}
10
+
11
+div
12
+{
13
+	height: 20px;
14
+	display: block;
15
+	margin: auto;
16
+	animation: timebar 5s infinite linear;
17
+}
18
+
19
+#navbar li.current:last-child #score {
2 20
   display:inline;
3 21
   padding-top:17px;
4 22
   padding-left:30px;
@@ -7,7 +25,7 @@ section#navbar li.current:last-child #score {
7 25
   background: #ffab19;
8 26
 }
9 27
 
10
-section#game input[type="submit"]#play {
28
+#game input[type="submit"]#play {
11 29
   border:none;
12 30
   background-color:#09b22b;
13 31
   color:white;
@@ -16,7 +34,7 @@ section#game input[type="submit"]#play {
16 34
   cursor:pointer;
17 35
 }
18 36
 
19
-section#game {
37
+#game {
20 38
   text-align:center;
21 39
 }
22 40
 

+ 36
- 26
web/css/main.css Ver arquivo

@@ -19,7 +19,7 @@ a:active{
19 19
   background:transparent
20 20
 }
21 21
 
22
-section#navbar a:hover {
22
+#navbar a:hover {
23 23
   text-decoration:none;
24 24
 }
25 25
 
@@ -33,7 +33,7 @@ header {
33 33
   padding-bottom: 10px;
34 34
 }
35 35
 
36
-section#responsive-navbar {
36
+#responsive-navbar {
37 37
   display: none;
38 38
   margin-top:0px;
39 39
   color: white;
@@ -41,7 +41,7 @@ section#responsive-navbar {
41 41
   font-size: 25px;
42 42
 }
43 43
 
44
-section#responsive-navbar ul {
44
+#responsive-navbar ul {
45 45
   margin-top:0px;
46 46
   list-style-type:none;
47 47
   padding-left:0px;
@@ -49,7 +49,7 @@ section#responsive-navbar ul {
49 49
   margin-bottom:0px;
50 50
 }
51 51
 
52
-section#responsive-navbar ul li {
52
+#responsive-navbar ul li {
53 53
   height: 2em;
54 54
   line-height: 2em;
55 55
   vertical-align: middle;
@@ -57,28 +57,28 @@ section#responsive-navbar ul li {
57 57
   width:100%;
58 58
 }
59 59
 
60
-section#responsive-navbar ul li a {
60
+#responsive-navbar ul li a {
61 61
   display:block;
62 62
   width:100%;
63 63
 }
64 64
 
65
-section#responsive-navbar ul li:last-child {
65
+#responsive-navbar ul li:last-child {
66 66
   background: #ff9619;
67 67
 }
68 68
 
69
-section#responsive-navbar ul li:last-child.current {
69
+#responsive-navbar ul li:last-child.current {
70 70
   background: #ffab19;
71 71
 }
72 72
 
73
-section#responsive-navbar ul li:last-child:hover {
73
+#responsive-navbar ul li:last-child:hover {
74 74
   background: #ffab19;
75 75
 }
76 76
 
77
-section#responsive-navbar ul li:hover, section#responsive-navbar ul li.current {
77
+#responsive-navbar ul li:hover, #responsive-navbar ul li.current {
78 78
   background: #9556f9;
79 79
 }
80 80
 
81
-section#responsive-navbar ul li:first-child, section#responsive-navbar ul li:first-child:hover, section#responsive-navbar ul li:first-child:active {
81
+#responsive-navbar ul li:first-child, #responsive-navbar ul li:first-child:hover, #responsive-navbar ul li:first-child:active {
82 82
   background-color: #7e19ff;
83 83
   background-image: url('../assets/burger-menu.png');
84 84
   background-size: 25px;
@@ -86,24 +86,24 @@ section#responsive-navbar ul li:first-child, section#responsive-navbar ul li:fir
86 86
   background-position: 10px, 50%;
87 87
 }
88 88
 
89
-section#navbar {
89
+#navbar {
90 90
   color: white;
91 91
   background-color: #7e19ff;
92 92
   height: 70px;
93 93
   font-size: 25px;
94 94
 }
95 95
 
96
-section#navbar ul {
96
+#navbar ul {
97 97
   padding-top: 35px;
98 98
   display: inline;
99 99
   vertical-align: middle;
100 100
 }
101 101
 
102
-section#navbar li:first-child a {
102
+#navbar li:first-child a {
103 103
   margin-left:20px;
104 104
 }
105 105
 
106
-section#navbar a {
106
+#navbar a {
107 107
   padding-top:17px;
108 108
   padding-left:30px;
109 109
   padding-right:30px;
@@ -111,35 +111,35 @@ section#navbar a {
111 111
   margin-right: 10px;
112 112
 }
113 113
 
114
-section#navbar li {
114
+#navbar li {
115 115
   display: block;
116 116
   float:left;
117 117
   padding-top:17px;
118 118
   height: 53px;
119 119
 }
120 120
 
121
-section#navbar li:hover a, section#navbar li.current a {
121
+#navbar li:hover a, #navbar li.current a {
122 122
   background: #9556f9;
123 123
 }
124 124
 
125
-section#navbar li:last-child a {
125
+#navbar li:last-child a {
126 126
   margin-right:0px;
127 127
   padding-right:70px;
128 128
   padding-left:70px;
129 129
 }
130 130
 
131
-section#navbar li:last-child {
131
+#navbar li:last-child {
132 132
   display: block;
133 133
   float: right;
134 134
   text-align:right;
135 135
   background: #ff9619;
136 136
 }
137 137
 
138
-section#navbar li:last-child:hover a, section#navbar li.current:last-child a {
138
+#navbar li:last-child:hover a, #navbar li.current:last-child a {
139 139
   background: #ffab19;
140 140
 }
141 141
 
142
-section#page {
142
+#page {
143 143
   width: 60%;
144 144
   margin: auto;
145 145
 }
@@ -154,10 +154,20 @@ h2 {
154 154
   font-size: 200%;
155 155
 }
156 156
 
157
-section#page p {
157
+#page p {
158 158
   text-indent: 30px;
159 159
 }
160 160
 
161
+#button_container
162
+{
163
+	text-align: center;
164
+}
165
+
166
+.button
167
+{
168
+	display: inline-block;
169
+}
170
+
161 171
 .button a {
162 172
   display:block;
163 173
   background: #09b22b;
@@ -180,7 +190,7 @@ article#jouer {
180 190
   margin:auto;
181 191
 }
182 192
 
183
-section#page ol {
193
+#page ol {
184 194
   text-align:center;
185 195
   font-size: 120%;
186 196
 }
@@ -189,19 +199,19 @@ section#page ol {
189 199
   header {
190 200
     background-size: 68%;
191 201
   }
192
-  section#responsive-navbar {
202
+  #responsive-navbar {
193 203
     display: block;
194 204
   }
195
-  section#navbar {
205
+  #navbar {
196 206
     display: none;
197 207
   }
198 208
 }
199 209
 
200 210
 @media all and (min-width: 800px) {
201
-  section#responsive-navbar {
211
+  #responsive-navbar {
202 212
     display: none;
203 213
   }
204
-  section#navbar {
214
+  #navbar {
205 215
     display: block;
206 216
   }
207 217
 }

+ 26
- 24
web/index.htm Ver arquivo

@@ -4,23 +4,23 @@
4 4
     <meta charset="utf-8">
5 5
     <title>Burger Quizz - Accueil</title>
6 6
     <link rel="stylesheet" href="css/main.css">
7
-    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
7
+    <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
8 8
     <script src="js/jquery-2.1.4.min.js"></script>
9 9
     <script src="js/responsive.js"></script>
10
-    <meta name=viewport content="width=device-width, initial-scale=1"/>
10
+    <meta name="viewport" content="width=device-width, initial-scale=1"/>
11 11
   </head>
12 12
   <body>
13 13
     <header>
14 14
     </header>
15
-    <section id="navbar">
15
+    <div id="navbar">
16 16
       <ul>
17 17
         <li class="current"><a href="index.htm">Accueil</a></li>
18 18
         <li><a href="rules.htm">Règles</a></li>
19 19
         <li><a href="palmares.htm">Meilleurs scores</a></li>
20 20
         <li><a href="play.htm">Jouer</a></li>
21 21
       </ul>
22
-    </section>
23
-    <section id="responsive-navbar">
22
+    </div>
23
+    <div id="responsive-navbar">
24 24
       <ul>
25 25
         <li class="name"><a href="#">Menu</a></li>
26 26
         <li class="current"><a href="index.htm">Accueil</a></li>
@@ -28,8 +28,8 @@
28 28
         <li><a href="palmares.htm">Meilleurs scores</a></li>
29 29
         <li><a href="play.htm">Jouer</a></li>
30 30
       </ul>
31
-    </section>
32
-    <section id="page">
31
+    </div>
32
+    <div id="page">
33 33
       <article>
34 34
         <h2>Accueil</h2>
35 35
         <p>Créé dans le cadre du projet de fin d'année de la promo 2018 de CIR2 de l'ISEN Brest/Rennes, le Burger Quizz est une adaptation numérique du jeu télévisé éponyme, plus précisément d'une épreuve spécifique de ce jeu : le "Sel ou Poivre".</p>
@@ -37,23 +37,25 @@
37 37
       </article>
38 38
       <article id="jouer">
39 39
         <h2>Jouer</h2>
40
-        <div class="button">
41
-          <a href="solo.htm">
42
-            <div class="firstword">
43
-              Solo
44
-            </div>
45
-            1 joueur
46
-          </a>
47
-        </div>
48
-        <div class="button">
49
-          <a href="multi.php">
50
-            <div class="firstword">
51
-              Multi
52
-            </div>
53
-            2 joueurs
54
-          </a>
55
-        </div>
40
+        <div id="button_container">
41
+			<div class="button">
42
+			  <a href="solo.htm">
43
+				<div class="firstword">
44
+				  Solo
45
+				</div>
46
+				1 joueur
47
+			  </a>
48
+			</div>
49
+			<div class="button">
50
+			  <a href="multi.php">
51
+				<div class="firstword">
52
+				  Multi
53
+				</div>
54
+				2 joueurs
55
+			  </a>
56
+			</div>
57
+     	</div>
56 58
       </article>
57
-    </section>
59
+    </div>
58 60
   </body>
59 61
 </html>

+ 8
- 8
web/palmares.htm Ver arquivo

@@ -4,23 +4,23 @@
4 4
     <meta charset="utf-8">
5 5
     <title>Burger Quizz - Palmares</title>
6 6
     <link rel="stylesheet" href="css/main.css">
7
-    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
7
+    <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
8 8
     <script src="js/jquery-2.1.4.min.js"></script>
9 9
     <script src="js/responsive.js"></script>
10
-    <meta name=viewport content="width=device-width, initial-scale=1"/>
10
+    <meta name="viewport" content="width=device-width, initial-scale=1"/>
11 11
   </head>
12 12
   <body>
13 13
     <header>
14 14
     </header>
15
-    <section id="navbar">
15
+    <div id="navbar">
16 16
       <ul>
17 17
         <li><a href="index.htm">Accueil</a></li>
18 18
         <li><a href="rules.htm">Règles</a></li>
19 19
         <li class="current"><a href="palmares.htm">Meilleurs scores</a></li>
20 20
         <li><a href="play.htm">Jouer</a></li>
21 21
       </ul>
22
-    </section>
23
-    <section id="responsive-navbar">
22
+    </div>
23
+    <div id="responsive-navbar">
24 24
       <ul>
25 25
         <li class="name"><a href="#">Menu</a></li>
26 26
         <li><a href="index.htm">Accueil</a></li>
@@ -28,13 +28,13 @@
28 28
         <li class="current"><a href="palmares.htm">Meilleurs scores</a></li>
29 29
         <li><a href="play.htm">Jouer</a></li>
30 30
       </ul>
31
-    </section>
32
-    <section id="page">
31
+    </div>
32
+    <div id="page">
33 33
       <article>
34 34
         <h2>Meilleurs scores</h2>
35 35
         <ol></ol>
36 36
       </article>
37
-    </section>
37
+    </div>
38 38
 
39 39
     <script type="text/javascript">
40 40
       $.get("./api/?page=palmares", function(data) {

+ 25
- 23
web/play.htm Ver arquivo

@@ -4,23 +4,23 @@
4 4
     <meta charset="utf-8">
5 5
     <title>Burger Quizz - Accueil</title>
6 6
     <link rel="stylesheet" href="css/main.css">
7
-    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
7
+    <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
8 8
     <script src="js/jquery-2.1.4.min.js"></script>
9 9
     <script src="js/responsive.js"></script>
10
-    <meta name=viewport content="width=device-width, initial-scale=1"/>
10
+    <meta name="viewport" content="width=device-width, initial-scale=1"/>
11 11
   </head>
12 12
   <body>
13 13
     <header>
14 14
     </header>
15
-    <section id="navbar">
15
+    <div id="navbar">
16 16
       <ul>
17 17
         <li><a href="index.htm">Accueil</a></li>
18 18
         <li><a href="rules.htm">Règles</a></li>
19 19
         <li><a href="palmares.htm">Meilleurs scores</a></li>
20 20
         <li class="current"><a href="play.htm">Jouer</a></li>
21 21
       </ul>
22
-    </section>
23
-    <section id="responsive-navbar">
22
+    </div>
23
+    <div id="responsive-navbar">
24 24
       <ul>
25 25
         <li class="name"><a href="#">Menu</a></li>
26 26
         <li><a href="index.htm">Accueil</a></li>
@@ -28,27 +28,29 @@
28 28
         <li><a href="palmares.htm">Meilleurs scores</a></li>
29 29
         <li class="current"><a href="play.htm">Jouer</a></li>
30 30
       </ul>
31
-    </section>
32
-    <section id="page">
31
+    </div>
32
+    <div id="page">
33 33
       <article id="jouer">
34 34
         <h1>Jouer</h1>
35
-        <div class="button">
36
-          <a href="solo.htm">
37
-            <div class="firstword">
38
-              Solo
39
-            </div>
40
-            1 joueur
41
-          </a>
42
-        </div>
43
-        <div class="button">
44
-          <a href="multi.php">
45
-            <div class="firstword">
46
-              Multi
47
-            </div>
48
-            2 joueurs
49
-          </a>
35
+        <div id="button_container">
36
+			<div class="button">
37
+			  <a href="solo.htm">
38
+				<div class="firstword">
39
+				  Solo
40
+				</div>
41
+				1 joueur
42
+			  </a>
43
+			</div>
44
+			<div class="button">
45
+			  <a href="multi.php">
46
+				<div class="firstword">
47
+				  Multi
48
+				</div>
49
+				2 joueurs
50
+			  </a>
51
+			</div>
50 52
         </div>
51 53
       </article>
52
-    </section>
54
+    </div>
53 55
   </body>
54 56
 </html>

+ 8
- 8
web/rules.htm Ver arquivo

@@ -4,23 +4,23 @@
4 4
     <meta charset="utf-8">
5 5
     <title>Burger Quizz - Règles</title>
6 6
     <link rel="stylesheet" href="css/main.css">
7
-    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
7
+    <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
8 8
     <script src="js/jquery-2.1.4.min.js"></script>
9 9
     <script src="js/responsive.js"></script>
10
-    <meta name=viewport content="width=device-width, initial-scale=1"/>
10
+    <meta name="viewport" content="width=device-width, initial-scale=1"/>
11 11
   </head>
12 12
   <body>
13 13
     <header>
14 14
     </header>
15
-    <section id="navbar">
15
+    <div id="navbar">
16 16
       <ul>
17 17
         <li><a href="index.htm">Accueil</a></li>
18 18
         <li class="current"><a href="rules.htm">Règles</a></li>
19 19
         <li><a href="palmares.htm">Meilleurs scores</a></li>
20 20
         <li><a href="play.htm">Jouer</a></li>
21 21
       </ul>
22
-    </section>
23
-    <section id="responsive-navbar">
22
+    </div>
23
+    <div id="responsive-navbar">
24 24
       <ul>
25 25
         <li class="name"><a href="#">Menu</a></li>
26 26
         <li><a href="index.htm">Accueil</a></li>
@@ -28,14 +28,14 @@
28 28
         <li><a href="palmares.htm">Meilleurs scores</a></li>
29 29
         <li><a href="play.htm">Jouer</a></li>
30 30
       </ul>
31
-    </section>
32
-    <section id="page">
31
+    </div>
32
+    <div id="page">
33 33
       <article>
34 34
         <h2>Règles</h2>
35 35
         <p>Skevent dleout danvez biz-yod rumm goz gar tabut bazh mil skrijañ, Menez Du dec'h ehan kreisteiz neud tad eil huanadiñ bed lizherenn. Lies gwinegr c'hoar-gaer. Houlenn Menez Mikael anv koumoul, broust brumenn daoust ha. Ret ki lazhañ dianav gwenn hor beg-douar arabat skubañ ken truez tre kar hon leue droug-mor, chom hennezh hag Bro-saoz. Ma fazi geot kein gwechall, rak mil c'hwezhañ e fri hor kae diwar-benn mousc'hoarzhin mat bloaz plijadur hol kant eost noz dre mae nerzh kaeraat, kenwerzh nec'h hir diriaou c'hoar-gaer, a-benn diwar ar maez derc'hel digor pesketaer dir pri start karrezek. Pegement kontañ giz kluchañ n'eus forzh.</p>
36 36
         <p>Hep patatez nav kroc'hen. Hon tre karrez talvoudus. Ruz aozañ e-lec'h mel va Doue mat mall kelenner. Mat eil doñjer chaseour rak koumanant a-hed kloued rev pignat yod bras gwrierez tal prizius, e-mesk kemener c'hoarvezout. Gwerenn saout pleg-mor aet poan dor merc'hed giz sukr mat he gervel poultrenn kontadenn, chaseal ti-hent-houarn aer soudard kêr giz gwelloc'h dreist-holl kig tremen gouelañ rev huchal nemet war aes re tro-c'houzoug he goulenn jod beuziñ siminal. Aotrou ar muiañ spi gourc'hemenn, beuziñ fiziañs rev tamm-ha-tamm, mignonez ni distreiñ, kasoni adaozañ degouezhout. Stlakañ loa anzav da gentañ, per kegin kontadenn gwiskamant me ki a-us da noz e-lec'h mat a-hed seizhvet spi kerkoulz ha ker kann distreiñ eus distreiñ te enebour kein gouelañ, a-wechoù c'hoar-gaer eñ huanadiñ aes gwerenn liv gwer. Merc'hed pevar-ugent niz kempenn aon sell kluchañ kemener he prizius moereb abardaez, ober goap eured Krouer respont skouer Sun tre du laezh merc'her kêr goz regiñ kae neuze, da ken na penn-araok kalonek bod dienn Mor Breizh den ar re gouel.</p>
37 37
         <p>Leziregezh diskar park dra Krouer, tal pomper miz bale, kibell ler kennebeut mab kaout tog digor tud plijout Baz taol. Kotoñs mab-bihan ober war-dro. Fuzuilh koulz-amzer ki beajour pe ali reiñ kreskiñ eil kardeur ti fresk, logod kav kar leskiñ keniterv. Gwazh hi gar poull patatez. Giz sachañ tachenn-c'hoari, pegen kêr Nedeleg den dale, anv treuziñ ober e venoz kêr echuiñ klevout enebour. Met doñv gavr ruz ober goap. Eus ezhomm sevel eor butuniñ sul hep dre kelc'h talvoudus. Chase mor gwelloc'h e kezeg, pevarzek bleud homañ kempenn azezañ.</p>
38 38
       </article>
39
-    </section>
39
+    </div>
40 40
   </body>
41 41
 </html>

+ 9
- 9
web/solo.htm Ver arquivo

@@ -5,25 +5,25 @@
5 5
     <title>Burger Quizz - Jeu solo</title>
6 6
     <link rel="stylesheet" href="css/game.css">
7 7
     <link rel="stylesheet" href="css/main.css">
8
-    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
9
-    <link href='http://fonts.googleapis.com/css?family=Lato:100,400,300,700' rel='stylesheet' type='text/css'>
8
+    <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
9
+    <link href="http://fonts.googleapis.com/css?family=Lato:100,400,300,700" rel="stylesheet" type="text/css">
10 10
     <script src="js/jquery-2.1.4.min.js"></script>
11 11
     <script src="js/responsive.js"></script>
12 12
     <script src="js/game.js"></script>
13
-    <meta name=viewport content="width=device-width, initial-scale=1"/>
13
+    <meta name="viewport" content="width=device-width, initial-scale=1"/>
14 14
   </head>
15 15
   <body>
16 16
     <header>
17 17
     </header>
18
-    <section id="navbar">
18
+    <div id="navbar">
19 19
       <ul>
20 20
         <li><a href="index.htm">Accueil</a></li>
21 21
         <li><a href="rules.htm">Règles</a></li>
22 22
         <li><a href="palmares.htm">Meilleurs scores</a></li>
23 23
         <li class="current"><a href="play.htm">Jouer</a></li>
24 24
       </ul>
25
-    </section>
26
-    <section id="responsive-navbar">
25
+    </div>
26
+    <div id="responsive-navbar">
27 27
       <ul>
28 28
         <li class="name"><a href="#">Menu</a></li>
29 29
         <li><a href="index.htm">Accueil</a></li>
@@ -31,11 +31,11 @@
31 31
         <li><a href="palmares.htm">Meilleurs scores</a></li>
32 32
         <li class="current"><a href="play.htm">Jouer</a></li>
33 33
       </ul>
34
-    </section>
35
-    <section id="game">
34
+    </div>
35
+    <div id="game">
36 36
       <h2>Jeu solo</h2>
37 37
       <input type="submit" id="play" value="Lancer la partie !" />
38
-    </section>
38
+    </div>
39 39
 
40 40
     <script type="text/javascript">
41 41
       $("#play").on("click", play);