From 71073b8572d399db237a28d6d9f73688c3f8d704 Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Mon, 19 Jun 2023 12:19:29 +0000 Subject: [PATCH] chore: remove unused css --- .gitignore | 2 ++ public/forget_home_page.html | 69 ------------------------------------ public/index.html | 8 ++--- scss/_globals.scss | 48 +++++-------------------- scss/index.scss | 17 --------- 5 files changed, 15 insertions(+), 129 deletions(-) create mode 100644 .gitignore delete mode 100644 public/forget_home_page.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0092bf4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.css +*.css.map diff --git a/public/forget_home_page.html b/public/forget_home_page.html deleted file mode 100644 index c666e6c..0000000 --- a/public/forget_home_page.html +++ /dev/null @@ -1,69 +0,0 @@ -<!DOCTYPE html> -<html lang="fr"> - <head> - <meta charset="UTF-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta - name="description" - content="Ecolyo est le service proposé par la Métropole de Lyon pour suivre et comprendre la consommation énergétique globale de votre foyer." - /> - <link rel="stylesheet" href="./index.css" /> - <link - href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap" - rel="stylesheet" - /> - <link rel="icon" href="assets/ecolyo-icon.svg" /> - <title>Ecolyo</title> - </head> - <body> - <div class="forget-container"> - <div class="forget-body"> - <div class="content"> - <h2 class="text-36-white">Retrouver mon espace personnel</h2> - <p class="text-18-white-padding"> - Veuillez renseigner votre identifiant - </p> - <div class="input"> - <input type="text" name="slug" id="slug" placeholder="claude" /> - <button class="button" onclick="getCozyAddress()"> - <img src="assets/ecolyo-icon.svg" alt="ecolyo-icon" /> - Accéder à mon cloud - </button> - </div> - </div> - </div> - <footer> - <div class="content"> - <div class="bottom"> - <div class="logos-footer"> - <img src="assets/legal/logo-grandlyon.svg" alt="logo-grandlyon" /> - <img src="assets/legal/logo-tiga.svg" alt="logo-tiga" /> - </div> - <div class="contact"> - <p> - Contactez-nous à - <a href="mailto:ecolyo@grandlyon.com"> ecolyo@grandlyon.com</a> - </p> - </div> - <div class="info"> - <img src="assets/info.svg" alt="info-métropole" /> - <a href="https://www.grandlyon.com/" target="_blank" - ><p>Un site de la Métropole de Lyon</p></a - > - </div> - </div> - </div> - </footer> - </div> - </body> - <script> - function getCozyAddress() { - let cozyName = document.getElementById('slug').value; - if (cozyName.length > 0) { - window.location.href = - 'https://' + cozyName + '-ecolyo.cozygrandlyon.cloud/#/consumption'; - } - } - </script> - <script src="./matomo.js" defer></script> -</html> diff --git a/public/index.html b/public/index.html index 1e32219..d15aa7a 100644 --- a/public/index.html +++ b/public/index.html @@ -72,7 +72,7 @@ <h2 class="text-18-white yellow"> Ecolyo est un service gratuit disponible sur smartphone et ordinateur </h2> - <ul class="text-18-white-padding"> + <ul class="text-18-white"> <li> Retrouvez au même endroit vos consommations d'électricité, de gaz et d'eau @@ -115,12 +115,12 @@ <section class="explanation" id="how-it-works"> <h2 class="text-36-white">Comment ça marche ?</h2> - <p class="text-18-white-padding"> + <p class="text-18-white pt-2"> Ecolyo vous permet de centraliser le suivi de vos consommations en fonction de votre installation <br />en utilisant votre ou vos compteur(s) communiquant(s). </p> - <p class="text-26-white-bold-padding"> + <p class="text-26-white-bold pt-2"> Pour en profiter, il vous suffit d'être équipé <br />de l'un de ces compteurs communicants : </p> @@ -303,7 +303,7 @@ <div class="text-content"> <img src="assets/cloud-mgl.svg" alt="logo cloud grand Lyon" /> <h2>J'ai déjà un compte</h2> - <p class="text-18-white-padding"> + <p class="text-18-white"> Vous avez déjà un compte ? <br />Pas de panique, pour retrouver l'accès à votre cloud personnel Grand Lyon au sein duquel vous retrouverez Ecolyo, cliquez sur le diff --git a/scss/_globals.scss b/scss/_globals.scss index 2f03183..acc5e41 100644 --- a/scss/_globals.scss +++ b/scss/_globals.scss @@ -1,15 +1,12 @@ -@import "./variables"; +@import './variables'; * { margin: 0; line-height: 1; - font-family: "Lato", sans-serif; + font-family: 'Lato', sans-serif; color: white; box-sizing: border-box; } -svg { - overflow: visible; -} $content-width: 1200px; $breakpoint: 1200px; @@ -61,42 +58,20 @@ html { font-weight: 900; } } -.text-18-white { - font-weight: 400; - color: white; - font-size: 1.125rem; - line-height: 1.6rem; -} -.text-18-white-padding { - font-weight: 400; - padding-top: 2rem; - color: white; - font-size: 1.125rem; - line-height: 1.6rem; -} -.text-18-black-padding { - font-weight: 400; - padding-top: 2rem; - color: $black; - font-size: 1.125rem; - line-height: 1.6rem; -} -.text-16-black-padding { - font-weight: 400; + +.pt-2 { padding-top: 2rem; - color: $black; - font-size: 1rem; - line-height: 1.3rem; } -.text-18-black { + +.text-18-white { font-weight: 400; - color: $black; + color: white; font-size: 1.125rem; line-height: 1.6rem; } -.text-26-white-bold-padding { + +.text-26-white-bold { font-weight: 900; - padding-top: 2rem; color: white; font-size: 1.625rem; line-height: 2rem; @@ -105,11 +80,6 @@ html { font-weight: 900; font-size: 2.25rem; } -.text-36-black { - font-weight: 900; - font-size: 2.25rem; - color: $black; -} .yellow { color: $yellow; diff --git a/scss/index.scss b/scss/index.scss index dbfd290..5588609 100644 --- a/scss/index.scss +++ b/scss/index.scss @@ -533,23 +533,6 @@ nav { line-height: 1.463rem; padding: 0; } - .button { - display: inline-block; - background: $red-alert; - text-align: center; - border-radius: 4px; - padding: 12px 16px; - margin-top: 1.25rem; - text-decoration: none; - max-width: 221px; - font-size: 1.125rem; - font-weight: 700; - line-height: 1.238rem; - transition: all 0.4s; - &:hover { - box-shadow: 0px 0px 10px 0px $red-alert; - } - } } footer { -- GitLab