Benoît Hubert vor 7 Jahren
Ursprung
Commit
917540e9f3
4 geänderte Dateien mit 146 neuen und 169 gelöschten Zeilen
  1. 0 21
      LICENSE
  2. 7 0
      css/empty.css
  3. 20 19
      empty.html
  4. 119 129
      index.html

+ 0 - 21
LICENSE

@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Materialize
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

+ 7 - 0
css/empty.css

@@ -0,0 +1,7 @@
+html {
+  height: 100%;
+}
+body {
+  min-height: 100%;
+  padding: 50px;
+}

+ 20 - 19
empty.html

@@ -1,22 +1,23 @@
 <!doctype html>
 <html class="no-js" lang="">
-    <head>
-        <meta charset="utf-8">
-        <meta http-equiv="x-ua-compatible" content="ie=edge">
-        <title></title>
-        <meta name="description" content="">
-        <meta name="viewport" content="width=device-width, initial-scale=1">
-        <style>
-        	html {
-        	  height: 100%;
-        	}
-        	body {
-        	  min-height: 100%;
-        	  background: #eee;
-        	}
-        </style>
-    </head>
-    <body>
- 
-    </body>
+	<head>
+    <meta charset="utf-8">
+    <meta http-equiv="x-ua-compatible" content="ie=edge">
+    <title></title>
+    <meta name="description" content="">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <link rel="stylesheet" href="css/empty.css">
+	</head>
+	<body>
+
+	<!-- CONTENU -->
+
+	<button>Bouton</button>
+
+	<!-- SCRIPTS -->
+		<script>
+		alert("Hello World!");
+		</script>
+
+	</body>
 </html>

+ 119 - 129
index.html

