Skip to content

Commit

Permalink
feat: update des24 faq (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 authored Mar 29, 2024
1 parent 6691a5f commit 0625104
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 103 deletions.
1 change: 0 additions & 1 deletion src/app/controllers/useScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function useScroll() {
behavior: "smooth",
});
}

setScrollableElements(document.getElementsByClassName("wait"));
window.addEventListener("scroll", pageScroll);
pageScroll();
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 100 additions & 20 deletions src/app/pages/Designathons/Designathon24/components/FAQ/FAQ.module.scss
Original file line number Diff line number Diff line change
@@ -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;
}
}
Loading

0 comments on commit 0625104

Please sign in to comment.