Skip to content

Commit

Permalink
feat: created sponsor DA section on tech pg
Browse files Browse the repository at this point in the history
  • Loading branch information
littilemike11 committed Dec 19, 2024
1 parent a26f049 commit a968dfb
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 16 deletions.
Binary file added public/images/tech/Sponsor-DA-Tech.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 20 additions & 16 deletions src/app/tech/page.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
import HeroSection from "@/components/tech/HeroSection";
import SponsorSection from "@/components/tech/SponsorSection";
import { Box, Flex } from "@radix-ui/themes";

const page = () => {
return (
<Flex
position="relative"
width="100%"
direction="column"
align="center"
justify="start"
gap={{ initial: "4", lg: "6", xl: "9" }}
>
<Box
<>
<Flex
position="relative"
width="100%"
position="absolute"
inset="0"
height="450px"
className="bg-navy-900 -z-10"
/>
direction="column"
align="center"
justify="start"
gap={{ initial: "4", lg: "6", xl: "9" }}
>
<Box
width="100%"
position="absolute"
inset="0"
height="450px"
className="bg-navy-900 -z-10"
/>

<HeroSection />
</Flex>
<HeroSection />
<SponsorSection />
</Flex>
</>
);
};

Expand Down
89 changes: 89 additions & 0 deletions src/components/tech/SponsorSection.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
import {
Container,
Flex,
Box,
Heading,
Text,
Strong,
Grid,
Button,
} from "@radix-ui/themes";
import Image from "next/image";

const SponsorSection = () => {
return (
<Container size={{ xs: "1", sm: "2", md: "3", lg: "4" }} align="center">
<Flex width="100%" direction="column" align="center" justify="center">
{/* is there a global title color/theme rather than hard coding it in? */}
<Heading align={"center"} size={"8"} className="text-[#051E5E]">
Sponsor Distribute Aid's Tech Team
</Heading>
<Grid
columns={{ initial: "1", sm: "2" }}
py={"6"}
gap={"4"}
width={"auto"}
>
{/* images */}
<Flex position={"relative"} align={"center"}>
<Box
display={{ initial: "none", sm: "block" }}
ml={"-100%"}
width={"150%"}
height={"100%"}
className="bg-[#1D2F73] rounded-r-[32px]"
></Box>
<Box position={{ sm: "absolute" }} z-index={"1"}>
<Image
className="rounded-l-[32px]"
width={"540"}
height={"340"}
src={"/images/tech/Sponsor-DA-Tech.jpg"}
alt="img of hands coming together"
></Image>
</Box>
</Flex>
{/* text + button */}
<Flex
direction={"column"}
align={{ initial: "center", sm: "start" }}
px={"2"}
gap={"6"}
>
<Text size={"4"}>
<Strong>
Our tech team, including Open Source Explorers, runs entirely on
volunteer work.
</Strong>{" "}
Funding allows us to create a stable base for our team, cover the
cost of the tools we use to do our work and make faster progress
on the issues we work on. This allows us to better support
Distribute Aid directly.
</Text>

<Text size={"4"}>
Ultimately, our tech-based solutions allow workers from the entire
global aid community to act faster and more efficiently. Funding
also allows us to run more Open Source Explorers cohorts, which
benefits the OSS ecosystem at large. If you’re interested in
becoming a sponsor, please get in touch with us.
</Text>

<Text size={"4"}>
<Strong>
If you’re interested in becoming a sponsor, please get in touch
with us.
</Strong>{" "}
</Text>

<Button size="4" className=" w-max font-normal cursor-pointer">
Become A Sponsor
</Button>
</Flex>
</Grid>
</Flex>
</Container>
);
};

export default SponsorSection;

0 comments on commit a968dfb

Please sign in to comment.