-
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.
updates and added code to the home and faq pages
- Loading branch information
Showing
10 changed files
with
192 additions
and
103 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
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,2 +1,32 @@ | ||
$desktop-padding: 8vw; | ||
$heading-font: "Ridge Bold", sans-serif; | ||
$text-font: "NB International", sans-serif; | ||
|
||
@font-face { | ||
font-family: "Ridge Bold"; | ||
src: url("../../assets/fonts/ridge-bold-oblique.otf") format("opentype"); | ||
} | ||
|
||
@font-face { | ||
font-family: "NB International"; | ||
src: url("../../assets/fonts/NB-International-Regular.ttf") format("truetype"); | ||
} | ||
|
||
h2 { | ||
font-family: "Ridge Bold"; | ||
font-size: 1.5rem; | ||
margin: 0; | ||
} | ||
|
||
.faq { | ||
height: 100%; | ||
overflow: hidden; | ||
display: flex; | ||
align-items: center; | ||
|
||
> .faq-container { | ||
p { | ||
font-family: $text-font; | ||
} | ||
} | ||
} |
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,9 +1,78 @@ | ||
/* eslint-disable react/jsx-key */ | ||
import "./FAQ.scss"; | ||
import { useRef } from "react"; | ||
|
||
const FaqList1 = [ | ||
{ | ||
question: "What is a design sprint?", | ||
answer: | ||
"A design sprint is a time-constrained and structured process used by teams to generate new ideas and solve complex problems.", | ||
}, | ||
{ | ||
question: "Who can participate?", | ||
answer: | ||
"Registration is open to <b>UCSD students</b> of all levels and backgrounds. We encourage everyone to apply and share their own unique perspectives, knowledge, and skills!", | ||
}, | ||
{ | ||
question: "How big can my team be?", | ||
answer: | ||
"Teams can be a minimum of 3 and a maximum of 4. Teams will not be assigned, so feel free to make your own in advance or on the day of the event. You can also join one on Design Co’s Discord channel #frontiers-24.", | ||
}, | ||
{ | ||
question: "When is the deadline to register?", | ||
answer: | ||
"Registration closes <b>Friday, April 5th at 11:59 PM</b>. We will cap the event at 60 participants, so register early!", | ||
}, | ||
]; | ||
|
||
const FaqList2 = [ | ||
{ | ||
question: "Where is the Design and Innovation Building?", | ||
answer: | ||
"DIB is located next to the Pepper Canyon Trolley Station, with entrances located across from the Structural Materials and Engineering building or next to the Regents Loop shuttle stop. Design Frontiers will be hosted in <b>Room 208</b> on the second floor.", | ||
}, | ||
{ | ||
question: | ||
"How should I prepare for Design Frontiers if I have no design experience?", | ||
answer: | ||
"We’ll be hosting a Crash Course on Design Frontiers GBM workshop on Wednesday, April 10th from 6:30-8 PM in DIB Room 208!", | ||
}, | ||
{ | ||
question: "What should I expect if there is a waitlist?", | ||
answer: | ||
"Individuals placed on the waitlist cannot be guaranteed participation in Design Frontiers. However, if an accepted participant drops out, we will let you know as soon as possible that you will be able to participate!", | ||
}, | ||
]; | ||
|
||
export default function FAQ() { | ||
const faq1Ref = useRef(null); | ||
const faq2Ref = useRef(null); | ||
const faq1ContainerRef = useRef(null); | ||
|
||
return ( | ||
<section className="faq"> | ||
<h2>FAQ</h2> | ||
</section> | ||
<div className="faq-stuff"> | ||
<section className="faq" ref={faq1ContainerRef}> | ||
<div ref={faq1Ref} className="faq-container"> | ||
<h2>FAQ</h2> | ||
{FaqList1.map((item) => ( | ||
<div className="block"> | ||
<h4>{item.question}</h4> | ||
<p dangerouslySetInnerHTML={{ __html: item.answer }} /> | ||
</div> | ||
))} | ||
</div> | ||
</section> | ||
<section className="faq"> | ||
<div ref={faq2Ref} className="faq-container"> | ||
<h2>FAQ</h2> | ||
{FaqList2.map((item) => ( | ||
<div className="block"> | ||
<h4>{item.question}</h4> | ||
<p dangerouslySetInnerHTML={{ __html: item.answer }} /> | ||
</div> | ||
))} | ||
</div> | ||
</section> | ||
</div> | ||
); | ||
} |
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,4 +1,46 @@ | ||
$heading-color: #ff671e; | ||
$text-color: white; | ||
|
||
@font-face { | ||
font-family: "Neue Plak"; | ||
src: url("../../assets/fonts/Neue-Plak-Extended-Bold.ttf") format("truetype"); | ||
} | ||
|
||
@font-face { | ||
font-family: "Ridge Bold"; | ||
src: url("../../assets/fonts/ridge-bold-oblique.otf") format("opentype"); | ||
} | ||
|
||
@font-face { | ||
font-family: "NB International"; | ||
src: url("../../assets/fonts/NB-International-Regular.ttf") format("truetype"); | ||
} | ||
|
||
.home { | ||
display: grid; | ||
place-items: center; | ||
margin: 0; | ||
} | ||
|
||
h2 { | ||
color: $heading-color; | ||
} | ||
|
||
/* REGISTER BUTTON */ | ||
.button { | ||
background: $heading-color; | ||
display: inline-block; | ||
font-size: 1.5em; | ||
padding: 0.5em 2em; | ||
text-decoration: none; | ||
color: $text-color; | ||
} | ||
|
||
.parallelogram { | ||
transform: skew(-20deg); | ||
} | ||
|
||
.skew-fix { | ||
display: inline-block; | ||
transform: skew(20deg); | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.