Parcourir la source

Make home page responsive

Maxime Vidori il y a 9 ans
Parent
commit
24d63c5fb9
4 fichiers modifiés avec 138 ajouts et 195 suppressions
  1. 0 0
      content/images/pessin2.png
  2. 72 65
      content/pages/01_index.md
  3. 64 129
      theme/static/css/main.css
  4. 2 1
      theme/templates/base.html

theme/static/images/pessin2.png → content/images/pessin2.png


+ 72 - 65
content/pages/01_index.md

@@ -4,85 +4,92 @@ Url:
 Template: home
 Template: home
 save_as: index.html
 save_as: index.html
 
 
+<section class="col1of1 m3t">
+  <div class="col1of2">
+    <h1>Gitoyen</h1>
+    <h2>Opérateur réseau, LIR et dinosaures.</h2>
+  </div>
 
 
-<section class="titre">
+  <img class="col1of2" src="../images/pessin2.png" alt="Pas de profits">
 
 
-<h1>Gitoyen</h1>
-<h2>Opérateur réseau, LIR et dinosaures.</h2>
+  <blockquote class="col1of2"><p>" Pour qu'Internet reste neutre et décentralisé. "</p></blockquote>
+  <div class="clearfix"></div>
+  <hr id="first-sep">
 
 
-</section>
-
-> " Pour qu'Internet reste neutre et décentralisé. "
-
-<div class="separateur"></div>
-
-Gitoyen est une association loi 1901, à but non lucratif. Notre objectif ? Un internet décentralisé et neutre, notamment en facilitant l'émergence et l'existence de petits opérateurs réseau.
-{: .presentation }
-
-<h3><span>Nos valeurs</span></h3>
-<div class="separateur"></div>
-
-<section>
-
-<div class="valeurs nonprofit">
-<img src="../images/nonprofit.jpg" alt="Pas de profits">
-<h4>Pas de profits</h4>
-<p>Construire un opérateur sans but lucratif et respectant la neutralité du réseau.</p>
-</div>
-
-<div class="valeurs partage">
-<img src="../images/partager.jpg" alt="Du partage">
-<h4>Du partage</h4>
-<p>Partager nos connaissances, nos expériences avec les autres bénévoles.</p>
-</div>
-
-<div class="valeurs entraide">
-<img src="../images/collaborer.jpg" alt="De l'entraide">
-<h4>De l'entraide</h4>
-<p>Aider d'autres opérateurs sans but lucratif à faire de même.</p>
-</div>
-
-<a href="gitoyen.html" class="bouton">Plus d'info sur Gitoyen</a>
+  <div class="pre1of3 col2of3">
+  <p class="presentation m1">
+  Gitoyen est une association loi 1901, à but non lucratif. Notre objectif ? Un internet décentralisé et neutre, notamment en facilitant l'émergence et l'existence de petits opérateurs réseau.
+  </p>
+  </div>
 
 
 </section>
 </section>
 
 
