From 4fb171c4a50803f4e4c2219e8fb44585fc90ec84 Mon Sep 17 00:00:00 2001 From: Raphael Roumezin Date: Wed, 27 Nov 2024 14:24:17 +0100 Subject: [PATCH] Disabled legacy routes, and set store as / --- resources/js/home.js | 13 ++-- resources/scss/layout/_header.scss | 70 ++++++++---------- resources/views/base/header.edge | 14 +--- resources/views/base/main.edge | 4 - resources/views/store/app.edge | 10 +-- resources/views/store/myapps.edge | 4 +- resources/views/store/myreleases.edge | 8 +- resources/views/store/new.edge | 2 +- resources/views/store/store.edge | 2 +- resources/views/store/store_container.edge | 18 ++--- start/routes.ts | 86 +++++++++++----------- 11 files changed, 104 insertions(+), 127 deletions(-) diff --git a/resources/js/home.js b/resources/js/home.js index cafb603..44f6ff0 100644 --- a/resources/js/home.js +++ b/resources/js/home.js @@ -1,12 +1,13 @@ -textPresentation = document.querySelector('.presentation'); +// UNUSED LEGACY CODE +// textPresentation = document.querySelector('.presentation'); -window.addEventListener('load', (e) => { +// window.addEventListener('load', (e) => { - setTimeout(() => { +// setTimeout(() => { - textPresentation.classList.add('visible'); +// textPresentation.classList.add('visible'); - }, 100) +// }, 100) -}) +// }) diff --git a/resources/scss/layout/_header.scss b/resources/scss/layout/_header.scss index 63aa83a..c9e0a6d 100644 --- a/resources/scss/layout/_header.scss +++ b/resources/scss/layout/_header.scss @@ -1,18 +1,6 @@ /* header */ -body{ - &[path="/"]{ - .header{ - color: white; - - > .logo { - filter: brightness(0) invert(1); // logo blanc - } - } - } -} - -.header{ +.header { padding: 50px 7%; display: flex; justify-content: space-between; @@ -25,7 +13,7 @@ body{ left: 0; right: 0; - > .toggle-nav-btn { + >.toggle-nav-btn { // transform: translateY(-300%); background: none; border: none; @@ -34,11 +22,11 @@ body{ cursor: pointer; transition: all $transition-duration ease; z-index: 1; - + &.active { color: white; } - + /* &.visible { transform: translate(0); @@ -46,7 +34,7 @@ body{ */ } - > .logo { + >.logo { font-size: 33px; font-weight: bold; text-transform: uppercase; @@ -64,17 +52,17 @@ body{ */ } - > .nav { + >.nav { display: none; transition: all $transition-duration ease; - > .nav-list { + >.nav-list { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; - > .nav-item { + >.nav-item { padding: 0 .8rem; &.lang-select-wrapper { @@ -82,11 +70,11 @@ body{ display: flex; align-items: center; - > #lang-current{ + >#lang-current { cursor: pointer; } - - > #lang-select { + + >#lang-select { position: absolute; display: none; border-radius: 0.2rem; @@ -96,14 +84,14 @@ body{ z-index: 2; margin: -10%; margin-top: 100%; - + &.open { display: block; } } } - > .nav-link { + >.nav-link { text-decoration: none; color: inherit; text-transform: uppercase; @@ -118,29 +106,29 @@ body{ } } - &:not(.top){ + &:not(.top) { background-color: white; - &:not(.mobile_menu_active){ + &:not(.mobile_menu_active) { padding-top: 12px; padding-bottom: 12px; color: black; - - > .logo { + + >.logo { height: 40px; filter: none; // logo vert } - > .nav{ - ul{ - > li{ + >.nav { + ul { + >li { color: black; } - } + } } } - &:after{ + &:after { content: ""; position: absolute; bottom: 0; @@ -150,18 +138,18 @@ body{ height: 1px; } - > nav{ + >nav { &.nav { - > .nav-list { - > .nav-item { - > #lang-select { + >.nav-list { + >.nav-item { + >#lang-select { background: rgba(0, 0, 0, 0.3); } } } } - option{ + option { color: black; } } @@ -195,8 +183,8 @@ body{ height: 100vh; background: black; - select{ - > option{ + select { + >option { color: black; } } diff --git a/resources/views/base/header.edge b/resources/views/base/header.edge index 0dafc7f..65b292e 100644 --- a/resources/views/base/header.edge +++ b/resources/views/base/header.edge @@ -5,20 +5,12 @@