reza added basic package

temp
Reza_ashrafi 3 years ago
parent 85b3627d4a
commit 417c79da0e
  1. 9
      package.json
  2. 38
      src/App.css
  3. 6
      src/App.js
  4. 2
      src/App.scss
  5. 25
      src/components/Navbar/index.js
  6. 0
      src/components/Navbar/index.scss
  7. 1
      src/constants/colors.scss
  8. 15
      src/router.js
  9. 9
      src/views/Home/index.js
  10. 6
      tailwind.config.js
  11. 21206
      yarn.lock

@ -9,14 +9,19 @@
"@testing-library/user-event": "^12.1.10",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-redux": "^7.2.6",
"react-router-dom": "^6.0.2",
"react-scripts": "4.0.3",
"redux": "^4.1.2",
"redux-devtools-extension": "^2.13.9",
"redux-thunk": "^2.4.0",
"sass": "^1.43.4",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "craco start",
"build": "craco build",
"test": "craco test",
"build": "craco build",
"test": "craco test",
"eject": "react-scripts eject"
},
"eslintConfig": {

@ -1,38 +0,0 @@
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

@ -1,9 +1,11 @@
import './App.css';
import './App.scss';
import { Provider } from 'react-redux';
import Router from './router';
function App() {
return (
<div>
<Router />
</div>
);
}

@ -0,0 +1,2 @@
@import './constants/colors.scss';
@import './components/Navbar/index.scss';

@ -0,0 +1,25 @@
import React from "react";
export default function Navbar() {
return (
<div className="flex flex-row fixed left-0 top-0 justify-between w-screen px-4 bg-transparent backdrop-filter backdrop-blur-md">
<div className="flex flex-row">
<li></li>
</div>
<div>
</div>
</div>
);
}
Navbar.defaultProps = {
list : [
{
link : '/products',
}
],
}

@ -0,0 +1 @@
$primary : #235A90;

@ -0,0 +1,15 @@
import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import Home from "./views/Home/index";
export default function router() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="*" element={<main><h1>No matches routes.</h1></main>} />
</Routes>
</BrowserRouter>
);
}

@ -0,0 +1,9 @@
import React from 'react'
export default function Home() {
return (
<div className="home">
</div>
)
}

@ -2,7 +2,11 @@ module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {},
extend: {
Colors : {
'text-blue-900' : '#235A90',
}
},
},
variants: {
extend: {},

21206
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save