-<h3><span>Nos services</span></h3>
-<div class="separateur"></div>
+<section class="col1of1 m1y">
+<div class="col1of1">
+  <h3><span>Nos valeurs</span></h3>
+  <hr>
+  </div>
+
+  <div class="col1of3">
+    <div class="col1of1 row7 p2">
+      <img src="../images/nonprofit.jpg" alt="Pas de profits" class="pre1of6 col2of3">
+    </div>
+    <h4>Pas de profits</h4>
+    <p>Construire un opérateur sans but lucratif et respectant la neutralité du réseau.</p>
+  </div>
+
+  <div class="col1of3">
+    <img src="../images/partager.jpg" alt="Du partage" class="col1of1 row7 p2">
+    <h4>Du partage</h4>
+    <p>Partager nos connaissances, nos expériences avec les autres bénévoles.</p>
+  </div>
+
+  <div class="col1of3">
+    <img src="../images/collaborer.jpg" alt="De l'entraide" class="col1of1 row7 p2">
+    <h4>De l'entraide</h4>
+    <p>Aider d'autres opérateurs sans but lucratif à faire de même.</p>
+  </div>
+
+  <a href="gitoyen.html" class="bouton">Plus d'info sur Gitoyen</a>
 
 
-<section>
-
-<ul class="services">
+</section>
 
 
-<li>
-<span>1.</span>
-<h4>Transit Internet</h4>
-<p>Gitoyen est un opérateur Internet disposant de ses propres liens de communication avec le reste d'Internet. Dans ce cadre nous sommes en mesure de fournir une vue complète d'Internet (du Transit) à nos membres ou nos clients.</p>
-</li>
 
 
-<li>
-<span>2.</span>
-<h4>LIR / obtention de ressources Internet</h4>
-<p>Gitoyen est un registre local d'Internet (LIR). Cela lui donne la possibilité d'assigner des ressources : blocs d'adresses IP ou numéros d'AS.</p>
-</li>
+<section class="col1of1 m1y">
 
 
+  <h3><span>Nos services</span></h3>
+  <hr>
+  <ul class="services">
+    <li class="col1of2 row8">
+    <span>1.</span>
+    <h4>Transit Internet</h4>
+    <p>Gitoyen est un opérateur Internet disposant de ses propres liens de communication avec le reste d'Internet. Dans ce cadre nous sommes en mesure de fournir une vue complète d'Internet (du Transit) à nos membres ou nos clients.</p>
+    </li>
 
 
-<li>
-<span>3. </span>
-<h4>Commutation et routage</h4>
-<p>Nous proposons à nos membres la possibilité d'utiliser notre infrastructure de commutation et notre infrastructure de routage.</p>
-</li>
+    <li class="col1of2 row8">
+    <span>2.</span>
+    <h4>LIR / obtention de ressources Internet</h4>
+    <p>Gitoyen est un registre local d'Internet (LIR). Cela lui donne la possibilité d'assigner des ressources : blocs d'adresses IP ou numéros d'AS.</p>
+    </li>
 
 
-<li>
-<span>4.</span>
-<h4>Hébergement d'équipement</h4>
-<p>Gitoyen dispose de deux points de présence basés à Paris avec notre propre espace d'hébergement d'équipement. L'un à Téléhouse - Paris Voltaire et l'autre à Paris Bourse.  </p>
-</li>
 
 
-</ul>
+    <li class="col1of2 row8">
+    <span>3. </span>
+    <h4>Commutation et routage</h4>
+    <p>Nous proposons à nos membres la possibilité d'utiliser notre infrastructure de commutation et notre infrastructure de routage.</p>
+    </li>
 
 
-<a href="services-de-gitoyen.html" class="bouton">Le détail de nos services</a>
+    <li class="col1of2 row8">
+    <span>4.</span>
+    <h4>Hébergement d'équipement</h4>
+    <p>Gitoyen dispose de deux points de présence basés à Paris avec notre propre espace d'hébergement d'équipement. L'un à Téléhouse - Paris Voltaire et l'autre à Paris Bourse.  </p>
+    </li>
+  </ul>
+  <a href="services-de-gitoyen.html" class="bouton">Le détail de nos services</a>
 
 
 </section>
 </section>
 
 
-<h3><span>Actualités</span></h3>
-<div class="separateur"></div>
+<section class="col1of1 m1y">
+  <h3><span>Actualités</span></h3>
+  <hr>
+</section>

+ 64 - 129
theme/static/css/main.css

@@ -375,9 +375,13 @@ Header
 /*
 /*
 Side navigation
 Side navigation
  *****************/
  *****************/
+
+@media all and (max-width: 40em) {
+  nav#side-nav {
+    display: none;
+  }
+}
 nav#side-nav {
 nav#side-nav {
-  display: inline-block;
-  width: 25%;
   vertical-align: top;
   vertical-align: top;
   text-align: right;
   text-align: right;
   padding-right: 60px;
   padding-right: 60px;
@@ -431,14 +435,6 @@ nav#side-nav ul li a {
 
 
 
 
 /*
 /*
-Content
- *****************/
-div#content {
-  display: inline-block;
-  width: 60%;
-}
-
-/*
 Featured
 Featured
  *****************/
  *****************/
 #featured {
 #featured {
@@ -490,13 +486,8 @@ Body
 Home page
 Home page
  *****************/
  *****************/
 
 
