From 49a7a1a3d87d48710ca0af5016ec162514ec24e0 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 10 Oct 2023 11:38:49 +0300 Subject: [PATCH] Landing cosmetics --- assets/styles/layout/_code.scss | 4 +- assets/styles/layout/_content.scss | 4 +- assets/styles/layout/_doc.scss | 4 +- assets/styles/layout/_topbar.scss | 19 +- assets/styles/layout/landing/_components.scss | 33 --- assets/styles/layout/landing/_dark.scss | 2 +- assets/styles/layout/landing/_header.scss | 111 -------- assets/styles/layout/landing/_hero.scss | 194 +------------ assets/styles/layout/landing/_landing.scss | 3 +- assets/styles/layout/landing/_light.scss | 2 +- assets/styles/layout/landing/_main.scss | 51 +--- assets/styles/layout/landing/_users.scss | 49 ++++ layouts/AppTopBar.vue | 185 ++++++------ layouts/default.vue | 22 +- pages/index.vue | 21 +- pages/landing/ComponentSection.vue | 243 ---------------- pages/landing/HeaderSection.vue | 118 -------- pages/landing/HeroSection.vue | 267 ++++++++++++------ pages/landing/Intro.vue | 22 -- 19 files changed, 373 insertions(+), 981 deletions(-) delete mode 100644 assets/styles/layout/landing/_components.scss delete mode 100644 assets/styles/layout/landing/_header.scss create mode 100644 assets/styles/layout/landing/_users.scss delete mode 100644 pages/landing/ComponentSection.vue delete mode 100644 pages/landing/HeaderSection.vue delete mode 100644 pages/landing/Intro.vue diff --git a/assets/styles/layout/_code.scss b/assets/styles/layout/_code.scss index f21b968d7..39b1f2d18 100644 --- a/assets/styles/layout/_code.scss +++ b/assets/styles/layout/_code.scss @@ -345,7 +345,7 @@ pre[class*="language-"] { display: none; } -.layout-wrapper-dark { +.layout-dark { pre[class*="language-"] { code { background: var(--surface-card) !important; @@ -353,7 +353,7 @@ pre[class*="language-"] { } } -.layout-wrapper-light { +.layout-light { pre[class*="language-"] { code { background: #475569 !important; diff --git a/assets/styles/layout/_content.scss b/assets/styles/layout/_content.scss index 7ea0a1ce8..12dc69b78 100644 --- a/assets/styles/layout/_content.scss +++ b/assets/styles/layout/_content.scss @@ -8,7 +8,7 @@ } } -.layout-wrapper-light { +.layout-light { .card { background: var(--surface-ground); border: 1px solid var(--surface-border); @@ -18,7 +18,7 @@ } } -.layout-wrapper-dark { +.layout-dark { .card { background: var(--surface-card); border: 0 none; diff --git a/assets/styles/layout/_doc.scss b/assets/styles/layout/_doc.scss index 6166cab02..44bd4f638 100644 --- a/assets/styles/layout/_doc.scss +++ b/assets/styles/layout/_doc.scss @@ -120,7 +120,7 @@ } } -.layout-wrapper-light { +.layout-light { .doc-section-description { > p { i { @@ -131,7 +131,7 @@ } } -.layout-wrapper-dark { +.layout-dark { .doc-section-description { > p { i { diff --git a/assets/styles/layout/_topbar.scss b/assets/styles/layout/_topbar.scss index 79acdc234..45b511bb1 100644 --- a/assets/styles/layout/_topbar.scss +++ b/assets/styles/layout/_topbar.scss @@ -1,21 +1,24 @@ .layout-topbar { - height: 4rem; position: fixed; top: 0; left: 0; - padding: 0 4rem; width: 100%; z-index: 1100; transition: background-color 1s; border-bottom: 1px solid var(--surface-border); - display: flex; - align-items: center; - justify-content: space-between; - + &.layout-topbar-sticky { backdrop-filter: blur(8px); } + .layout-topbar-inner { + height: 4rem; + padding: 0 4rem; + display: flex; + align-items: center; + justify-content: space-between; + } + .layout-topbar-logo-container { width: 250px; margin-right: 4rem; @@ -44,7 +47,7 @@ } } -.layout-wrapper-light { +.layout-light { .layout-topbar { &.layout-topbar-sticky { background-color: rgba(255,255,255,.7); @@ -52,7 +55,7 @@ } } -.layout-wrapper-dark { +.layout-dark { .layout-topbar { &.layout-topbar-sticky { background-color: rgba(0,0,0,.3); diff --git a/assets/styles/layout/landing/_components.scss b/assets/styles/layout/landing/_components.scss deleted file mode 100644 index 470fc868a..000000000 --- a/assets/styles/layout/landing/_components.scss +++ /dev/null @@ -1,33 +0,0 @@ -.landing-components { - .components-main { - .components-strip-top { - background: var(--home-components-strip-bg); - transform: matrix(-1, 0, 0, 1, 0, 0); - } - - .components-strip-bottom { - background: var(--home-components-strip-bg); - } - } - - .p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link { - background: transparent; - } - - .box { - box-shadow: var(--home-card-shadow); - } - - .p-datepicker, .p-datepicker-header { - background: transparent; - border-color: transparent; - } -} - -@media screen and (min-width: 1660px) { - .components-main-container { - width: 1504px !important; - margin-left: auto !important; - margin-right: auto !important; - } -} \ No newline at end of file diff --git a/assets/styles/layout/landing/_dark.scss b/assets/styles/layout/landing/_dark.scss index aee71d94c..cad8be765 100644 --- a/assets/styles/layout/landing/_dark.scss +++ b/assets/styles/layout/landing/_dark.scss @@ -1,4 +1,4 @@ -.landing-dark { +.layout-dark { --home-highlight-color:#14B8A6; --home-highlight-darker-color:#0D9488; --home-highlight-fore-color:#ffffff; diff --git a/assets/styles/layout/landing/_header.scss b/assets/styles/layout/landing/_header.scss deleted file mode 100644 index 0e2d685d8..000000000 --- a/assets/styles/layout/landing/_header.scss +++ /dev/null @@ -1,111 +0,0 @@ -.landing-header { - background-color: transparent; - position: fixed; - top: 0; - left: 0; - width: 100%; - padding-top: 1rem; - padding-bottom: 1rem; - z-index: 100; - - .landing-header-container { - width: 100%; - max-width: 1250px !important; - margin-left: auto !important; - margin-right: auto !important; - display: flex; - align-items: center; - justify-content: space-between; - } - - .landing-header-logo { - height: 2.5rem; - } - - &.landing-header-sticky { - background-color: var(--home-header-bg); - backdrop-filter: blur(12px); - } - - ol { - a { - display: block; - padding: .5rem 1.5rem; - text-align: center; - transition: background-color .3s; - border-radius: 10px; - color: var(--home-menu-link-text-color); - white-space: nowrap; - - img { - display: none; - } - - &:hover { - background: var(--home-menu-link-hover-bg); - } - } - } - - .header-button { - width: 2.5rem; - height: 2.5rem; - } -} - -@media screen and (max-width: $landingBreakpointLG) { - .landing-header { - align-items: flex-start; - - nav { - display: none; - } - - .landing-header-logo { - height: 2rem; - } - - &.landing-header-active { - background-color: var(--home-header-bg); - backdrop-filter: blur(12px); - height: 100vh; - - nav { - display: block; - position: fixed; - left: 100px; - top: 100px; - width: 100%; - padding: 4rem 2rem; - top: 5rem; - left: 0; - } - - .menu-button { - i:before { - content: "\e90b"; - } - } - } - - ol { - a { - border: 1px solid var(--home-border-color); - background-color: var(--home-herobox-bg); - margin-bottom: 1rem; - color: var(--home-linkbox-text-color); - cursor: pointer; - font-size: 1.5rem; - text-align: left; - display: flex; - align-items: center; - padding: 1.5rem; - - img { - display: block; - margin-right: 1.5rem; - } - } - } - } -} diff --git a/assets/styles/layout/landing/_hero.scss b/assets/styles/layout/landing/_hero.scss index 573b563ee..60a6db5fb 100644 --- a/assets/styles/layout/landing/_hero.scss +++ b/assets/styles/layout/landing/_hero.scss @@ -1,194 +1,22 @@ .landing-hero { - flex: 1 1 auto; - - .hero-inner { - .hero-box { - position: relative; - z-index: 1; - - .name { - text-align: center; - margin-top: 20px; - opacity: 0; - transition: 1s; - transition-delay: 1.8s; - } - - img { - transform: scale(0); - opacity: 0; - transition: 0.5s; - transition-delay: 1.8s; - } - - b { - color: var(--home-primary-text-color); - display: block; - font-weight: 600; - font-size: 13px; - } - - span { - color: var(--home-secondary-text-color); - font-weight: 500; - font-size: 12px; - } - - &:before { - content: ''; - background: var(--home-herobox-bg); - border: 1px solid var(--home-border-color); - box-shadow: 0px 50px 100px var(--home-herobox-shadow); - border-radius: 9px; - z-index: -1; - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 0%; - opacity: 0; - transform: translate(-50%, -50%); - transition: height 1s 1.4s, opacity 1s 1.4s, border-color .3s; - } - - &:hover { - &:before { - border-color: var(--home-highlight-color); - } - } - } - - .hero-border-top { - opacity: 0; - border: 1px solid transparent; - width: 380px; - height: 0; - position: absolute; - top: 50%; - left: 50%; - z-index: -1; - transition: height 1.5s, opacity 1.5s; - transition-delay: 0.6s; - border-radius: 9px; - transform: translate(-50%, -50%); - } - - .hero-border-left { - border: 1px solid var(--home-border-color); - border-right: transparent; - width: 0%; - border-radius: 9px 0 0 9px; - height: 35%; - position: absolute; - top: 50%; - left: -3%; - z-index: -1; - opacity: 0; - transition: width 1s, opacity 1s, transform 1s; - transition-delay: 1s; - transform: translate(108px, -50%); - } - - .hero-border-right { - border: 1px solid var(--home-border-color); - border-left: transparent; - width: 0%; - border-radius: 0 9px 9px 0; - height: 35%; - position: absolute; - top: 50%; - right: -3%; - z-index: -1; - opacity: 0; - transition: width 1s, opacity 1s, transform 1s; - transition-delay: 1s; - transform: translate(-108px, -50%); - } + .p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link { + background: transparent; } - .hero-bg { - transition-delay: 1.4s; - - .hero-strip-top { - transition: 1.6s; - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - width: 114px; - height: 0%; - opacity: 0; - background: var(--home-herobox-strip-top-bg); - } - - .hero-strip-left { - transition: 1.6s; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - width: 0%; - height: 114px; - opacity: 0; - background: var(--home-herobox-strip-bottom-bg); - } + .box { + box-shadow: var(--home-card-shadow); } - &.hero-animation { - .hero-bg { - .hero-strip-top { - opacity: 1; - height: 100%; - } - - .hero-strip-left { - width: 100%; - opacity: 1; - } - } - - .hero-inner { - .hero-box { - cursor: pointer; - - img { - opacity: 1; - transform: scale(1); - } - - .name { - opacity: 1; - } - - &:before { - height: 100%; - opacity: 1; - } - } - - .hero-border-top { - height: 70%; - opacity: 1; - border-color: var(--home-border-color); - } - - .hero-border-left { - opacity: 1; - width: 19%; - transform: translate(0, -50%); - } - - .hero-border-right { - opacity: 1; - width: 19%; - transform: translate(0, -50%); - } - } + .p-datepicker, .p-datepicker-header { + background: transparent; + border-color: transparent; } } -@media screen and (max-width: $landingBreakpointLG) { +@media screen and (min-width: 1660px) { .landing-hero { - padding: 0 2rem; + width: 1504px !important; + margin-left: auto !important; + margin-right: auto !important; } } \ No newline at end of file diff --git a/assets/styles/layout/landing/_landing.scss b/assets/styles/layout/landing/_landing.scss index be90e10bd..a5885960b 100644 --- a/assets/styles/layout/landing/_landing.scss +++ b/assets/styles/layout/landing/_landing.scss @@ -5,10 +5,9 @@ $landingBreakpointXL: 1199px; @import './_main'; @import './_light'; @import './_dark'; -@import './_header'; @import './_hero'; +@import './_users'; @import './_getstarted'; -@import './_components'; @import './_themes'; @import './_blocks'; @import './_designer'; diff --git a/assets/styles/layout/landing/_light.scss b/assets/styles/layout/landing/_light.scss index c77cf1ac1..fac83b64c 100644 --- a/assets/styles/layout/landing/_light.scss +++ b/assets/styles/layout/landing/_light.scss @@ -1,4 +1,4 @@ -.landing-light { +.layout-light { --home-highlight-color:#14B8A6; --home-highlight-darker-color:#0D9488; --home-highlight-fore-color:#ffffff; diff --git a/assets/styles/layout/landing/_main.scss b/assets/styles/layout/landing/_main.scss index fdf5b2146..81cfea977 100644 --- a/assets/styles/layout/landing/_main.scss +++ b/assets/styles/layout/landing/_main.scss @@ -1,6 +1,7 @@ .landing { background: var(--home-bg); scroll-behavior: smooth; + padding-top: 4rem; .landing-intro { background: var(--home-intro-bg); @@ -134,54 +135,4 @@ 100% { transform: translateX(calc(-100% - 3rem)); } -} - -.landing-users { - .fade-right { - background: linear-gradient(to left, var(--home-bg), transparent); - } - .fade-left { - background: linear-gradient(to right, var(--home-bg), transparent); - } - .section-detail { - max-width: 1250px !important; - margin-left: auto !important; - margin-right: auto !important; - } - .users-container { - max-width: 1250px !important; - margin-left: auto !important; - margin-right: auto !important; - - .marquee-wrapper { - user-select: none; - gap: 3rem; - justify-content: center; - align-items: center; - flex-shrink: 0; - } - .marquee { - flex-shrink: 0; - display: flex; - align-items: center; - justify-content: space-around; - gap: 3rem; - min-width: 100%; - animation: scroll 30s linear infinite; - - > div { - max-width: clamp(10rem, 1rem + 28vmin, 20rem); - aspect-ratio: 1; - display: flex; - justify-content: center; - align-items: center; - height: 8rem; - } - - &.marquee-reverse{ - animation-direction: reverse; - animation-delay: calc(30s / -2); - } - } - } } \ No newline at end of file diff --git a/assets/styles/layout/landing/_users.scss b/assets/styles/layout/landing/_users.scss new file mode 100644 index 000000000..5ebda5eaf --- /dev/null +++ b/assets/styles/layout/landing/_users.scss @@ -0,0 +1,49 @@ +.landing-users { + .fade-right { + background: linear-gradient(to left, var(--home-bg), transparent); + } + .fade-left { + background: linear-gradient(to right, var(--home-bg), transparent); + } + .section-detail { + max-width: 1250px !important; + margin-left: auto !important; + margin-right: auto !important; + } + .users-container { + max-width: 1250px !important; + margin-left: auto !important; + margin-right: auto !important; + + .marquee-wrapper { + user-select: none; + gap: 3rem; + justify-content: center; + align-items: center; + flex-shrink: 0; + } + .marquee { + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: space-around; + gap: 3rem; + min-width: 100%; + animation: scroll 30s linear infinite; + + > div { + max-width: clamp(10rem, 1rem + 28vmin, 20rem); + aspect-ratio: 1; + display: flex; + justify-content: center; + align-items: center; + height: 8rem; + } + + &.marquee-reverse{ + animation-direction: reverse; + animation-delay: calc(30s / -2); + } + } + } +} \ No newline at end of file diff --git a/layouts/AppTopBar.vue b/layouts/AppTopBar.vue index 25e0aac46..5f2df8f35 100755 --- a/layouts/AppTopBar.vue +++ b/layouts/AppTopBar.vue @@ -1,97 +1,100 @@ diff --git a/layouts/default.vue b/layouts/default.vue index c9aa77281..a720befce 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,8 +1,8 @@