From 438607a1e6989e8068569ded69582066775d2047 Mon Sep 17 00:00:00 2001 From: Guillaume FAUVET Date: Fri, 8 Dec 2017 01:22:03 +0100 Subject: [PATCH] upd: build.router.controller (add _SERVER.session.connected) upd: public_html.header = (add icon logout) upd: public_html.signup-form (add backlink to login) upd: view.vue.header = (change icon if connected or not) upd: view.vue.signup-form = (add backling to login) --- build/router/controller/js.php | 3 ++- public_html/css/header.css | 2 ++ public_html/css/signup-form.css | 7 +++++++ view/vue/header.vue | 15 +++++++++++++-- view/vue/signup-form.vue | 16 +++++++++++++++- 5 files changed, 39 insertions(+), 4 deletions(-) diff --git a/build/router/controller/js.php b/build/router/controller/js.php index 263b708..a4fc5b5 100644 --- a/build/router/controller/js.php +++ b/build/router/controller/js.php @@ -26,7 +26,8 @@ echo "window._SERVER = ".json_encode([ 'session' => [ - 'name' => $_SESSION['NAME'] + 'name' => $_SESSION['NAME'], + 'connected' => count($_SESSION['ADMIN']) + count($_SESSION['USER']) > 0 ] ])."\n"; diff --git a/public_html/css/header.css b/public_html/css/header.css index 11191b4..7120d70 100644 --- a/public_html/css/header.css +++ b/public_html/css/header.css @@ -116,6 +116,7 @@ #header-notif .hnotif.search{ background-image: url('/image/header/notif/search.svg@aaaaaa'); } #header-notif .hnotif.menu{ background-image: url('/image/header/notif/menu.svg@aaaaaa'); } #header-notif .hnotif.login{ background-image: url('/image/header/notif/login.svg@aaaaaa'); } +#header-notif .hnotif.logout{ background-image: url('/image/header/notif/logout.svg@aaaaaa'); } /* HOVER */ #header-notif .hnotif:hover{ @@ -129,6 +130,7 @@ #header-notif .hnotif.search:hover{ background-image: url('/image/header/notif/search.svg@ae51da'); } #header-notif .hnotif.menu:hover{ background-image: url('/image/header/notif/menu.svg@4a8ad8'); } #header-notif .hnotif.login:hover{ background-image: url('/image/header/notif/login.svg@660088'); } +#header-notif .hnotif.logout:hover{ background-image: url('/image/header/notif/logout.svg@660088'); } diff --git a/public_html/css/signup-form.css b/public_html/css/signup-form.css index f6e01ac..be66aab 100644 --- a/public_html/css/signup-form.css +++ b/public_html/css/signup-form.css @@ -106,4 +106,11 @@ border-style: solid; border-width: 1px; outline: none; +} + +#SIGNUP-FORM > .body > form > #membre{ + font-size: 0.8em; + color: #006eff; + text-decoration: underline; + margin-top: 8px; } \ No newline at end of file diff --git a/view/vue/header.vue b/view/vue/header.vue index c20ef36..3d872fe 100644 --- a/view/vue/header.vue +++ b/view/vue/header.vue @@ -13,7 +13,8 @@
- + +
@@ -24,7 +25,12 @@