generated from souad988/react_frontend
-
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.
- Loading branch information
Showing
10 changed files
with
105 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,15 @@ | ||
import { Routes, Route } from 'react-router-dom'; | ||
import { createTheme, ThemeProvider } from '@mui/material/styles'; | ||
|
||
import Home from './views/home'; | ||
import Page2 from './views/page2'; | ||
|
||
const theme = createTheme({ | ||
typography: { | ||
fontFamily: 'Oswald, sans-serif', | ||
h1: { | ||
fontFamily: 'Oswald, sans-serif', | ||
fontWeight: 900, | ||
color: '#414F6B', | ||
fontSize: '4.5rem', // Default font size for all screens | ||
'@media (min-width:600px)': { | ||
fontSize: '6.5rem', // Font size for screens larger than 600px (tablet and up) | ||
}, | ||
'@media (min-width:1024px)': { | ||
fontSize: '8.5rem', // Font size for screens larger than 1024px (desktop and up) | ||
}, | ||
}, | ||
h1Secondary: { | ||
fontFamily: 'Oswald, sans-serif', | ||
fontWeight: 900, | ||
color: '#4D4D4D', // Second color | ||
fontSize: '4rem', // Default font size for all screens | ||
'@media (min-width:600px)': { | ||
fontSize: '6rem', // Font size for screens larger than 600px (tablet and up) | ||
}, | ||
'@media (min-width:1024px)': { | ||
fontSize: '8rem', // Font size for screens larger than 1024px (desktop and up) | ||
}, | ||
margin: 0, | ||
}, | ||
h1Counter: { | ||
fontFamily: 'Oswald, sans-serif', | ||
fontWeight: 900, | ||
color: '#AFB3BD', // Second color | ||
fontSize: '4rem', // Default font size for all screens | ||
'@media (min-width:600px)': { | ||
fontSize: '6rem', // Font size for screens larger than 600px (tablet and up) | ||
}, | ||
'@media (min-width:1024px)': { | ||
fontSize: '8rem', // Font size for screens larger than 1024px (desktop and up) | ||
}, | ||
margin: 0, | ||
}, | ||
h4: { | ||
fontFamily: 'Oswald, sans-serif', | ||
fontWeight: 900, | ||
color: '#414F6B', | ||
fontSize: '2rem', // Default font size for all screens | ||
'@media (min-width:600px)': { | ||
fontSize: '3rem', // Font size for screens larger than 600px (tablet and up) | ||
}, | ||
'@media (min-width:1024px)': { | ||
fontSize: '3rem', // Font size for screens larger than 1024px (desktop and up) | ||
}, | ||
}, | ||
body: { | ||
color: '#4D4D4D', | ||
}, | ||
}, | ||
palette: { | ||
mode: 'light', | ||
blue: { | ||
dark: '#414F6B', | ||
light: '#63769D', | ||
}, | ||
grey: { | ||
dark: '#4D4D4D', | ||
light: '#AFB3BD', | ||
}, | ||
link: { | ||
light: '#FFFFFF', | ||
dark: '#414F6B', | ||
}, | ||
}, | ||
}); | ||
|
||
const App = () => ( | ||
<ThemeProvider theme={theme}> | ||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="/page2" element={<Page2 />} /> | ||
</Routes> | ||
</ThemeProvider> | ||
|
||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="/page2" element={<Page2 />} /> | ||
</Routes> | ||
|
||
); | ||
|
||
export default App; |
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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