-#content-home section.titre {
-	background-image: url(../images/pessin2.png);
-	background-repeat: no-repeat;
-	background-position: right top;
-	background-size: 50%;
-	padding-bottom: 200px;
-	margin-bottom: -40px;
+#content-home section {
+  text-align: center;
 }
 }
 
 
 #content-home h1 {
 #content-home h1 {
@@ -521,14 +512,10 @@ Home page
 	margin-left: 20px;
 	margin-left: 20px;
 }
 }
 
 
-#content-home section {
-	padding: 80px 0;
-	text-align: center;
-}
-
-#content-home .separateur {
+#content-home hr {
 	width: 100%;
 	width: 100%;
 	height: 10px;
 	height: 10px;
+  margin-top: -40px;
 	background-color: #EEE;
 	background-color: #EEE;
 	position: absolute;
 	position: absolute;
 	left: 0;
 	left: 0;
@@ -536,10 +523,12 @@ Home page
 	z-index: -1;
 	z-index: -1;
 }
 }
 
 
+#content-home hr#first-sep {
+  margin-top: -70px;
+}
+
 #content-home blockquote {
 #content-home blockquote {
 	background-color: #dc4807;
 	background-color: #dc4807;
-	display: inline-block;
-	padding: 40px 20px;
 	color: #FFF;
 	color: #FFF;
 	font-size: 28px;
 	font-size: 28px;
 	margin: 0;
 	margin: 0;
@@ -550,83 +539,39 @@ Home page
 	filter:progid:DXImageTransform.Microsoft.Shadow(color=#c0c0c0, Direction=134, Strength=5);
 	filter:progid:DXImageTransform.Microsoft.Shadow(color=#c0c0c0, Direction=134, Strength=5);
 }
 }
 
 
-#content-home blockquote + .separateur {
-	margin-top: -70px;
-}
-
-#content-home blockquote p {
-	width: 80%;
-	text-align: center;
-	margin: auto;
-}
-
 #content-home .presentation {
 #content-home .presentation {
 	background-image: url(../images/deco-titre.png);
 	background-image: url(../images/deco-titre.png);
 	background-repeat: no-repeat;
 	background-repeat: no-repeat;
-	padding: 40px 80px;
 	font-size: 24px;
 	font-size: 24px;
-	width: 70%;
-	margin-top: 120px;
-	margin-bottom: 120px;
-	margin-left: 30%;
 }
 }
 
 
-#content-home h3:nth-child(even) {
-	text-align: right;
-	padding-right: 50px;
-}
+@media all and (min-width: 40em) {
+  #content-home .presentation {
+    padding: 40px 80px;
+  }
 
 
-#content-home h3:nth-child(odd) {
-	text-align: left;
-	padding-left: 50px;
-}
+  #content-home section:nth-child(even) h3 {
+    text-align: right;
+    padding-right: 50px;
+  }
 
 
-#content-home h3 + .separateur {
-	margin-top: -40px;
+  #content-home section:nth-child(odd) h3 {
+    text-align: left;
+    padding-left: 50px;
+  }
 }
 }
 
 
 #content-home h3 span {
 #content-home h3 span {
+  display: inline-block;
 	background-color: #EEE;
 	background-color: #EEE;
-	display: inline-block;
 	padding: 20px 40px;
 	padding: 20px 40px;
+  margin: auto;
 	text-transform: uppercase;
 	text-transform: uppercase;
 	color: #000;
 	color: #000;
 	font-size: 32px;
 	font-size: 32px;
 	font-weight: lighter;
 	font-weight: lighter;
 }
 }
 
 
-#content-home .valeurs {
-	width: 30%;
-	display: inline-block;
-}
-
-#content-home .valeurs img {
-	width: 70%;
-	text-align: center;
-}
-
-#content-home .valeurs.nonprofit img {
-	width: 50%;
-}
-
-#content-home .valeurs h4 {
-	font-size: 22px;
-	font-weight: bold;
-	font-family: Lato, Arial, sans-serif;
-}
-
-#content-home .valeurs p {
-	font-size: 18px;
-	padding: 0 40px;
-}
-
-#content-home .services li {
-	list-style: none;
-	display: inline-block;
-	width: 49%;
-	vertical-align: top;
-}
-
 #content-home .services li span {
 #content-home .services li span {
 	font-family: Oswald, Arial, serif;
 	font-family: Oswald, Arial, serif;
 	font-size: 100px;
 	font-size: 100px;
