From 569d6519b903a64997957cfb9bc2f6996cd9b5ef Mon Sep 17 00:00:00 2001 From: Eliah REBSTOCK <eliah.rebstock@ensiie.fr> Date: Sun, 8 May 2016 21:34:35 +0200 Subject: [PATCH] =?UTF-8?q?Ajouts=20de=20liens=20et=20am=C3=A9lioration=20?= =?UTF-8?q?de=20css=20sur=20la=20page=20d'accueil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/Index/display.html | 14 +++++++++--- www/css/style.css | 44 +++++++++++++++++++++---------------- 2 files changed, 36 insertions(+), 22 deletions(-) diff --git a/app/view/Index/display.html b/app/view/Index/display.html index 18fb5ee..87a7ff0 100644 --- a/app/view/Index/display.html +++ b/app/view/Index/display.html @@ -12,7 +12,11 @@ <?php foreach($this->most_played as $jeu) { ?> - <tr><td><img src="<?php echo BASE_URL; ?>/images/jeu/<?php echo $jeu['slug']; ?>.jpg" alt="logo jeu <?php echo $jeu['nom']; ?>" /></td><td><?php echo $jeu['nom']; ?></td><td><?php echo $jeu['parties']; ?>x</td></tr> + <tr> + <td><a href="<?php echo BASE_URL; ?>/jeu/<?php echo $jeu['slug']; ?>"><img src="<?php echo BASE_URL; ?>/images/jeu/<?php echo $jeu['slug']; ?>.jpg" alt="logo jeu <?php echo $jeu['nom']; ?>" /></a></td> + <td><a href="<?php echo BASE_URL; ?>/jeu/<?php echo $jeu['slug']; ?>"><?php echo $jeu['nom']; ?></a></td> + <td><?php echo $jeu['parties']; ?>x</td> + </tr> <?php } ?> @@ -22,11 +26,15 @@ <div class="col-6"> <h3 class="stat-title">Dernier inscrit :</h3> - <aside class="profil-image"> + <aside class="profil-image"><a href="<?php echo BASE_URL; ?>/profil/<?php echo $this->last_member->slug; ?>"> <img src="<?php echo BASE_URL; ?>/images/profil_42.jpg" alt="Photo de profil de phoenix" /> + </a> </aside> <ul class="col-4 pref"> - <li><?php echo $this->last_member->prenom.' '.$this->last_member->nom; ?></li> + <li><a href="<?php echo BASE_URL; ?>/profil/<?php echo $this->last_member->slug; ?>"> + <?php echo $this->last_member->prenom.' '.$this->last_member->nom; ?></a> + </li> + </ul> </div> diff --git a/www/css/style.css b/www/css/style.css index 043379c..cc57665 100644 --- a/www/css/style.css +++ b/www/css/style.css @@ -49,6 +49,30 @@ footer{ box-sizing: border-box; } +.main a{ + color: #159C15; + text-decoration: none; +} +.main a:hover{ + color: cadetblue !important; +} +.inscription-btn{ + color:blanchedalmond !important; + font-weight : bold; + text-decoration:none; + width:100%; + padding: 2px; + border-radius:10px; + background: #02071E linear-gradient(to bottom, #02071E, #02071E, rgba(255, 255, 255, 0)); + -webkit-transition: background 500ms; /* Safari */ + transition: background 500ms ; + display: inline-block; + height:30px; +} + +.inscription-btn:hover { + background: red linear-gradient(to bottom, #02071E, #02071E, rgba(255, 255, 255, 0)); +} .main{ margin-top:235px; padding-bottom:100px; @@ -165,25 +189,6 @@ header a:hover, footer a:hover { } -.inscription-btn { - color:blanchedalmond; - font-weight : bold; - text-decoration:none; - width:100%; - padding: 2px; - border-radius:10px; - background: #02071E linear-gradient(to bottom, #02071E, #02071E, rgba(255, 255, 255, 0)); - -webkit-transition: background 500ms; /* Safari */ - transition: background 500ms ; - display: inline-block; - height:30px; -} - -.inscription-btn:hover { - background: red linear-gradient(to bottom, #02071E, #02071E, rgba(255, 255, 255, 0)); - -} - nav ul { text-align:center; @@ -252,6 +257,7 @@ nav ul li:hover{ list-style-type: none; padding: 0; text-align: center; + margin-top: 40px; } .stat-title{ text-align: center; -- GitLab