parent
4871fc252c
commit
d35d161dab
10 changed files with 103 additions and 67 deletions
@ -1 +0,0 @@ |
||||
/* No CSS *//*# sourceMappingURL=App.css.map */ |
@ -1,9 +0,0 @@ |
||||
{ |
||||
"version": 3, |
||||
"mappings": "", |
||||
"sources": [ |
||||
"App.scss" |
||||
], |
||||
"names": [], |
||||
"file": "App.css" |
||||
} |
@ -1,23 +0,0 @@ |
||||
@tailwind base; |
||||
@tailwind components; |
||||
@tailwind utilities; |
||||
|
||||
@font-face { |
||||
font-family: "iransans-medium"; |
||||
src: url(./assets/fonts/iransans/ttf/IRANSansWeb_Medium.ttf); |
||||
} |
||||
|
||||
body { |
||||
font-family: iransans-medium; |
||||
direction: rtl; |
||||
background-color: #f5f5f5 !important; |
||||
} |
||||
|
||||
.comment-num { |
||||
font-size: 8px; |
||||
padding-top: 4px; |
||||
padding-bottom: 2px; |
||||
padding-left: 4px; |
||||
padding-right: 4px; |
||||
border-radius: 50%; |
||||
} |
@ -1,10 +0,0 @@ |
||||
{ |
||||
"version": 3, |
||||
"mappings": "AAAA,SAAS,CAAT,IAAS;AACT,SAAS,CAAT,UAAS;AACT,SAAS,CAAT,SAAS;AAIT,UAAU;EACR,WAAW,EAAE,iBAAiB;EAC9B,GAAG,EAAE,uDAAuD;;;AAG9D,AAAA,IAAI,CAAC;EACH,WAAW,EAAE,eAAe;EAC5B,SAAS,EAAE,GAAG;EACd,gBAAgB,EAAE,OAAO;CAC1B;;AAED,AAAA,YAAY,CAAC;EACX,SAAS,EAAE,GAAG;EACd,WAAW,EAAE,GAAG;EAChB,cAAc,EAAE,GAAG;EACnB,YAAY,EAAE,GAAG;EACjB,aAAa,EAAE,GAAG;EAClB,aAAa,EAAE,GAAG;CACnB", |
||||
"sources": [ |
||||
"index.scss", |
||||
"components/productDesign/ProductDesign.scss" |
||||
], |
||||
"names": [], |
||||
"file": "index.css" |
||||
} |
@ -0,0 +1,12 @@ |
||||
const components = { |
||||
list: |
||||
(data = {}) => |
||||
async (dispatch) => |
||||
await dispatch({ type: "components/list", data }), |
||||
activeComponent: |
||||
(data = {}) => |
||||
async (dispatch) => |
||||
await dispatch({ type: "components/activeComponent", data }), |
||||
}; |
||||
|
||||
export default components; |
@ -0,0 +1,36 @@ |
||||
import React from "react"; |
||||
|
||||
import { BrowserRouter, Routes, Route } from "react-router-dom"; |
||||
|
||||
import _ from "lodash"; |
||||
import Home from "./Views/Home"; |
||||
|
||||
function Router() { |
||||
return ( |
||||
<div |
||||
className={_.join([ |
||||
"min-h-screen min-w-screen rtl overflow-x-hidden bg-white", |
||||
])} |
||||
> |
||||
<BrowserRouter> |
||||
<Routes> |
||||
<Route path="/" element={<Home />} /> |
||||
<Route |
||||
path="*" |
||||
element={ |
||||
<main> |
||||
<h1>No matches routes.</h1> |
||||
</main> |
||||
} |
||||
/> |
||||
</Routes> |
||||
</BrowserRouter> |
||||
</div> |
||||
); |
||||
} |
||||
|
||||
Router.defaultProps = { |
||||
isDark: false, |
||||
}; |
||||
|
||||
export default Router; |
Loading…
Reference in new issue