generated from gdsc-nits-org/react-js-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from gdsc-nits-org/SpeakJudge
Judge Card Added
- Loading branch information
Showing
12 changed files
with
528 additions
and
16 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
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,90 @@ | ||
import styles from "./JudgeCard.module.scss"; | ||
|
||
const Card = ({ image, name, role, data }) => { | ||
return ( | ||
<div className={styles.flip_card}> | ||
<div className={styles.flip_card_front}> | ||
<div className={styles.flip_card_inner}> | ||
<img src={image} className={styles.speaker_image} alt={name} /> | ||
<h1 className={styles.name}>{name}</h1> | ||
<h2 className={styles.role}>{role}</h2> | ||
</div> | ||
</div> | ||
<div className={styles.flip_card_back}> | ||
<div className={styles.flip_card_inner}> | ||
<ul className={styles.data}> | ||
{data.map((info) => ( | ||
<li key={image}>{info}</li> | ||
))} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const JudgeCard = () => { | ||
const SWJudge = { | ||
id: 1, | ||
image: | ||
"https://res.cloudinary.com/dnuhxx8aa/image/upload/v1705826342/utkarsh_ekhwgs.webp", | ||
name: "Utkarsh Gupta", | ||
role: "SDE @Graviton", | ||
data: "AIR 1 @Google Kickstart; Ex AIR 1 @Codeforces; Grandmaster @Codeforces; 7 Star on CodeChef; ICPC '21 World Finalist", | ||
}; | ||
const UIUXJudges = [ | ||
{ | ||
id: 1, | ||
image: | ||
"https://res.cloudinary.com/dnuhxx8aa/image/upload/v1705826342/utkarsh_ekhwgs.webp", | ||
name: "Utkarsh Gupta", | ||
role: "SDE @Graviton", | ||
data: "AIR 1 @Google Kickstart; Ex AIR 1 @Codeforces; Grandmaster @Codeforces; 7 Star on CodeChef; ICPC '21 World Finalist", | ||
}, | ||
{ | ||
id: 2, | ||
image: | ||
"https://res.cloudinary.com/dnuhxx8aa/image/upload/v1705826158/harsh_mu4xlo.webp", | ||
name: "Harsh Mishra", | ||
role: "Open Source Engineer @LocalStack", | ||
data: "Google Summer of Code '21; Google Season of Docs '21; AWS Community Builder; Open Source Contributor @moja global", | ||
}, | ||
]; | ||
return ( | ||
<section className={styles.section} id="speakers"> | ||
<h1 className={styles.heading}>software tracU judge</h1> | ||
<div className={styles.SWjudge}> | ||
<div | ||
className={styles.gridContainer} | ||
style={{ position: "relative", left: "25%" }} | ||
> | ||
<Card | ||
image={SWJudge.image} | ||
name={SWJudge.name} | ||
role={SWJudge.role} | ||
data={SWJudge.data.split(";")} | ||
/> | ||
</div> | ||
<h1 className={styles.heading} style={{ marginTop: "2rem" }}> | ||
ui/ux judges | ||
</h1> | ||
</div> | ||
<div className={styles.gridContainer}> | ||
{UIUXJudges.map((judge) => { | ||
const dataList = judge.data.split(";"); | ||
return ( | ||
<Card | ||
key={judge.id} | ||
image={judge.image} | ||
name={judge.name} | ||
role={judge.role} | ||
data={dataList} | ||
/> | ||
); | ||
})} | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default JudgeCard; |
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,162 @@ | ||
.section { | ||
text-align: center; | ||
color: white; | ||
padding-top: 2rem; | ||
} | ||
|
||
.gridContainer { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
padding: 1rem 2rem; | ||
gap: 1.5rem; | ||
justify-items: center; | ||
} | ||
|
||
.heading { | ||
font-family: "StarJedi"; | ||
color: #f2c300; | ||
font-size: 3rem; | ||
margin-bottom: 3rem; | ||
} | ||
|
||
.speaker_image { | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 1rem; | ||
} | ||
|
||
.data { | ||
font-size: 1rem; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
padding: 2.5rem; | ||
} | ||
|
||
.name { | ||
font-size: 1.5rem; | ||
} | ||
|
||
.role { | ||
font-size: 1rem; | ||
} | ||
|
||
.flip_card { | ||
border-radius: 1rem; | ||
transform-style: preserve-3d; | ||
perspective: 1000px; | ||
width: 50%; | ||
} | ||
|
||
@media screen and (max-width: 600px) { | ||
.flip_card { | ||
width: 100%; | ||
} | ||
|
||
.name { | ||
font-size: 1rem; | ||
} | ||
|
||
.role { | ||
font-size: 0.8rem; | ||
height: 0rem; | ||
} | ||
|
||
.data { | ||
font-size: 0.7rem; | ||
} | ||
|
||
.heading { | ||
margin-bottom: 1rem; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 850px) and (min-width: 601px) { | ||
.flip_card { | ||
width: 50%; | ||
} | ||
|
||
.name { | ||
font-size: 1rem; | ||
} | ||
|
||
.role { | ||
font-size: 0.8rem; | ||
height: 0rem; | ||
} | ||
|
||
.data { | ||
font-size: 0.7rem; | ||
} | ||
|
||
.heading { | ||
margin-bottom: 1rem; | ||
} | ||
} | ||
|
||
.flip_card_front, | ||
.flip_card_back { | ||
background-size: cover; | ||
background-position: center; | ||
transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1); | ||
transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1); | ||
backface-visibility: hidden; | ||
width: 100%; | ||
height: 425px; | ||
border-radius: 0.6rem; | ||
background-color: black; | ||
color: #fff; | ||
font-size: 1.5rem; | ||
} | ||
|
||
.flip_card_front::after, | ||
.flip_card_back::after { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
z-index: 1; | ||
width: 100%; | ||
height: 100%; | ||
content: ""; | ||
display: block; | ||
opacity: 1; | ||
backface-visibility: hidden; | ||
border-radius: 0.6rem; | ||
} | ||
|
||
.flip_card_inner { | ||
transform: translateY(-50%) translateZ(60px) scale(0.94); | ||
position: absolute; | ||
top: 50%; | ||
left: 0; | ||
width: 100%; | ||
padding: 0rem; | ||
box-sizing: border-box; | ||
outline: 1px solid transparent; | ||
background-color: black; | ||
perspective: inherit; | ||
z-index: 2; | ||
} | ||
|
||
.flip_card_back { | ||
transform: rotateY(180deg); | ||
transform-style: preserve-3d; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: black; | ||
border: 2px solid white; | ||
} | ||
|
||
.flip_card_front, | ||
.flip_card:hover .flip_card_back { | ||
transform: rotateY(0deg); | ||
transform-style: preserve-3d; | ||
} | ||
|
||
.flip_card:hover .flip_card_front { | ||
transform: rotateY(-180deg); | ||
transform-style: preserve-3d; | ||
} |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
.cardBox { | ||
margin: auto; | ||
margin-bottom: 2rem; | ||
width: 18rem; | ||
height: 23rem; | ||
border: white; | ||
|
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
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
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
Oops, something went wrong.