From f12be2d6022ba19761aff5d9d4b4e8d5ef3debc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 24 Mar 2023 15:54:11 +0300 Subject: [PATCH] Download count added to landing --- assets/styles/layout/landing/_main.scss | 138 ++++++++++++++++++------ pages/index.vue | 2 +- pages/landing/GetStartedSection.vue | 33 ++++++ pages/landing/HeroSection.vue | 29 ++--- pages/landing/UsersSection.vue | 89 +++++---------- public/images/landing/core-icon.svg | 6 +- 6 files changed, 175 insertions(+), 122 deletions(-) create mode 100644 pages/landing/GetStartedSection.vue diff --git a/assets/styles/layout/landing/_main.scss b/assets/styles/layout/landing/_main.scss index 6bb8ad09c..3d7d262e1 100644 --- a/assets/styles/layout/landing/_main.scss +++ b/assets/styles/layout/landing/_main.scss @@ -18,11 +18,11 @@ .linkbox { font-family: var(--font-family); - transition: background-color .3s; + transition: background-color 0.3s; display: inline-flex; align-items: center; color: var(--home-linkbox-text-color); - padding: .5rem 1rem; + padding: 0.5rem 1rem; border: var(--home-linkbox-border); background-color: var(--home-linkbox-bg); border-radius: 10px; @@ -75,42 +75,110 @@ background-color: var(--surface-hover); } -.pad-section { - padding-left: 12rem; - padding-right: 12rem; -} - -@media screen and (max-width: $landingBreakpointXL) { - .pad-section { - padding-left: 8rem; - padding-right: 8rem; - } -} - -@media screen and (max-width: $landingBreakpointLG) { - .pad-section { - padding-left: 4rem; - padding-right: 4rem; - } -} - -@media screen and (max-width: $landingBreakpointMD) { - .pad-section { - padding-left: 2rem; - padding-right: 2rem; - } -} - -.users-container { - max-width: 1250px !important; - margin-left: auto !important; - margin-right: auto !important; -} - @media screen and (min-width: 1960px) { - .landing-footer{ + .landing-footer { width: 1650px !important; margin-left: auto !important; margin-right: auto !important; } +} + +.animated-text { + position: relative; + color: var(--home-text-color); + padding: 0.25rem 0.5rem; + border-radius: var(--border-radius); + display: inline-block; + width: 14.45rem; + + &::before { + border-radius: var(--border-radius); + animation: color-animation 2s linear infinite; + background-size: auto auto; + background-clip: border-box; + background-size: 200% auto; + content: ""; + width: 14.45rem; + height: 1.5rem; + position: absolute; + z-index: 0; + background-image: linear-gradient(-225deg, var(--blue-400) 30%, var(--cyan-400) 60%, var(--purple-400) 80%); + filter: blur(24px); + opacity: 0.6; + } + + > span { + position: relative; + z-index: 3; + background-image: linear-gradient(-225deg, var(--blue-400) 30%, var(--cyan-400) 60%, var(--purple-400) 80%); + animation: color-animation 2s linear infinite; + background-size: auto auto; + background-clip: border-box; + background-size: 200% auto; + background-clip: text; + text-fill-color: transparent; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + } +} + +@keyframes color-animation { + 40%, + 100% { + background-position: -200% center; + } +} + +@keyframes scroll { + 0% { + transform: translateX(0%); + } + + 100% { + transform: translateX(calc(-100% - 3rem)); + } +} + +.landing-users { + .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 20s 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(20s / -2); + } + } + } } \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index 6fdbbab6f..c18344ffd 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,12 +1,12 @@ diff --git a/pages/landing/UsersSection.vue b/pages/landing/UsersSection.vue index a9de2488a..f2a666098 100644 --- a/pages/landing/UsersSection.vue +++ b/pages/landing/UsersSection.vue @@ -1,74 +1,43 @@