From 869c7293d869d0ce2bf9642940f9063a3e375348 Mon Sep 17 00:00:00 2001 From: Michael Jolley Date: Sun, 1 Dec 2024 18:56:15 -0600 Subject: [PATCH] Finalizing gifting page --- src/components/giving/Gifts.astro | 10 +- src/components/giving/Giving.astro | 5 +- src/components/giving/GivingForm.astro | 4 +- src/components/giving/Leaderboard.astro | 16 +-- src/components/giving/SeasonOfGiving.astro | 114 +++++++++++---------- src/pages/api/auth/signin.ts | 2 - 6 files changed, 81 insertions(+), 70 deletions(-) diff --git a/src/components/giving/Gifts.astro b/src/components/giving/Gifts.astro index 0c54d5e..d4633e3 100644 --- a/src/components/giving/Gifts.astro +++ b/src/components/giving/Gifts.astro @@ -70,8 +70,8 @@ section { flex-direction: column; align-items: center; justify-content: center; - margin: 0; - gap: 2rem; + gap: 1.5rem; + margin: 2rem 0; } aside { position: relative; @@ -155,15 +155,17 @@ strong { @media (min-width: 1280px) /* xl */ { .wrapper { flex-direction: row; + max-width: 75vw; + gap: 5rem; } ul.gifts li img { - width: 12rem; + width: 8rem; } } @media (min-width: 1536px) /* 2xl */ { ul.gifts li img { - width: 15rem; + width: 10rem; } } diff --git a/src/components/giving/Giving.astro b/src/components/giving/Giving.astro index 8af8ad4..1abdd81 100644 --- a/src/components/giving/Giving.astro +++ b/src/components/giving/Giving.astro @@ -57,8 +57,8 @@ section { flex-direction: column-reverse; align-items: center; justify-content: center; - margin: 2rem 0; - gap: 2rem; + gap: 2.5rem; + margin: 2rem auto; } aside { position: relative; @@ -110,6 +110,7 @@ strong { @media (min-width: 768px) /* md */ { .wrapper { flex-direction: row; + max-width: 75vw; } img { top: -12vw; diff --git a/src/components/giving/GivingForm.astro b/src/components/giving/GivingForm.astro index caf3371..23d8327 100644 --- a/src/components/giving/GivingForm.astro +++ b/src/components/giving/GivingForm.astro @@ -44,7 +44,6 @@ const { user } = Astro.props;

-


\ No newline at end of file diff --git a/src/components/giving/SeasonOfGiving.astro b/src/components/giving/SeasonOfGiving.astro index 970a9e9..d3f2d82 100644 --- a/src/components/giving/SeasonOfGiving.astro +++ b/src/components/giving/SeasonOfGiving.astro @@ -44,8 +44,8 @@ flex-direction: column-reverse; gap: 1.5rem; background: url('/images/party.svg') no-repeat; - background-position: 100% 0; - background-size: 60%; + background-position: top right; + background-size: 60vw; } h2 { position: relative; @@ -75,65 +75,71 @@ a:hover { border-color: var(--pink); } - @media (min-width: 640px) /* sm */ { +@media (min-width: 640px) /* sm */ { + .wrapper { + background-position: top right; + background-size: 50vw; } +} - @media (min-width: 768px) /* md */ { - .wrapper { - background-position: 100% 0; - background-size: contain; - } - h2 { - font-size: 9rem; - } - h2 img { - top: 0vw; - right: -5vw; - } +@media (min-width: 768px) /* md */ { + .wrapper { + background-position: top center; + background-size: 40vw; + } + h2 { + font-size: 9rem; + } + h2 img { + top: 0vw; + right: -5vw; } +} - @media (min-width: 1024px) /* lg */ { - .wrapper { - flex-direction: row; - background-position: 60vw center; - } - aside { - } - h2 { - font-size: 10rem; - } - h2 img { - top: 10vw; - right: 6vw; - } - h3 { - font-size: 3rem; - } +@media (min-width: 1024px) /* lg */ { + .wrapper { + flex-direction: row; + background-position: 100% center; + background-size: contain; + gap: 5rem; + } + aside { + } + h2 { + font-size: 10rem; + } + h2 img { + top: 10vw; + right: 6vw; } + h3 { + font-size: 3rem; + } +} - @media (min-width: 1280px) /* xl */ { - .wrapper { - background-position: 60vw center; - max-width: 90vw; - margin: auto; - } - h2 { - font-size: 12rem; - } - h2 img { - top: 5vw; - right: 10vw; - } +@media (min-width: 1280px) /* xl */ { + .wrapper { + background-position: top right; + background-size: contain; + max-width: 75vw; + margin: auto; + } + h2 { + font-size: 12rem; } + h2 img { + top: 5vw; + right: 10vw; + } +} - @media (min-width: 1536px) /* 2xl */ { - h2 { - font-size: 12rem; - margin-left: 10vw; - } - h2 img { - top: 5vw; - right: 10vw; - } +@media (min-width: 1536px) /* 2xl */ { + h2 { + font-size: 12rem; } + h2 img { + top: 5vw; + right: 10vw; + } +} diff --git a/src/pages/api/auth/signin.ts b/src/pages/api/auth/signin.ts index 21086a3..e7f1b77 100644 --- a/src/pages/api/auth/signin.ts +++ b/src/pages/api/auth/signin.ts @@ -3,8 +3,6 @@ export const prerender = false; import type { APIRoute } from "astro"; import { supabase } from "../../../lib/supabase"; -const host = import.meta.env.HOST; - export const GET: APIRoute = async ({ request, cookies, redirect }) => { const { data, error } = await supabase.auth.signInWithOAuth({