@@ -775,19 +720,21 @@ li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
   font-size: 3em;
   font-size: 3em;
   font-family: Lato;
   font-family: Lato;
   font-weight: 300;
   font-weight: 300;
-  margin-bottom: 60px;
-  margin-top: 30px;
+  margin: 1rem 0 3rem 0;
   text-align: center;
   text-align: center;
 }
 }
-.entry-title span {
-  display: inline-block;
-  padding: 0 80px;
-  height: 100px;
-  background-image: url(../images/deco-titre.png);
-  background-repeat: no-repeat;
-  background-position: right 10px;
-}
 
 
+
+@media all and (min-width: 40em) {
+  .entry-title span {
+    display: inline-block;
+    padding: 0 80px;
+    height: 100px;
+    background-image: url(../images/deco-titre.png);
+    background-repeat: no-repeat;
+    background-position: right 10px;
+  }
+}
 .entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;}
 .entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;}
 .entry-title a:visited {background-color: #fff;}
 .entry-title a:visited {background-color: #fff;}
 
 
@@ -862,34 +809,6 @@ li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
 #add-comment input[type='submit'] {float: right; margin: 0 .5em;}
 #add-comment input[type='submit'] {float: right; margin: 0 .5em;}
 #add-comment * {margin-bottom: .5em;}
 #add-comment * {margin-bottom: .5em;}
 
 
-/* Valeurs */
-#content .valeurs {
-  width: 33%;
-  text-align: center;
-  display: inline-block;
-  font-weight: 600;
-  margin-bottom: 30px
-}
-
-#content .valeurs.nonprofit img{
-  width: 70%;
-}
-
-#content .valeurs.entraide img{
-  width: 80%;
-}
-
-#content .valeurs.partage img{
-  width: 90%;
-}
-
-#content .valeurs img {
-  width: 100%;
-  display: block;
-  margin: auto;
-  margin-bottom: 20px;
-}
-
 .show {
 .show {
   display: block; }
   display: block; }
 
 
@@ -936,26 +855,42 @@ ul.list-inline {
 .container {
 .container {
   max-width: 64rem;
   max-width: 64rem;
   width: 94%;
   width: 94%;
-  margin: 0 auto; }
-  @media all and (min-width: 40em) {
-    .container {
-      width: 100%;
-      padding: 0 1rem; } }
+  margin: 0 auto;
+}
+
+@media all and (min-width: 40em) {
+  .container {
+    width: 100%;
+    padding: 0 1rem;
+  }
+}
 
 
 @media all and (min-width: 40em) {
 @media all and (min-width: 40em) {
   .col1of1 {
   .col1of1 {
     float: left;
     float: left;
-    width: 100%; } }
+    width: 100%;
+  }
+}
 
 
 @media all and (min-width: 40em) {
 @media all and (min-width: 40em) {
   .col1of2 {
   .col1of2 {
     float: left;
     float: left;
-    width: 50%; } }
+    width: 50%;
+  }
+}
+
+@media all and (max-width: 40em) {
+  .col1of2, .col1of3, .col1of1, .col2of3 {
+    width: 100%;
+  }
+}
 
 
 @media all and (min-width: 40em) {
 @media all and (min-width: 40em) {
   .col1of3 {
   .col1of3 {
     float: left;
     float: left;
-    width: 33.33333%; } }
+    width: 33.33333%;
+  }
+}
 
 
 @media all and (min-width: 40em) {
 @media all and (min-width: 40em) {
   .col2of3 {
   .col2of3 {

+ 2 - 1
theme/templates/base.html

@@ -2,7 +2,8 @@
 <html lang="{{ DEFAULT_LANG }}">
 <html lang="{{ DEFAULT_LANG }}">
   <head>
   <head>
     <meta charset="utf-8" />
     <meta charset="utf-8" />
-    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
     <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
     <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE }}" />
     <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE }}" />