Skip to content

Commit

Permalink
Finalizing gifting page
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljolley committed Dec 2, 2024
1 parent 478620d commit 869c729
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 70 deletions.
10 changes: 6 additions & 4 deletions src/components/giving/Gifts.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/components/giving/Giving.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -110,6 +110,7 @@ strong {
@media (min-width: 768px) /* md */ {
.wrapper {
flex-direction: row;
max-width: 75vw;
}
img {
top: -12vw;
Expand Down
4 changes: 3 additions & 1 deletion src/components/giving/GivingForm.astro
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const { user } = Astro.props;
</label><br />
<input name="user" value={user?.nickname}/>
</p>

<p>
<label for="firstName">First Name</label><br />
<input
Expand Down Expand Up @@ -186,6 +185,9 @@ input, select {
select option {
color: var(--dark);
}
button {
margin: 1rem 0;
}

@media (min-width: 640px) /* sm */ {
h2 {
Expand Down
16 changes: 9 additions & 7 deletions src/components/giving/Leaderboard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ const leaders = await getGifters();
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0;
gap: 2rem;
gap: 1.5rem;
margin: 2rem 0;
}
aside {
width: 100%;
z-index: 5;
}
h2 {
font-family: var(--font-anton);
font-size: 10rem;
font-size: 8rem;
color: var(--yellow);
text-transform: uppercase;
position: relative;
Expand Down Expand Up @@ -152,9 +152,6 @@ const leaders = await getGifters();
}

@media (min-width: 768px) /* md */ {
.wrapper {
flex-direction: row;
}
svg {
top: -12vw;
right: -4vw;
Expand All @@ -166,6 +163,9 @@ const leaders = await getGifters();
}

@media (min-width: 1024px) /* lg */ {
.wrapper {
flex-direction: row;
}
svg {
top: -10vw;
right: -8vw;
Expand All @@ -176,6 +176,9 @@ const leaders = await getGifters();
}

@media (min-width: 1280px) /* xl */ {
.wrapper {
max-width: 75vw;
}
svg {
top: -9vw;
right: 0vw;
Expand All @@ -195,6 +198,5 @@ const leaders = await getGifters();
}
}


</style>

114 changes: 60 additions & 54 deletions src/components/giving/SeasonOfGiving.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}
</style>
2 changes: 0 additions & 2 deletions src/pages/api/auth/signin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 869c729

Please sign in to comment.