From 2ea4c62f845031c1458155ff4fd64b5ff42f169b Mon Sep 17 00:00:00 2001 From: Kieran Klukas <92754843+kcoderhtml@users.noreply.github.com> Date: Fri, 22 Dec 2023 21:31:45 -0500 Subject: [PATCH 1/5] feat: move email form to the bottom of the page --- src/components/Email-Form.astro | 4 +--- src/pages/index.astro | 31 ++++++++++--------------------- 2 files changed, 11 insertions(+), 24 deletions(-) diff --git a/src/components/Email-Form.astro b/src/components/Email-Form.astro index a1bdee6..f452324 100644 --- a/src/components/Email-Form.astro +++ b/src/components/Email-Form.astro @@ -68,15 +68,13 @@ From 8425dc5ff3ff5298fb78ac8c8631d5613cc1cea0 Mon Sep 17 00:00:00 2001 From: Kieran Klukas <92754843+kcoderhtml@users.noreply.github.com> Date: Fri, 22 Dec 2023 21:37:18 -0500 Subject: [PATCH 3/5] feat: add margin to form --- src/components/Email-Form.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Email-Form.astro b/src/components/Email-Form.astro index f452324..e89fba1 100644 --- a/src/components/Email-Form.astro +++ b/src/components/Email-Form.astro @@ -69,7 +69,7 @@ diff --git a/src/styles/globals.css b/src/styles/globals.css index 1db956f..12ccf2d 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -113,22 +113,3 @@ img { html { scroll-behavior: smooth; } - -.hero { - width: 100%; - height: 757px; - display: flex; - padding: var(--dl-space-space-threeunits); - position: relative; - min-height: 80vh; - align-items: center; - flex-direction: column; - background-size: cover; - justify-content: center; - background-image: url("https://cdn.purplebubble.org/background.png"); -} - -.hero h1 { - color: var(--dl-color-gray-white); - font-size: 3rem; -} diff --git a/src/styles/index.css b/src/styles/index.css index 1d3512a..f099b3a 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -36,6 +36,27 @@ --dl-space-space-oneandhalfunits: 24px; } +.hero { + width: 100%; + height: 757px; + display: flex; + padding: var(--dl-space-space-threeunits); + position: relative; + min-height: 80vh; + align-items: center; + flex-direction: column; + background-size: cover; + justify-content: center; + background-image: url("https://cdn.purplebubble.org/background.png"); +} + +.hero h1 { + color: var(--dl-color-gray-white); + font-size: 3rem; + text-align: center; +} + + .button { color: var(--dl-color-gray-black); display: inline-block; @@ -378,18 +399,28 @@ height: 504px; } +.chevron-container { + margin-bottom: var(--dl-space-space-threeunits); + transform: translateY(-5rem); + width: 4em; + height: 4em; + display: flex; + align-items: center; + flex-direction: column; + justify-content: center; +} + .chevron-button { width: 4em; height: 4em; fill: var(--dl-color-gray-white); - transform: translateY(-5em); background-image: url("/chevron.svg"); background-repeat: no-repeat; background-size: contain; } .chevron-button:hover { - transform: translateY(-5em) scale(1.1); + transform: scale(1.1); } @media (max-width: 1600px) { @@ -418,10 +449,6 @@ } @media (max-width: 991px) { - .home-hero { - flex-direction: column; - } - .home-text { text-align: center; } @@ -429,9 +456,60 @@ .home-text1 { text-align: center; } + + .home-container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } + .home-container1 { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } + .home-container2 { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } + .home-text1 { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } + .home-features { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } + .home-lottie-node { + align-items: center; + width: 100%; + height: 100%; + } } -@media (max-width: 767px) { +@media (max-width: 768px) { + .home-hero { + flex-direction: column; + } + + .home-btn-group { + flex-direction: column; + justify-content: center; + align-items: center; + } + + .home-button { + margin-top: var(--dl-space-space-unit); + margin-left: 0px; + } + .home-hero { padding-left: var(--dl-space-space-twounits); padding-right: var(--dl-space-space-twounits); @@ -441,6 +519,10 @@ padding-left: var(--dl-space-space-twounits); padding-right: var(--dl-space-space-twounits); } + + .chevron-container { + display: none; + } } @media (max-width: 479px) { @@ -452,15 +534,6 @@ padding-right: var(--dl-space-space-unit); } - .home-btn-group { - flex-direction: column; - } - - .home-button { - margin-top: var(--dl-space-space-unit); - margin-left: 0px; - } - .home-features { padding-top: var(--dl-space-space-twounits); padding-left: var(--dl-space-space-unit);