diff --git a/src/App.css b/src/App.css index afc91c2..26396b8 100644 --- a/src/App.css +++ b/src/App.css @@ -48,8 +48,8 @@ h2 { } .info { - height: 600px; - background-color:#61dafb; + /* height: 600px; + background-color:#000000; */ } .schedule { diff --git a/src/App.tsx b/src/App.tsx index 8257f80..043e60b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,6 +6,7 @@ import Prospectus from "./components/Prospectus" import Faqs from "./components/Faqs"; import Title from "./components/Title"; import Schedule from "./components/Schedule"; +import InfoPage from './components/InfoPage'; import Carousel from "./components/Carousel"; function App() { @@ -51,7 +52,7 @@ function App() {
-

INFO

+
diff --git a/src/components/InfoPage.tsx b/src/components/InfoPage.tsx new file mode 100644 index 0000000..b053d46 --- /dev/null +++ b/src/components/InfoPage.tsx @@ -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(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 ( +
+ {!isMobile && (
+ + + Where Boundaries Fade and Ideas Flourish + MVHacks is proud to give a platform for aspiring tech enthusiasts to grow and learn by making unique projects that progress society. + + + + + Workshops and advice to help you grow + With specialized judges that are currently in the tech industry, at MVHacks you'll receive the best feedback to help you improve. + + + + + Real world collaboration and innovation + The MVHacks schedule is currently in development, but expect team-building exercises, workshops, and challenges! + + +
)} + {isMobile && (
+ + + Where Boundaries Fade and Ideas Flourish + MVHacks is proud to give a platform for aspiring tech enthusiasts to grow and learn by making unique projects that progress society. + + + + + Workshops and advice to help you grow + With specialized judges that are currently in the tech industry, at MVHacks you'll receive the best feedback to help you improve. + + + + + Real world collaboration and innovation + The MVHacks schedule is currently in development, but expect team-building exercises, workshops, and challenges! + + +
)} +
+ ); +} \ No newline at end of file diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 2631b25..cdb43d2 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -46,7 +46,7 @@ export default function Navbar({ onOptionSelect }: any) { return (
- mvhackslogo + mvhackslogo onOptionSelect('home')}> MV HACKS 8.0