Skip to content

Commit

Permalink
Application minimaliste fonctionnelle :
Browse files Browse the repository at this point in the history
- une seule vue
- un lecteur avec minuterie
- un fichier json avec les radio et leur style, modifiable
  • Loading branch information
jvk88511334 committed Oct 9, 2024
1 parent d62d321 commit fb152ac
Show file tree
Hide file tree
Showing 29 changed files with 104 additions and 1,156 deletions.
41 changes: 0 additions & 41 deletions public/data/albums.json

This file was deleted.

20 changes: 0 additions & 20 deletions public/data/articles.json

This file was deleted.

25 changes: 0 additions & 25 deletions public/data/books.json

This file was deleted.

54 changes: 0 additions & 54 deletions public/data/genericContent.json

This file was deleted.

14 changes: 0 additions & 14 deletions public/data/radios.json

This file was deleted.

2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Radio</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
13 changes: 3 additions & 10 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import RadioView from './views/RadioView';
import { AudioProvider } from './AudioContext';

function App() {
const [mode, setMode] = useState('light');
const [mode] = useState('dark');

const theme = useMemo(
() =>
createTheme({
palette: {
mode,
...(mode === 'dark'
...(mode === 'light'
? {
primary: {
main: '#1976d2',
Expand All @@ -35,7 +35,7 @@ function App() {
paper: '#000000',
},
text: {
primary: '#d5bdaf',
primary: '#e3d5ca',
secondary: '#e3d5ca',
},
}),
Expand All @@ -44,19 +44,12 @@ function App() {
[mode]
);

const toggleTheme = () => {
setMode((prevMode) => (prevMode === 'light' ? 'dark' : 'light'));
};

return (
<ThemeProvider theme={theme}>
<CssBaseline />
<AudioProvider>
<Router>
<div className="App" style={{ display: 'flex', flexDirection: 'column', minHeight: '100vh' }}>
{/*<Navbar toggleTheme={toggleTheme} />*/}
{/*<SubNavbar />*/}
{/*<Breadcrumb />*/}
<main style={{ flex: 1, paddingBottom: '60px' }}>
<Routes>
<Route path="/" element={<RadioView />} />
Expand Down
64 changes: 0 additions & 64 deletions src/components/Breadcrumb.js

This file was deleted.

20 changes: 0 additions & 20 deletions src/components/CenteredView.js

This file was deleted.

33 changes: 0 additions & 33 deletions src/components/Footer.js

This file was deleted.

16 changes: 0 additions & 16 deletions src/components/MyComponent.js

This file was deleted.

Loading

0 comments on commit fb152ac

Please sign in to comment.