diff --git a/README.md b/README.md index b87cb00..1592dd9 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,20 @@ -# Getting Started with Create React App - -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. - -The page will reload if you make edits.\ -You will also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! - -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/). +# web-pos + + + + + + + + + + +
+ Catalog + + Stock +
+ + + +
diff --git a/package-lock.json b/package-lock.json index c2d78dc..5b0d8c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@types/react-dom": "^17.0.13", "react": "^17.0.2", "react-dom": "^17.0.2", + "react-router-dom": "^6.2.2", "react-scripts": "5.0.0", "typescript": "^4.6.2", "web-vitals": "^2.1.4" @@ -7979,6 +7980,14 @@ "he": "bin/he" } }, + "node_modules/history": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/history/-/history-5.3.0.tgz", + "integrity": "sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==", + "dependencies": { + "@babel/runtime": "^7.7.6" + } + }, "node_modules/hoopy": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", @@ -13173,6 +13182,30 @@ "node": ">=0.10.0" } }, + "node_modules/react-router": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.2.2.tgz", + "integrity": "sha512-/MbxyLzd7Q7amp4gDOGaYvXwhEojkJD5BtExkuKmj39VEE0m3l/zipf6h2WIB2jyAO0lI6NGETh4RDcktRm4AQ==", + "dependencies": { + "history": "^5.2.0" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-router-dom": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.2.2.tgz", + "integrity": "sha512-AtYEsAST7bDD4dLSQHDnk/qxWLJdad5t1HFa1qJyUrCeGgEuCSw0VB/27ARbF9Fi/W5598ujvJOm3ujUCVzuYQ==", + "dependencies": { + "history": "^5.2.0", + "react-router": "6.2.2" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, "node_modules/react-scripts": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.0.tgz", @@ -21736,6 +21769,14 @@ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" }, + "history": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/history/-/history-5.3.0.tgz", + "integrity": "sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==", + "requires": { + "@babel/runtime": "^7.7.6" + } + }, "hoopy": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", @@ -25361,6 +25402,23 @@ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", "integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==" }, + "react-router": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.2.2.tgz", + "integrity": "sha512-/MbxyLzd7Q7amp4gDOGaYvXwhEojkJD5BtExkuKmj39VEE0m3l/zipf6h2WIB2jyAO0lI6NGETh4RDcktRm4AQ==", + "requires": { + "history": "^5.2.0" + } + }, + "react-router-dom": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.2.2.tgz", + "integrity": "sha512-AtYEsAST7bDD4dLSQHDnk/qxWLJdad5t1HFa1qJyUrCeGgEuCSw0VB/27ARbF9Fi/W5598ujvJOm3ujUCVzuYQ==", + "requires": { + "history": "^5.2.0", + "react-router": "6.2.2" + } + }, "react-scripts": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.0.tgz", diff --git a/package.json b/package.json index 98b925d..527d3a1 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "@types/react-dom": "^17.0.13", "react": "^17.0.2", "react-dom": "^17.0.2", + "react-router-dom": "^6.2.2", "react-scripts": "5.0.0", "typescript": "^4.6.2", "web-vitals": "^2.1.4" diff --git a/src/App.css b/src/App.css deleted file mode 100644 index 74b5e05..0000000 --- a/src/App.css +++ /dev/null @@ -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); - } -} diff --git a/src/App.test.tsx b/src/App.test.tsx deleted file mode 100644 index 2a68616..0000000 --- a/src/App.test.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { render, screen } from '@testing-library/react'; -import App from './App'; - -test('renders learn react link', () => { - render(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/src/App.tsx b/src/App.tsx index a53698a..0899129 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,26 +1,15 @@ import React from 'react'; -import logo from './logo.svg'; -import './App.css'; +import { BrowserRouter } from 'react-router-dom'; +import AppRoutes from './routes'; -function App() { +const App: React.FC = () => { return ( -
-
- logo -

- Edit src/App.tsx and save to reload. -

- - Learn React - -
+
+ + +
); -} +}; export default App; diff --git a/src/design/catalago-pos.png b/src/design/catalago-pos.png new file mode 100644 index 0000000..1b57652 Binary files /dev/null and b/src/design/catalago-pos.png differ diff --git a/src/design/stock.png b/src/design/stock.png new file mode 100644 index 0000000..61296f3 Binary files /dev/null and b/src/design/stock.png differ diff --git a/src/images/product-1.jpg b/src/images/product-1.jpg new file mode 100644 index 0000000..e12f359 Binary files /dev/null and b/src/images/product-1.jpg differ diff --git a/src/images/product-10.jpg b/src/images/product-10.jpg new file mode 100644 index 0000000..2c20268 Binary files /dev/null and b/src/images/product-10.jpg differ diff --git a/src/images/product-11.jpg b/src/images/product-11.jpg new file mode 100644 index 0000000..8374f47 Binary files /dev/null and b/src/images/product-11.jpg differ diff --git a/src/images/product-12.jpg b/src/images/product-12.jpg new file mode 100644 index 0000000..c2feb83 Binary files /dev/null and b/src/images/product-12.jpg differ diff --git a/src/images/product-13.jpg b/src/images/product-13.jpg new file mode 100644 index 0000000..8cd1b0c Binary files /dev/null and b/src/images/product-13.jpg differ diff --git a/src/images/product-14.jpg b/src/images/product-14.jpg new file mode 100644 index 0000000..2dba95c Binary files /dev/null and b/src/images/product-14.jpg differ diff --git a/src/images/product-15.jpg b/src/images/product-15.jpg new file mode 100644 index 0000000..d11aed8 Binary files /dev/null and b/src/images/product-15.jpg differ diff --git a/src/images/product-16.jpg b/src/images/product-16.jpg new file mode 100644 index 0000000..610e5ee Binary files /dev/null and b/src/images/product-16.jpg differ diff --git a/src/images/product-17.jpg b/src/images/product-17.jpg new file mode 100644 index 0000000..694f3ae Binary files /dev/null and b/src/images/product-17.jpg differ diff --git a/src/images/product-2.jpg b/src/images/product-2.jpg new file mode 100644 index 0000000..be64485 Binary files /dev/null and b/src/images/product-2.jpg differ diff --git a/src/images/product-3.jpg b/src/images/product-3.jpg new file mode 100644 index 0000000..df988d1 Binary files /dev/null and b/src/images/product-3.jpg differ diff --git a/src/images/product-4.jpg b/src/images/product-4.jpg new file mode 100644 index 0000000..10ec3e4 Binary files /dev/null and b/src/images/product-4.jpg differ diff --git a/src/images/product-5.jpg b/src/images/product-5.jpg new file mode 100644 index 0000000..f10ad44 Binary files /dev/null and b/src/images/product-5.jpg differ diff --git a/src/images/product-6.jpg b/src/images/product-6.jpg new file mode 100644 index 0000000..7902f7e Binary files /dev/null and b/src/images/product-6.jpg differ diff --git a/src/images/product-7.jpg b/src/images/product-7.jpg new file mode 100644 index 0000000..b96025a Binary files /dev/null and b/src/images/product-7.jpg differ diff --git a/src/images/product-8.jpg b/src/images/product-8.jpg new file mode 100644 index 0000000..31a31c5 Binary files /dev/null and b/src/images/product-8.jpg differ diff --git a/src/images/product-9.jpg b/src/images/product-9.jpg new file mode 100644 index 0000000..49833a0 Binary files /dev/null and b/src/images/product-9.jpg differ diff --git a/src/index.css b/src/index.css deleted file mode 100644 index ec2585e..0000000 --- a/src/index.css +++ /dev/null @@ -1,13 +0,0 @@ -body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; -} diff --git a/src/index.tsx b/src/index.tsx index ef2edf8..7998135 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,6 +1,5 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; diff --git a/src/logo.svg b/src/logo.svg deleted file mode 100644 index 9dfc1c0..0000000 --- a/src/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/pages/DishesCatalog.tsx b/src/pages/DishesCatalog.tsx new file mode 100644 index 0000000..bd02e0c --- /dev/null +++ b/src/pages/DishesCatalog.tsx @@ -0,0 +1,11 @@ +import React from 'react' + +const DishesCatalog: React.FC = () => { + return ( +
+
+
+ ) +} + +export default DishesCatalog \ No newline at end of file diff --git a/src/pages/Stock.tsx b/src/pages/Stock.tsx new file mode 100644 index 0000000..44ba87f --- /dev/null +++ b/src/pages/Stock.tsx @@ -0,0 +1,9 @@ +import React from 'react' + +const Stock: React.FC = () => { + return ( +
Stock
+ ) +} + +export default Stock \ No newline at end of file diff --git a/src/routes.tsx b/src/routes.tsx new file mode 100644 index 0000000..bd6c25b --- /dev/null +++ b/src/routes.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Navigate, Route, Routes } from 'react-router-dom'; +import DishesCatalog from './pages/DishesCatalog'; +import Stock from './pages/Stock'; + +const AppRoutes: React.FC = () => { + return ( + + } /> + } /> + } /> + + ); +}; + +export default AppRoutes;