-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
63 lines (58 loc) · 1.84 KB
/
App.js
File metadata and controls
63 lines (58 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import React from "react";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import About from "./About";
import Home from "./Home";
import Products from "./Products";
import Contact from "./Contact";
import Cart from "./Cart";
import SingleProduct from "./SingleProduct";
import ErrorPage from "./ErrorPage";
import { GlobalStyle } from "./GlobalStyle";
import { ThemeProvider } from "styled-components";
import Header from "./components/Header";
import Footer from "./components/Footer";
const App = () => {
const theme = {
colors: {
heading: "rgb(24 24 29)",
text: "rgba(29 ,29, 29, .8)",
white: "#fff",
black: " #212529",
// helper: "#8490ff",
helper: "#040166",
bg: "#fce3fc",
footer_bg: "#750251",
btn: "rgb(98 84 243)",
border: "rgba(98, 84, 243, 0.5)",
hr: "#ffffff",
gradient:
"linear-gradient(0deg, rgb(132 144 255) 0%, rgb(98 189 252) 100%)",
shadow:
"rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;",
shadowSupport: " rgba(0, 0, 0, 0.16) 0px 1px 4px",
},
media: {
mobile: "768px",
tab: "998px",
},
};
return (
<ThemeProvider theme={theme}>
<Router>
<GlobalStyle />
<Header />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
<Route path="/products" element={<Products />} />
<Route path="/contact" element={<Contact />} />
<Route path="/singleproduct/:id" element={<SingleProduct />} />
<Route path="/cart" element={<Cart />} />
<Route path="*" element={<ErrorPage />} />
</Routes>
<Footer/>
</Router>
</ThemeProvider>
);
};
export default App;