-
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.
wrote component for the judges page, added more code to the FAQ and h…
…ome pages
- Loading branch information
Showing
10 changed files
with
102 additions
and
29 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.judge-image { | ||
mask: url(#trapezoidMask); | ||
-webkit-mask: url(#trapezoidMask); | ||
} | ||
|
||
.judge-card { | ||
display: flex; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import "./JudgeComponent.scss"; | ||
|
||
interface JudgeProps { | ||
name: string; | ||
pronouns: string; | ||
position: string; | ||
funFact: string; | ||
} | ||
|
||
const JudgeComponent = (props: JudgeProps) => { | ||
return ( | ||
<div className="judge-card"> | ||
<svg | ||
width="161" | ||
height="160" | ||
viewBox="0 0 161 160" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<defs> | ||
<mask id="trapezoidMask"> | ||
<rect width="161" height="160" fill="black" /> | ||
<path | ||
d="M0 159.231L27.3357 0H161L133.664 159.231H0Z" | ||
fill="white" | ||
/> | ||
</mask> | ||
</defs> | ||
<rect | ||
width="161" | ||
height="160" | ||
mask="url(#trapezoidMask)" | ||
fill="url(#imagePattern)" | ||
/> | ||
<pattern | ||
id="imagePattern" | ||
patternUnits="userSpaceOnUse" | ||
width="161" | ||
height="160" | ||
> | ||
<image | ||
className="judge-image" | ||
href="/images/duck.jpg" | ||
x="0" | ||
y="0" | ||
width="161" | ||
height="160" | ||
/> | ||
</pattern> | ||
</svg> | ||
<div className="judge-info"> | ||
<h3>Name: {props.name}</h3> | ||
<p>Pronouns: {props.pronouns}</p> | ||
<p>Position: {props.position}</p> | ||
<p>Fun Fact: {props.funFact}</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default JudgeComponent; |
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,9 @@ | ||
$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; | ||
} | ||
.faq-container { | ||
} | ||
} |
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
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,6 @@ | ||
.judges { | ||
height: 100%; | ||
overflow: hidden; | ||
display: flex; | ||
flex-direction: column; | ||
} |
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,28 @@ | ||
import "./Judges.scss"; | ||
import JudgeComponent from "../../components/JudgeComponent/JudgeComponent"; | ||
|
||
export default function Judges() { | ||
return ( | ||
<section className="judges"> | ||
<h2>Judges</h2> | ||
<JudgeComponent | ||
name="First Last" | ||
pronouns="They/Them" | ||
position="Position @ Company" | ||
funFact="I'm left handed!" | ||
/> | ||
<JudgeComponent | ||
name="First Last" | ||
pronouns="They/Them" | ||
position="Position @ Company" | ||
funFact="I'm left handed!" | ||
/> | ||
<JudgeComponent | ||
name="First Last" | ||
pronouns="They/Them" | ||
position="Position @ Company" | ||
funFact="I'm left handed!" | ||
/> | ||
</section> | ||
); | ||
} |
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