import * as React from 'react'; import AppBar from '@mui/material/AppBar'; import Button from '@mui/material/Button'; import Card from '@mui/material/Card'; import CardActions from '@mui/material/CardActions'; import CardContent from '@mui/material/CardContent'; import CardMedia from '@mui/material/CardMedia'; import CssBaseline from '@mui/material/CssBaseline'; import Grid from '@mui/material/Grid'; import Stack from '@mui/material/Stack'; import Box from '@mui/material/Box'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import Container from '@mui/material/Container'; import Link from '@mui/material/Link'; import Checkbox from '@mui/material/Checkbox'; import Switch from '@mui/material/Switch'; import {styled} from '@mui/material/styles'; import FormControlLabel from '@mui/material/FormControlLabel'; import {createTheme, ThemeProvider} from '@mui/material/styles'; import cards from './Card'; import Contact from "./Contact"; import {createContext, useState} from "react"; export const ThemeContext = createContext(null); // switch theme button --------------------------------------------------------------- const MaterialUISwitch = styled(Switch)(({theme}) => ({ width: 62, height: 34, padding: 7, '& .MuiSwitch-switchBase': { margin: 1, padding: 0, transform: 'translateX(6px)', '&.Mui-checked': { color: '#fff', transform: 'translateX(22px)', '& .MuiSwitch-thumb:before': { backgroundImage: `url('data:image/svg+xml;utf8,')`, }, '& + .MuiSwitch-track': { opacity: 1, backgroundColor: theme.palette.mode === 'dark' ? '#8796A5' : 'white', }, }, }, '& .MuiSwitch-thumb': { backgroundColor: theme.palette.mode === 'dark' ? '#003892' : '#7892B5', width: 32, height: 32, '&:before': { content: "''", position: 'absolute', width: '100%', height: '100%', left: 0, top: 0, backgroundRepeat: 'no-repeat', backgroundPosition: 'center', backgroundImage: `url('data:image/svg+xml;utf8,')`, }, }, '& .MuiSwitch-track': { opacity: 1, backgroundColor: theme.palette.mode === 'dark' ? '#8796A5' : '#aab4be', borderRadius: 20 / 2, }, })); // switch theme button ---------------------------------------------------------------- function Copyright() { return ( {'Copyright © '} Your Website {' '} {new Date().getFullYear()} {'.'} ); } const defaultTheme = createTheme(); export default function App() { const [theme, setTheme] = useState('light'); const toggleTheme = () => { setTheme(theme === 'light' ? 'dark' : 'light'); } return (
SOS12 Problems Collection Another Nav } label="" onChange={toggleTheme} checked={theme === 'dark'} />
{/* Hero unit */} SOS12 Welcome to the 12th SOS camp, a preparation camp for SKE21 students. We hope that students will definitely gain knowledge and enjoyment. {/* End hero unit */} {/*# TODO:Edit the Jode here */} {cards.map((card) => ( {/*jode*/} {card.title} {card.describe} ))}
{/* Footer */} Footer Something here to give the footer a purpose! {/* End footer */}
); }