diff --git a/src/app/controllers/useScroll.js b/src/app/controllers/useScroll.js index a325cc84..3546e426 100644 --- a/src/app/controllers/useScroll.js +++ b/src/app/controllers/useScroll.js @@ -20,7 +20,6 @@ function useScroll() { behavior: "smooth", }); } - setScrollableElements(document.getElementsByClassName("wait")); window.addEventListener("scroll", pageScroll); pageScroll(); diff --git a/src/app/pages/Designathons/Designathon24/assets/graphics/faq/down_carat.svg b/src/app/pages/Designathons/Designathon24/assets/graphics/faq/down_carat.svg new file mode 100644 index 00000000..988e8d9d --- /dev/null +++ b/src/app/pages/Designathons/Designathon24/assets/graphics/faq/down_carat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/app/pages/Designathons/Designathon24/components/FAQ/FAQ.module.scss b/src/app/pages/Designathons/Designathon24/components/FAQ/FAQ.module.scss index deabbb8a..cbca777e 100644 --- a/src/app/pages/Designathons/Designathon24/components/FAQ/FAQ.module.scss +++ b/src/app/pages/Designathons/Designathon24/components/FAQ/FAQ.module.scss @@ -1,32 +1,112 @@ .container { - display: grid; - grid-template-columns: 1fr; - gap: 40px; + position: relative; + background-color: var(--des24-cream); + color: var(--des24-black); - @media screen and (min-width: 900px) { - grid-template-columns: 240px 1fr; + padding: 5rem 2rem; + + @media screen and (min-width: 768px) { + padding: 6rem 5rem; } - @media screen and (min-width: 1000px) { - grid-template-columns: 300px 1fr; + .heading { + color: var(--des24-hot-pink); + font-size: 3rem; + font-weight: 700; + margin-bottom: 2rem; + + @media screen and (min-width: 640px) { + font-size: 5rem; + margin-bottom: 4rem; + } + + @media screen and (min-width: 1280px) { + font-size: 6rem; + } } - & .question { + .qa_container { display: grid; - cursor: pointer; - grid-template-columns: auto 1fr; - margin: 8px; - padding: 24px; - border-radius: 12px; - background-color: white; - transition: background-color 250ms; - - &.opened { - border: 2px solid var(--silver); + grid-template-columns: 1fr; + gap: 1.5rem; + + @media screen and (min-width: 768px) { + gap: 3rem; } - &:hover { - background-color: var(--silver); + .qa_item { + display: flex; + flex-direction: column; + cursor: pointer; + border-radius: 12px; + + .question { + display: flex; + + font-size: 1.5rem; + cursor: pointer; + + @media screen and (min-width: 768px) { + font-size: 2rem; + } + } + + .down_carat { + width: fit-content; + height: 1rem; + + margin: auto 0; + margin-right: 1rem; + + cursor: "pointer"; + + @media screen and (min-width: 768px) { + height: 2rem; + } + } } } } + +.answer_tag { + margin: 1.25rem 0 0; + padding: 1rem; + cursor: pointer; + + background-color: #ffe5e5; + + animation: fadeIn 0.5s ease-in; + + font-size: 1rem; + line-height: 1.5rem; + + border-left: 2.5rem solid var(--des24-peach); + border-radius: 0.25rem; + box-shadow: 0px 4px 6px 2px #00000030; + + p { + line-height: 1.5rem; + + @media screen and (min-width: 768px) { + line-height: 2.5rem; + } + } + + @media screen and (min-width: 768px) { + padding: 2rem; + + font-size: 1.25rem; + line-height: 2.5rem; + + border-left: 5rem solid var(--des24-peach); + } +} + +@keyframes fadeIn { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} diff --git a/src/app/pages/Designathons/Designathon24/components/FAQ/index.jsx b/src/app/pages/Designathons/Designathon24/components/FAQ/index.jsx index 97355707..5d161a42 100644 --- a/src/app/pages/Designathons/Designathon24/components/FAQ/index.jsx +++ b/src/app/pages/Designathons/Designathon24/components/FAQ/index.jsx @@ -1,15 +1,15 @@ -import { Text } from "app/components"; -import { Section, Icon } from "app/Symbols"; -import clsx from "clsx"; -import { useCallback, useState } from "react"; import cn from "./FAQ.module.scss"; +import { useCallback, useState } from "react"; + +import down_carat from "../../assets/graphics/faq/down_carat.svg"; + const FAQ = () => { return ( -
- FAQ +
-
+

FAQ

+ {/*
Join the live conversation on the{" "} { {" "} for more help! -
-
+
*/} + +
{[ { q: "Why should I join?", @@ -32,9 +33,10 @@ const FAQ = () => { { q: "Who can attend?", a: ( - - Any undergraduate student within the United States (with an - associated institutional email) is able to{" "} +

+ Any undergraduate student within the United + States (with an associated institutional + email) is able to{" "} { > sign up {" "} - and attend. If you do not qualify, you will not be allowed to - participate in the event. - + and attend. If you do not qualify, you will + not be allowed to participate in the event. +

), }, { q: "How do I sign up?", a: ( - +

Apply through our{" "} { > Participant Sign-up Form. - +

), }, { @@ -79,7 +81,7 @@ const FAQ = () => { { q: "When is the registration deadline?", a: ( - +

Our{" "} { > participant sign-up form {" "} - has been extended until February 19th at 11:59pm (PST) - + has been extended until February 19th at + 11:59pm (PST) +

), }, { q: "How do I prepare?", a: ( - - During the event, we will be hosting workshops for anyone new - to design thinking or the design process. We highly encourage - getting the hang of Figma, Sketch, Adobe XD, or the - prototyping tool of your choice. You are also free to look - through our Design at UCI{" "} +

+ During the event, we will be hosting + workshops for anyone new to design thinking + or the design process. We highly encourage + getting the hang of Figma, Sketch, Adobe XD, + or the prototyping tool of your choice. You + are also free to look through our Design at + UCI{" "} { > Resources {" "} - page for extra information. Want to go the extra mile? Show - your excitement by turning on your camera and adding our{" "} + page for extra information. Want to go the + extra mile? Show your excitement by turning + on your camera and adding our{" "} { > You Belong Here Zoom backgrounds. - +

), }, { q: "How do teams work?", a: ( - - You have the option to (1) go solo, or (2) form a team of up - to 4 people total. You may list your team members in the - sign-up form, but it’s okay if plans change! Take advantage of - our #find-a-team{" "} +

+ You have the option to (1) go solo, or (2) + form a team of up to 4 people total. You may + list your team members in the sign-up form, + but it’s okay if plans change! Take + advantage of our #find-a-team{" "} { > Discord channel {" "} - to meet potential team members. We will consider your final - team members to be the ones indicated when submitting your - project. - + to meet potential team members. We will + consider your final team members to be the + ones indicated when submitting your project. +

), }, { q: "What if I don’t have a team?", a: ( - - Our #find-a-team Discord channel is the perfect place for - anyone looking for a team at our Designathon. If you haven’t - already, join our You Belong Here{" "} +

+ Our #find-a-team Discord channel is the + perfect place for anyone looking for a team + at our Designathon. If you haven’t already, + join our You Belong Here{" "} { Discord channel {" "} . Solo participants are also allowed. - +

), }, { q: "Where do I submit my project?", a: ( - - You will submit your final, working prototype to the{" "} +

+ You will submit your final, working + prototype to the{" "} { > Submission Form {" "} - (opens during event). Only one person on your team should - submit a form, which will be on behalf of all contributors. - + (opens during event). Only one person on + your team should submit a form, which will + be on behalf of all contributors. +

), }, ].map((item) => { return ( -

{item.q}

-
- } - opened={ -
-

{item.q}

- - {item.a} - -
- } + question={item.q} + answer={item.a} key={item.q} /> ); })}
-
+ ); }; -const Toggle = ({ opened, closed }) => { +const AnswerTag = ({ answer }) => { + return
{answer}
; +}; + +const Toggle = ({ question, answer }) => { const [open, setOpen] = useState(false); const toggleExpand = useCallback(() => { @@ -229,20 +227,20 @@ const Toggle = ({ opened, closed }) => { }, []); return ( -
- - {open ? opened : closed} +
+
+ down carat icon for accordion menu item + {question} +
+ + {open ? : null}
); };