@@ -1,129 +1,119 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
-  <title>Atelier web WCS</title>
-
-  <!-- CSS  -->
-  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
-  <link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
-  <link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
-  <style>
-    html {
-      height: 100%;
-    }
-    body {
-      min-height: 100%;
-      overflow: hidden;
-    }
-    footer {
-      position: absolute;
-      bottom: 0;
-      width: 100%;
-    }
-    .col-1-2 {
-      width: 50%;
-      position: absolute;
-      top: 0;
-      bottom: 0;
-    }
-    .col-1-2:first-child {
-      border-right:1px solid #ddd;
-    }
-    .col-1-2:last-child {
-      left: 50%;
-    }
-  </style>
-
-</head>
-<body>
-    <div class="main">
-      <div class="col-1-2">
-
-        <nav class="light-blue lighten-1" role="navigation">
-          <div class="nav-wrapper container"><a id="logo-container" href="#" class="brand-logo">WCS</a>
-            <ul class="right hide-on-med-and-down">
-              <li><a href="#">Navbar Link</a></li>
-            </ul>
-
-            <ul id="nav-mobile" class="side-nav">
-              <li><a href="#">Navbar Link</a></li>
-            </ul>
-            <a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
-          </div>
-        </nav>
-        <div class="section no-pad-bot" id="index-banner">
-          <div class="container">
-            <h4 class="header center orange-text">J'apprends le JavaScript !</h4>
-          </div>
-        </div>
-
-
-        <div class="container">
-          <div class="section">
-
-            <!--   Icon Section   -->
-            <div class="row">
-              <div class="col s12 m4">
-                <div class="icon-block">
-                  <h2 class="center light-blue-text"><i class="material-icons">flash_on</i></h2>
-
-                  <p class="light">We did most of the heavy lifting for you to provide a default stylings that incorporate our custom components. Additionally, we refined animations and transitions to provide a smoother experience for developers.</p>
-                </div>
-              </div>
-
-              <div class="col s12 m4">
-                <div class="icon-block">
-                  <h2 class="center light-blue-text"><i class="material-icons">group</i></h2>
-
-                  <p class="light">By utilizing elements and principles of Material Design, we were able to create a framework that incorporates components and animations that provide more feedback to users. Additionally, a single underlying responsive system across all platforms allow for a more unified user experience.</p>
-                </div>
-              </div>
-
-              <div class="col s12 m4">
-                <div class="icon-block">
-                  <h2 class="center light-blue-text"><i class="material-icons">settings</i></h2>
-
-                  <p class="light">We have provided detailed documentation as well as specific code examples to help new users get started. We are also always open to feedback and can answer any questions a user may have about Materialize.</p>
-                </div>
-              </div>
-            </div>
-
-          </div>
-          <br><br>
-        </div>
-
-        <footer class="page-footer orange">
-          <div class="footer-copyright">
-            <div class="container">
-            Made by <a class="orange-text text-lighten-3" href="http://materializecss.com">Materialize</a>
-            </div>
-          </div>
-        </footer>
-
-
-      </div>
-      <div class="col-1-2">
-      <iframe
-        id="viewport"
-        src="empty.html"
-        frameborder="0"
-        marginheight="0"
-        marginwidth="0"
-        height="100%" width="100%"
-        style="overflow:hidden;width:100%;height:100%;"></iframe>
-      </div>
-    </div>
-
-
-  <!--  Scripts-->
-  <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
-  <script src="js/materialize.js"></script>
-  <script src="js/init.js"></script>
-  <script>
-  // $('.s6').height( $(window).height() );
-  </script>
-
-  </body>
-</html>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
+  <title>Atelier web WCS</title>
+
+  <!-- CSS  -->
+  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
+  <link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
+  <link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
+  <style>
+    html {
+      height: 100%;
+    }
+    body {
+      min-height: 100%;
+      overflow: hidden;
+    }
+    footer {
+      position: absolute;
+      bottom: 0;
+      width: 100%;
+    }
+    .col-1-2 {
+      width: 50%;
+      position: absolute;
+      top: 0;
+      bottom: 0;
+    }
+    .col-1-2:first-child {
+      border-right:1px solid #ddd;
+    }
+    .col-1-2:last-child {
+      left: 50%;
+    }
+  </style>
+
+</head>
+<body>
+    <div class="main">
+      <div class="col-1-2">
+
+        <nav class="light-blue lighten-1" role="navigation">
+          <div class="nav-wrapper container"><a id="logo-container" href="#" class="brand-logo">WCS</a>
+            <ul class="right hide-on-med-and-down">
+              <li><a href="#">Navbar Link</a></li>
+            </ul>
+
+            <ul id="nav-mobile" class="side-nav">
+              <li><a href="#">Navbar Link</a></li>
+            </ul>
+            <a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
+          </div>
+        </nav>
+        <div class="section no-pad-bot" id="index-banner">
+          <div class="container">
+            <h4 class="header orange-text">J'apprends le JavaScript !</h4>
+          </div>
+        </div>
+
+
+        <div class="container">
+          <div class="section">
+
+            <!--   Icon Section   -->
+              <div class="col s12">
+                <h5 class="header">1. D'abord, un peu de HTML</h5>
+                <p>Ouvre le fichier <code>empty.html</code>.</p>
+                <p>Tu n'y verras pas grand chose. C'est normal, ça va être à toi de jouer !</p>
+                <p>Commence par ajouter du contenu entre les tags <code>&lt;body&gt;</code> et <code>&lt;/body&gt;</code>, sous la section "CONTENU", puis recharge cette page.</p>
+                <p>Tu verras normalement tes ajouts s'afficher sur la moitié droite de l'écran&nbsp;! Passe à l'étape suivante.</p>
+
+                <h5 class="header">2. Du JavaScript maintenant !</h5>
+                <p>Dans <code>empty.html</code>, ajoute ceci, sous la section "SCRIPTS" :</p>
+                <pre>
+&lt;script&gt;
+  alert("Hello World!");
+&lt;/script&gt;</pre>
+
+                <p>Puis recharge.</p>
+
+              </div>
+
+          </div>
+        </div>
+
+        <footer class="page-footer orange">
+          <div class="footer-copyright">
+            <div class="container">
+            Made by <a class="orange-text text-lighten-3" href="http://materializecss.com">Materialize</a>
+            </div>
+          </div>
+        </footer>
+
+
+      </div>
+      <div class="col-1-2">
+      <iframe
+        id="iframe"
+        src="empty.html"
+        frameborder="0"
+        marginheight="0"
+        marginwidth="0"
+        height="100%" width="100%"
+        style="overflow:hidden;width:100%;height:100%;"></iframe>
+      </div>
+    </div>
+
+
+  <!--  Scripts-->
+  <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
+  <script src="js/materialize.js"></script>
+  <script src="js/init.js"></script>
+  <script>
+  </script>
+
+  </body>
+</html>