From c110181d74d57c082d3b784886abcf100495f300 Mon Sep 17 00:00:00 2001 From: phthallo Date: Wed, 22 Jan 2025 22:33:57 -0500 Subject: [PATCH] feat: polaroid section fix: desktop screens, kind of fix: buttons, kind of --- .../customButton.js | 15 ++- .../congressional-app-challenge/polaroid.js | 16 ++++ .../congressional-app-challenge/screen.js | 24 ++++- pages/congressional-app-challenge.js | 91 +++++++++++++------ public/congressional-app-challenge/notify.svg | 4 + 5 files changed, 112 insertions(+), 38 deletions(-) create mode 100644 components/congressional-app-challenge/polaroid.js create mode 100644 public/congressional-app-challenge/notify.svg diff --git a/components/congressional-app-challenge/customButton.js b/components/congressional-app-challenge/customButton.js index 0929d27c..616dc5c1 100644 --- a/components/congressional-app-challenge/customButton.js +++ b/components/congressional-app-challenge/customButton.js @@ -1,24 +1,29 @@ -import { Button } from 'theme-ui'; +import { Button, Box, Text} from 'theme-ui'; export default function CustomButton({ text, link, color, - textColor // 🤓 + textColor, // 🤓 + sxProps }){ return ( + + )} \ No newline at end of file diff --git a/components/congressional-app-challenge/polaroid.js b/components/congressional-app-challenge/polaroid.js new file mode 100644 index 00000000..1e7ff8c1 --- /dev/null +++ b/components/congressional-app-challenge/polaroid.js @@ -0,0 +1,16 @@ +import { Box, Text, Image } from 'theme-ui'; + +export default function Polaroid({ + image, + caption, + sxProps +}){ + return ( + + + + {caption} + + + ) +} \ No newline at end of file diff --git a/components/congressional-app-challenge/screen.js b/components/congressional-app-challenge/screen.js index 2436a4aa..95376096 100644 --- a/components/congressional-app-challenge/screen.js +++ b/components/congressional-app-challenge/screen.js @@ -10,11 +10,25 @@ const Screen = ({ backgroundImage }) => { border: "2px solid", borderRadius: "6px 6px 0 0", height:'7vh', - backgroundColor: "white"}}> - - - - + backgroundColor: "white", + alignItems: "center", + display: "flex", + flexDirection: "row"}}> + + + + + + + + Hack Club - Congressional App Challenge { +// const [timer, setTimer] = useState("00:00:00") +//} function Page({ carouselCards @@ -99,24 +106,26 @@ function Page({ alignItems: "space-between", mx: "5", }}> - - + + Hack Club presents the - Congressional App Challenge - - - + Congressional App Challenge + + + + + - + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. - sfdkldsjfl + + + + + Join a community of teen hackers - - sfdkldsjfl - + + + + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. @@ -142,13 +164,26 @@ function Page({ - Meet past winners + Meet past winners - - + + + submissions for the 2025 Congressional App Challenge close + What are you waiting for? + + + + + + +