-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6691a5f
commit 0625104
Showing
4 changed files
with
181 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/app/pages/Designathons/Designathon24/assets/graphics/faq/down_carat.svg
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
120
src/app/pages/Designathons/Designathon24/components/FAQ/FAQ.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.