diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd3dbb5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..7aa22a2 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,7 @@ +Copyright 2024 Arthur Bonfim + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..2e7854f --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +
+ +
+ +Restaurant menu🍲
+ + + +From classic dishes to surprising creations, our menu is a refinement of refined flavors!
+ + See the page! + + + +## 🥘 About +Welcome to the Restaurant Menu repository! This project is a web application designed to manage and display a restaurant's menu in an intuitive and interactive way. Here, you will find all the information needed to understand, set up, and contribute to the development of this application. + +## 🦐 Features +- **Menu Viewing**: Displays dishes organized by categories, with detailed descriptions, prices, and images. +- **Search and Filters**: Tools for searching and filtering to easily find specific dishes. + +## 🔨 Tools +- [Next.js](https://nextjs.org/) +- [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) +- [CSS](https://developer.mozilla.org/pt-BR/docs/Web/CSS) +- [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) + +## 🔴 How to Contribute +```bash + #Clone the project + $ git clone https://github.com/arthurbonfim/restaurant-menu +``` +```bash + #Enter the directory + $ cd restaurant-menu +``` +```bash + #Install the dependencies + $ npm install +``` +## 📜 License +This project is under the MIT license. See the file [LICENSE](LICENSE.md) for more details. + diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..b8d6842 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./src/*"] + } + } +} diff --git a/next.config.mjs b/next.config.mjs new file mode 100644 index 0000000..4678774 --- /dev/null +++ b/next.config.mjs @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +export default nextConfig; diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..8dba5f2 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,399 @@ +{ + "name": "restaurant-menu", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "restaurant-menu", + "version": "0.1.0", + "dependencies": { + "next": "14.2.3", + "react": "^18", + "react-dom": "^18" + } + }, + "node_modules/@next/env": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.3.tgz", + "integrity": "sha512-W7fd7IbkfmeeY2gXrzJYDx8D2lWKbVoTIj1o1ScPHNzvp30s1AuoEFSdr39bC5sjxJaxTtq3OTCZboNp0lNWHA==" + }, + "node_modules/@next/swc-darwin-arm64": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.3.tgz", + "integrity": "sha512-3pEYo/RaGqPP0YzwnlmPN2puaF2WMLM3apt5jLW2fFdXD9+pqcoTzRk+iZsf8ta7+quAe4Q6Ms0nR0SFGFdS1A==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-darwin-x64": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.3.tgz", + "integrity": "sha512-6adp7waE6P1TYFSXpY366xwsOnEXM+y1kgRpjSRVI2CBDOcbRjsJ67Z6EgKIqWIue52d2q/Mx8g9MszARj8IEA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.3.tgz", + "integrity": "sha512-cuzCE/1G0ZSnTAHJPUT1rPgQx1w5tzSX7POXSLaS7w2nIUJUD+e25QoXD/hMfxbsT9rslEXugWypJMILBj/QsA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.3.tgz", + "integrity": "sha512-0D4/oMM2Y9Ta3nGuCcQN8jjJjmDPYpHX9OJzqk42NZGJocU2MqhBq5tWkJrUQOQY9N+In9xOdymzapM09GeiZw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.3.tgz", + "integrity": "sha512-ENPiNnBNDInBLyUU5ii8PMQh+4XLr4pG51tOp6aJ9xqFQ2iRI6IH0Ds2yJkAzNV1CfyagcyzPfROMViS2wOZ9w==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.3.tgz", + "integrity": "sha512-BTAbq0LnCbF5MtoM7I/9UeUu/8ZBY0i8SFjUMCbPDOLv+un67e2JgyN4pmgfXBwy/I+RHu8q+k+MCkDN6P9ViQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.3.tgz", + "integrity": "sha512-AEHIw/dhAMLNFJFJIJIyOFDzrzI5bAjI9J26gbO5xhAKHYTZ9Or04BesFPXiAYXDNdrwTP2dQceYA4dL1geu8A==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-ia32-msvc": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.3.tgz", + "integrity": "sha512-vga40n1q6aYb0CLrM+eEmisfKCR45ixQYXuBXxOOmmoV8sYST9k7E3US32FsY+CkkF7NtzdcebiFT4CHuMSyZw==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.3.tgz", + "integrity": "sha512-Q1/zm43RWynxrO7lW4ehciQVj+5ePBhOK+/K2P7pLFX3JaJ/IZVC69SHidrmZSOkqz7ECIOhhy7XhAFG4JYyHA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==" + }, + "node_modules/@swc/helpers": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.5.tgz", + "integrity": "sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==", + "dependencies": { + "@swc/counter": "^0.1.3", + "tslib": "^2.4.0" + } + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001621", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001621.tgz", + "integrity": "sha512-+NLXZiviFFKX0fk8Piwv3PfLPGtRqJeq2TiNoUff/qB5KJgwecJTvCXDpmlyP/eCI/GUEmp/h/y5j0yckiiZrA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/next": { + "version": "14.2.3", + "resolved": "https://registry.npmjs.org/next/-/next-14.2.3.tgz", + "integrity": "sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==", + "dependencies": { + "@next/env": "14.2.3", + "@swc/helpers": "0.5.5", + "busboy": "1.6.0", + "caniuse-lite": "^1.0.30001579", + "graceful-fs": "^4.2.11", + "postcss": "8.4.31", + "styled-jsx": "5.1.1" + }, + "bin": { + "next": "dist/bin/next" + }, + "engines": { + "node": ">=18.17.0" + }, + "optionalDependencies": { + "@next/swc-darwin-arm64": "14.2.3", + "@next/swc-darwin-x64": "14.2.3", + "@next/swc-linux-arm64-gnu": "14.2.3", + "@next/swc-linux-arm64-musl": "14.2.3", + "@next/swc-linux-x64-gnu": "14.2.3", + "@next/swc-linux-x64-musl": "14.2.3", + "@next/swc-win32-arm64-msvc": "14.2.3", + "@next/swc-win32-ia32-msvc": "14.2.3", + "@next/swc-win32-x64-msvc": "14.2.3" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0", + "@playwright/test": "^1.41.2", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "sass": "^1.3.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@playwright/test": { + "optional": true + }, + "sass": { + "optional": true + } + } + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + }, + "node_modules/postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/styled-jsx": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.1.tgz", + "integrity": "sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==", + "dependencies": { + "client-only": "0.0.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..cd6b78f --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "restaurant-menu", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "react": "^18", + "react-dom": "^18", + "next": "14.2.3" + } +} diff --git a/public/assets/banner.png b/public/assets/banner.png new file mode 100644 index 0000000..7038cc3 Binary files /dev/null and b/public/assets/banner.png differ diff --git a/public/assets/bebidas.png b/public/assets/bebidas.png new file mode 100644 index 0000000..a910880 Binary files /dev/null and b/public/assets/bebidas.png differ diff --git a/public/assets/carne.png b/public/assets/carne.png new file mode 100644 index 0000000..8cde198 Binary files /dev/null and b/public/assets/carne.png differ diff --git a/public/assets/entrada.png b/public/assets/entrada.png new file mode 100644 index 0000000..7fca302 Binary files /dev/null and b/public/assets/entrada.png differ diff --git a/public/assets/favicon.ico b/public/assets/favicon.ico new file mode 100644 index 0000000..ffe6b02 Binary files /dev/null and b/public/assets/favicon.ico differ diff --git a/public/assets/img/agua.jpg b/public/assets/img/agua.jpg new file mode 100644 index 0000000..b799f39 Binary files /dev/null and b/public/assets/img/agua.jpg differ diff --git a/public/assets/img/aligot.jpg b/public/assets/img/aligot.jpg new file mode 100644 index 0000000..8224c4a Binary files /dev/null and b/public/assets/img/aligot.jpg differ diff --git a/public/assets/img/banoffee.png b/public/assets/img/banoffee.png new file mode 100644 index 0000000..2a7f2b5 Binary files /dev/null and b/public/assets/img/banoffee.png differ diff --git a/public/assets/img/bife-ancho.jpg b/public/assets/img/bife-ancho.jpg new file mode 100644 index 0000000..18d8237 Binary files /dev/null and b/public/assets/img/bife-ancho.jpg differ diff --git a/public/assets/img/bruschetta.jpg b/public/assets/img/bruschetta.jpg new file mode 100644 index 0000000..d2e58c8 Binary files /dev/null and b/public/assets/img/bruschetta.jpg differ diff --git a/public/assets/img/capeletti.jpg b/public/assets/img/capeletti.jpg new file mode 100644 index 0000000..582b94f Binary files /dev/null and b/public/assets/img/capeletti.jpg differ diff --git a/public/assets/img/carpaccio.jpg b/public/assets/img/carpaccio.jpg new file mode 100644 index 0000000..d8277ca Binary files /dev/null and b/public/assets/img/carpaccio.jpg differ diff --git a/public/assets/img/cerveja.jpg b/public/assets/img/cerveja.jpg new file mode 100644 index 0000000..d3affda Binary files /dev/null and b/public/assets/img/cerveja.jpg differ diff --git a/public/assets/img/cheesecake.jpg b/public/assets/img/cheesecake.jpg new file mode 100644 index 0000000..ed17429 Binary files /dev/null and b/public/assets/img/cheesecake.jpg differ diff --git a/public/assets/img/ebi-spicy.jpg b/public/assets/img/ebi-spicy.jpg new file mode 100644 index 0000000..3c17cb8 Binary files /dev/null and b/public/assets/img/ebi-spicy.jpg differ diff --git a/public/assets/img/espaguete.jpg b/public/assets/img/espaguete.jpg new file mode 100644 index 0000000..8b70717 Binary files /dev/null and b/public/assets/img/espaguete.jpg differ diff --git a/public/assets/img/file-mignon.jpg b/public/assets/img/file-mignon.jpg new file mode 100644 index 0000000..6f82479 Binary files /dev/null and b/public/assets/img/file-mignon.jpg differ diff --git a/public/assets/img/lasanha.jpg b/public/assets/img/lasanha.jpg new file mode 100644 index 0000000..7746750 Binary files /dev/null and b/public/assets/img/lasanha.jpg differ diff --git a/public/assets/img/mil-folhas.jpg b/public/assets/img/mil-folhas.jpg new file mode 100644 index 0000000..e777b99 Binary files /dev/null and b/public/assets/img/mil-folhas.jpg differ diff --git a/public/assets/img/nhoque.jpg b/public/assets/img/nhoque.jpg new file mode 100644 index 0000000..dc8c201 Binary files /dev/null and b/public/assets/img/nhoque.jpg differ diff --git a/public/assets/img/paella.jpg b/public/assets/img/paella.jpg new file mode 100644 index 0000000..8467e29 Binary files /dev/null and b/public/assets/img/paella.jpg differ diff --git a/public/assets/img/picanha.png b/public/assets/img/picanha.png new file mode 100644 index 0000000..9c255e1 Binary files /dev/null and b/public/assets/img/picanha.png differ diff --git a/public/assets/img/prime-rib.jpg b/public/assets/img/prime-rib.jpg new file mode 100644 index 0000000..d0d8a62 Binary files /dev/null and b/public/assets/img/prime-rib.jpg differ diff --git a/public/assets/img/pudim.jpg b/public/assets/img/pudim.jpg new file mode 100644 index 0000000..a47e0a4 Binary files /dev/null and b/public/assets/img/pudim.jpg differ diff --git a/public/assets/img/ravioli.jpg b/public/assets/img/ravioli.jpg new file mode 100644 index 0000000..1c8a96f Binary files /dev/null and b/public/assets/img/ravioli.jpg differ diff --git a/public/assets/img/refrigerante.jpg b/public/assets/img/refrigerante.jpg new file mode 100644 index 0000000..592cf3d Binary files /dev/null and b/public/assets/img/refrigerante.jpg differ diff --git a/public/assets/img/salada-caprese.jpg b/public/assets/img/salada-caprese.jpg new file mode 100644 index 0000000..8f123c7 Binary files /dev/null and b/public/assets/img/salada-caprese.jpg differ diff --git a/public/assets/img/salada-ceasar.jpg b/public/assets/img/salada-ceasar.jpg new file mode 100644 index 0000000..5b3c97a Binary files /dev/null and b/public/assets/img/salada-ceasar.jpg differ diff --git a/public/assets/img/salada-grega.jpg b/public/assets/img/salada-grega.jpg new file mode 100644 index 0000000..0fc56eb Binary files /dev/null and b/public/assets/img/salada-grega.jpg differ diff --git a/public/assets/img/salada-nicoise.jpg b/public/assets/img/salada-nicoise.jpg new file mode 100644 index 0000000..c82aecb Binary files /dev/null and b/public/assets/img/salada-nicoise.jpg differ diff --git a/public/assets/img/salada-waldorf.jpg b/public/assets/img/salada-waldorf.jpg new file mode 100644 index 0000000..bf99817 Binary files /dev/null and b/public/assets/img/salada-waldorf.jpg differ diff --git a/public/assets/img/suco.jpg b/public/assets/img/suco.jpg new file mode 100644 index 0000000..175b8df Binary files /dev/null and b/public/assets/img/suco.jpg differ diff --git a/public/assets/img/tiramisu.jpg b/public/assets/img/tiramisu.jpg new file mode 100644 index 0000000..ef499d6 Binary files /dev/null and b/public/assets/img/tiramisu.jpg differ diff --git a/public/assets/img/tomahawk-steak.jpg b/public/assets/img/tomahawk-steak.jpg new file mode 100644 index 0000000..f43e40c Binary files /dev/null and b/public/assets/img/tomahawk-steak.jpg differ diff --git a/public/assets/img/whiskey.jpg b/public/assets/img/whiskey.jpg new file mode 100644 index 0000000..7d9ba54 Binary files /dev/null and b/public/assets/img/whiskey.jpg differ diff --git a/public/assets/lupa.png b/public/assets/lupa.png new file mode 100644 index 0000000..251911b Binary files /dev/null and b/public/assets/lupa.png differ diff --git a/public/assets/massa.png b/public/assets/massa.png new file mode 100644 index 0000000..0315c04 Binary files /dev/null and b/public/assets/massa.png differ diff --git a/public/assets/page.gif.gif b/public/assets/page.gif.gif new file mode 100644 index 0000000..3e7526b Binary files /dev/null and b/public/assets/page.gif.gif differ diff --git a/public/assets/salada.png b/public/assets/salada.png new file mode 100644 index 0000000..c4f4d07 Binary files /dev/null and b/public/assets/salada.png differ diff --git a/public/assets/sobremesa.png b/public/assets/sobremesa.png new file mode 100644 index 0000000..6d4abef Binary files /dev/null and b/public/assets/sobremesa.png differ diff --git a/src/app/globals.css b/src/app/globals.css new file mode 100644 index 0000000..70ddb41 --- /dev/null +++ b/src/app/globals.css @@ -0,0 +1,61 @@ +@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); +@import url("https://fonts.googleapis.com/css?family=Sofia&effect=fire"); + +@layer base { + html, body, div, span, applet, object, iframe, + h1, h2, h3, h4, h5, h6, p, blockquote, pre, + a, abbr, acronym, address, big, cite, code, + del, dfn, em, img, ins, kbd, q, s, samp, + small, strike, strong, sub, sup, tt, var, + b, u, i, center, + dl, dt, dd, ol, ul, li, + fieldset, form, label, legend, + table, caption, tbody, tfoot, thead, tr, th, td, + article, aside, canvas, details, embed, + figure, figcaption, footer, header, hgroup, + menu, nav, output, ruby, section, summary, + time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; + } + /* HTML5 display-role reset for older browsers */ + article, aside, details, figcaption, figure, + footer, header, hgroup, menu, nav, section { + display: block; + } + body { + line-height: 1; + } + ol, ul { + list-style: none; + } + blockquote, q { + quotes: none; + } + blockquote:before, blockquote:after, + q:before, q:after { + content: ''; + content: none; + } + table { + border-collapse: collapse; + border-spacing: 0; + } + * { + font-family: "Poppins", sans-serif; + box-sizing: border-box; + } +} + +@layer utilities { + .container-1024 { + width: 100%; + max-width: 1024px; + margin: 0 auto; + } +} + diff --git a/src/app/layout.js b/src/app/layout.js new file mode 100644 index 0000000..449f906 --- /dev/null +++ b/src/app/layout.js @@ -0,0 +1,23 @@ +import Head from 'next/head'; +import { Inter } from "next/font/google"; +import "./globals.css"; + +const inter = Inter({ subsets: ["latin"] }); + +export const metadata = { + title: "Restaurant Menu", + description: "Generated by create next app", + icons: { + icon: 'assets/favicon.ico',}, +}; + +export default function RootLayout({ children }) { + return ( + + + + + {children} + + ); +} diff --git a/src/app/page.js b/src/app/page.js new file mode 100644 index 0000000..7b0433e --- /dev/null +++ b/src/app/page.js @@ -0,0 +1,78 @@ +"use client"; +import Head from "next/head"; +import styles from "@/app/page.module.css"; +import { useState } from "react"; +import {filterProducts , searchProducts} from "@/service"; +import Categories from "@/components/Categories"; +import SearchBox from "@/components/SearchBox"; +import Card from "@/components/Card"; + +export default function Home() { + + const [list, setList] = useState(filterProducts('Entradas')); + const [srchdTxt, setSrcdTxt] = useState(''); + const [btnClicked, setBtnClicked] = useState('Entradas'); + + const handleFilter = (category) => { + setList(filterProducts(category)); + setBtnClicked(category); + setSrcdTxt(''); + } + + const handleSearch = (typedText) => { + setSrcdTxt(typedText); + if(typedText.length > 2){ + setList(searchProducts(typedText)) + } + } + + return ( + <> + +De pratos clássicos a criações surpreendentes,
+ nosso cardápio é um requinte de sabores
refinados.
{category}
+{description}
+R$ {price.toFixed(2) + .replace('.',',')}
+