-
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.
Merge pull request #12 from mvhacks/infopage
Adding info page
- Loading branch information
Showing
4 changed files
with
144 additions
and
4 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
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,139 @@ | ||
import "../App.css"; | ||
import Typography from '@mui/joy/Typography'; | ||
import Card from '@mui/joy/Card'; | ||
import CardContent from '@mui/joy/CardContent'; | ||
import React, {useState, useEffect} from 'react'; | ||
|
||
export default function InfoPage() { | ||
const [isMobile, setIsMobile] = useState<Boolean>(false); | ||
|
||
useEffect(() => { | ||
const handleResize = () => { | ||
setIsMobile(window.innerWidth < 830); // Adjust the breakpoint as needed | ||
}; | ||
|
||
window.addEventListener('resize', handleResize); | ||
handleResize(); // Initial check on component mount | ||
|
||
return () => { | ||
window.removeEventListener('resize', handleResize); | ||
}; | ||
}, []); | ||
return ( | ||
<div> | ||
{!isMobile && (<div style={{marginTop: "100px"}}> | ||
<Card | ||
orientation="horizontal" | ||
size="md" | ||
variant="outlined" | ||
sx={{ | ||
"--Card-padding": "16px", | ||
"--Card-radius": "26px", | ||
display: "flex", | ||
flexDirection: "column", | ||
width: "50%", | ||
backgroundColor: "black" | ||
}}> | ||
<CardContent sx={{alignItems: "center"}}> | ||
<Typography textColor={"#c8acd4"} level="h2">Where Boundaries Fade and Ideas Flourish</Typography> | ||
<Typography textColor={"common.white"}>MVHacks is proud to give a platform for aspiring tech enthusiasts to grow and learn by making unique projects that progress society.</Typography> | ||
</CardContent> | ||
</Card> | ||
<Card | ||
orientation="horizontal" | ||
size="md" | ||
variant="outlined" | ||
sx={{ | ||
"--Card-padding": "16px", | ||
"--Card-radius": "26px", | ||
display: "flex", | ||
flexDirection: "column", | ||
width: "50%", | ||
marginLeft: "48%", | ||
marginTop: "100px", | ||
backgroundColor: "black" | ||
}}> | ||
<CardContent sx={{alignItems: "center"}}> | ||
<Typography textColor={"#c8acd4"} level="h2">Workshops and advice to help you grow</Typography> | ||
<Typography textColor={"common.white"}>With specialized judges that are currently in the tech industry, at MVHacks you'll receive the best feedback to help you improve.</Typography> | ||
</CardContent> | ||
</Card> | ||
<Card | ||
orientation="horizontal" | ||
size="md" | ||
variant="outlined" | ||
sx={{ | ||
"--Card-padding": "16px", | ||
"--Card-radius": "26px", | ||
display: "flex", | ||
flexDirection: "column", | ||
marginTop: "100px", | ||
width: "50%", | ||
backgroundColor: "black" | ||
}} | ||
> | ||
<CardContent sx={{alignItems: "center"}}> | ||
<Typography textColor={"#c8acd4"} level="h2">Real world collaboration and innovation</Typography> | ||
<Typography textColor={"common.white"}>The MVHacks schedule is currently in development, but expect team-building exercises, workshops, and challenges!</Typography> | ||
</CardContent> | ||
</Card> | ||
</div>)} | ||
{isMobile && (<div style={{marginTop: "100px"}}> | ||
<Card | ||
orientation="horizontal" | ||
size="md" | ||
variant="outlined" | ||
sx={{ | ||
"--Card-padding": "16px", | ||
"--Card-radius": "26px", | ||
display: "flex", | ||
flexDirection: "column", | ||
backgroundColor: "black", | ||
padding: "5%" | ||
}}> | ||
<CardContent sx={{alignItems: "center"}}> | ||
<Typography textColor={"#c8acd4"} level="h4">Where Boundaries Fade and Ideas Flourish</Typography> | ||
<Typography textColor={"common.white"} level="body-md">MVHacks is proud to give a platform for aspiring tech enthusiasts to grow and learn by making unique projects that progress society.</Typography> | ||
</CardContent> | ||
</Card> | ||
<Card | ||
orientation="horizontal" | ||
size="md" | ||
variant="outlined" | ||
sx={{ | ||
"--Card-padding": "16px", | ||
"--Card-radius": "26px", | ||
display: "flex", | ||
flexDirection: "column", | ||
marginTop: "50px", | ||
backgroundColor: "black", | ||
padding: "5%" | ||
}}> | ||
<CardContent sx={{alignItems: "center"}}> | ||
<Typography textColor={"#c8acd4"} level="h4">Workshops and advice to help you grow</Typography> | ||
<Typography textColor={"common.white"} level="body-md">With specialized judges that are currently in the tech industry, at MVHacks you'll receive the best feedback to help you improve.</Typography> | ||
</CardContent> | ||
</Card> | ||
<Card | ||
orientation="horizontal" | ||
size="md" | ||
variant="outlined" | ||
sx={{ | ||
"--Card-padding": "16px", | ||
"--Card-radius": "26px", | ||
display: "flex", | ||
flexDirection: "column", | ||
marginTop: "50px", | ||
backgroundColor: "black", | ||
padding: "5%" | ||
}} | ||
> | ||
<CardContent sx={{alignItems: "center"}}> | ||
<Typography textColor={"#c8acd4"} level="h4">Real world collaboration and innovation</Typography> | ||
<Typography textColor={"common.white"} level="body-md">The MVHacks schedule is currently in development, but expect team-building exercises, workshops, and challenges!</Typography> | ||
</CardContent> | ||
</Card> | ||
</div>)} | ||
</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