diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index ce29444..f92700a 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: '16' - name: Install Dependencies run: npm install @@ -36,4 +36,4 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: build + publish_dir: build \ No newline at end of file diff --git a/App.js b/App.js deleted file mode 100644 index be5bafa..0000000 --- a/App.js +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react'; -import ContactForm from './ContactForm'; -import './Contact.css'; - -const App = () => { - return ( -
- -
- ); -}; - -export default App; diff --git a/src/App.js b/src/App.js index aee9d72..50c139d 100644 --- a/src/App.js +++ b/src/App.js @@ -13,7 +13,8 @@ import BottomNavbar from './components/BottomNavbar'; import MobileNavbar from './components/MobileNavbar'; import ContactUs from './components/ContactUs'; import Login from './components/Login'; -import { Footer } from './components/footer'; +import Footer from './components/Footer'; +import Instamart from './components/Instamart'; import 'bootstrap/dist/css/bootstrap.min.css'; // Import Bootstrap once in your entry point @@ -27,8 +28,9 @@ function App() { - + + ); diff --git a/src/components/BestGroceries.js b/src/components/BestGroceries.js index a661cba..599e74c 100644 --- a/src/components/BestGroceries.js +++ b/src/components/BestGroceries.js @@ -1,52 +1,55 @@ -import React,{useState} from 'react'; +import React, { useState } from 'react'; import './BestPlacesSection.css'; -const BestGroceries=()=>{ -const cities = [ - -"Order grocery in Bangalore", -"Order grocery in Gurgaon", -"Order grocery in Hyderabad", -"Order grocery in Delhi", -" Order grocery in Mumbai", -"Order grocery in Pune", -" Order grocery in Kolkata", -" Order grocery in Chennai", -" Order grocery in Ahmedabad", -"Order groceryin Chandigarh", -" Order grocery in Jaipur", -" Order grocery in Kochi", -" Order grocery in Coimbatore", -"Order grocery in Lucknow", -" Order grocery in Nagpur", -"Order groceryin Vadodara", - "Order grocery in Indore", -"Order grocery in Vizag", -" Order grocery in Surat", -" Order grocery in Dehradun", - "Order grocery in Noida", -"Order grocery in Vijayawada" - - -]; -const [visibleCount,setVisibleCount]=useState(9); +const BestGroceries = () => { + const cities = [ + "Order grocery in Bangalore", + "Order grocery in Gurgaon", + "Order grocery in Hyderabad", + "Order grocery in Delhi", + " Order grocery in Mumbai", + "Order grocery in Pune", + " Order grocery in Kolkata", + " Order grocery in Chennai", + " Order grocery in Ahmedabad", + "Order groceryin Chandigarh", + " Order grocery in Jaipur", + " Order grocery in Kochi", + " Order grocery in Coimbatore", + "Order grocery in Lucknow", + " Order grocery in Nagpur", + "Order groceryin Vadodara", + "Order grocery in Indore", + "Order grocery in Vizag", + " Order grocery in Surat", + " Order grocery in Dehradun", + "Order grocery in Noida", + "Order grocery in Vijayawada" + ]; -const handleShow_more=()=>{ - setVisibleCount((prevCount)=>prevCount+4); -} + const [visibleCount, setVisibleCount] = useState(9); -return( -
-

Cities with groceries delivery

+ const handleShow_more = () => { + try { + setVisibleCount((prevCount) => prevCount + 4); + } catch (error) { + console.error('Error updating visible count:', error); + } + }; -
- {cities.slice(0,visibleCount).map((item,index)=> - )} - -
+ return ( +
+

Cities with groceries delivery

-
+
+ {cities.slice(0, visibleCount).map((item, index) => + + )} + +
+
+ ); +}; -)} export default BestGroceries; \ No newline at end of file diff --git a/Contact.css b/src/components/Contact.css similarity index 94% rename from Contact.css rename to src/components/Contact.css index 78b3f2e..5df2bcb 100644 --- a/Contact.css +++ b/src/components/Contact.css @@ -1,85 +1,85 @@ -.btn-pink { - background-color: var(--bgOrange); - width: fit-content; - color: rgb(248, 11, 11); - padding: 0.8rem 2.3rem; - box-shadow: 5px 5px 7px 0px #0000003f; - font-size: 18px; - cursor: pointer; - transition: all 0.5s; - font-weight: 500; - border: solid 3px transparent; - position: relative; - z-index: 1; - } - - .btn-pink::before { - content: ""; - position: absolute; - background-color: #fff; - top: 0px; - left: 0; - right: 0; - bottom: 0px; - z-index: -1; - transform: scaleX(0); - transform-origin: left; - transition: all 0.8s; - } - - .btn-pink:hover::before { - transform: scaleX(1); - } - - .btn-pink:hover { - border: solid 3px var(--bgOrange); - color: black; - } - - .contact-back { - background-color: rgb(231, 231, 231); - font-family: Arial, sans-serif; - margin: 0; - padding: 0; - } - - .contc { - color: red; - align-self: center; - } - - .contact-form { - display: flex; - flex-direction: column; - align-items: center; - padding: 20px; - } - - .form-group { - margin-bottom: 15px; - width: 100%; - } - - label { - display: block; - margin-bottom: 5px; - font-weight: bold; - } - - input, textarea { - width: 100%; - padding: 10px; - border: 1px solid #ccc; - border-radius: 4px; - } - - textarea { - resize: none; - } - - footer.copyright { - text-align: center; - margin-top: 20px; - font-size: 14px; - color: #555; - } +.btn-pink { + background-color: var(--bgOrange); + width: fit-content; + color: rgb(248, 11, 11); + padding: 0.8rem 2.3rem; + box-shadow: 5px 5px 7px 0px #0000003f; + font-size: 18px; + cursor: pointer; + transition: all 0.5s; + font-weight: 500; + border: solid 3px transparent; + position: relative; + z-index: 1; + } + + .btn-pink::before { + content: ""; + position: absolute; + background-color: #fff; + top: 0px; + left: 0; + right: 0; + bottom: 0px; + z-index: -1; + transform: scaleX(0); + transform-origin: left; + transition: all 0.8s; + } + + .btn-pink:hover::before { + transform: scaleX(1); + } + + .btn-pink:hover { + border: solid 3px var(--bgOrange); + color: black; + } + + .contact-back { + background-color: rgb(231, 231, 231); + font-family: Arial, sans-serif; + margin: 0; + padding: 0; + } + + .contc { + color: red; + align-self: center; + } + + .contact-form { + display: flex; + flex-direction: column; + align-items: center; + padding: 20px; + } + + .form-group { + margin-bottom: 15px; + width: 100%; + } + + label { + display: block; + margin-bottom: 5px; + font-weight: bold; + } + + input, textarea { + width: 100%; + padding: 10px; + border: 1px solid #ccc; + border-radius: 4px; + } + + textarea { + resize: none; + } + + footer.copyright { + text-align: center; + margin-top: 20px; + font-size: 14px; + color: #555; + } diff --git a/ContactForm.js b/src/components/ContactForm.js similarity index 86% rename from ContactForm.js rename to src/components/ContactForm.js index ea8fe0f..e24d41a 100644 --- a/ContactForm.js +++ b/src/components/ContactForm.js @@ -1,92 +1,92 @@ -import React, { useState } from 'react'; -import emailjs from '@emailjs/browser'; - -const ContactForm = () => { - const [formData, setFormData] = useState({ - name: '', - email: '', - subject: '', - message: '', - }); - - const handleChange = (e) => { - const { name, value } = e.target; - setFormData({ - ...formData, - [name]: value, - }); - }; - - const handleSubmit = (e) => { - e.preventDefault(); - emailjs.send('service_t8gkgs9', 'template_s9l32nl', formData, 't9E6gAY3CYERvEBA7') - .then((res) => { - alert('Message sent successfully! ' + res.status); - }) - .catch((err) => { - console.error('Failed to send message:', err); - }); - }; - - return ( -
-
-

Any Queries ??

-
-
- - -
-
- - -
-
- - -
-
- - -
- -
-
-
- © 2024 Swiggy India. All rights reserved. -
-
- ); -}; - -export default ContactForm; +import React, { useState } from 'react'; +import emailjs from '@emailjs/browser'; + +const ContactForm = () => { + const [formData, setFormData] = useState({ + name: '', + email: '', + phoneNumber: '', + message: '', + }); + + const handleChange = (e) => { + const { name, value } = e.target; + setFormData({ + ...formData, + [name]: value, + }); + }; + + const handleSubmit = (e) => { + e.preventDefault(); + emailjs.send('service_t8gkgs9', 'template_s9l32nl', formData, 't9E6gAY3CYERvEBA7') + .then((res) => { + alert('Message sent successfully! ' + res.status); + }) + .catch((err) => { + console.error('Failed to send message:', err); + }); + }; + + return ( +
+
+

Any Queries ??

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+ 2024 Swiggy India. All rights reserved. +
+
+ ); +}; + +export default ContactForm; \ No newline at end of file diff --git a/src/components/Instamart.js b/src/components/Instamart.js new file mode 100644 index 0000000..2399829 --- /dev/null +++ b/src/components/Instamart.js @@ -0,0 +1,118 @@ +import React from "react"; +import "./Instamart.css"; // Add your CSS file +import "@fortawesome/fontawesome-free/css/all.min.css"; + +const categories = [ + { img: "../../image/frui2.avif", title: "Fresh Fruit" }, + { img: "../../image/veg.avif", title: "Fresh Vegetables" }, + { img: "../../image/fruit4.avif", title: "Atta, Rice, and Dals" }, + { img: "../../image/fruit5.avif", title: "Masalas and Dry Fruits" }, + { img: "../../image/fruit3.avif", title: "Dairy, Bread, and Eggs" }, + { img: "../../image/frui5.avif", title: "Oils and Ghee" }, + { img: "../../image/frui9.avif", title: "Meat and Seafood" }, + { img: "../../image/fruit6.avif", title: "Munchies" }, + { img: "../../image/fruit8.avif", title: "Cold Drinks and Juices" }, + { img: "../../image/fruit7.avif", title: "Sweet Tooth" }, + { img: "../../image/baby.avif", title: "Baby Care" }, + { img: "../../image/bath.avif", title: "Bath, Body, and Hair" }, + { img: "../../image/beauty.avif", title: "Beauty and Grooming" }, + { img: "../../image/cereal.avif", title: "Cereal and Breakfast" }, + { img: "../../image/cleaning.avif", title: "Cleaning Essential" }, + { img: "../../image/home.avif", title: "Home and Kitchen" }, + { img: "../../image/hygiene.avif", title: "Hygiene and Wellness" }, + { img: "../../image/instantfood.avif", title: "Instant and Frozen Food" }, + { img: "../../image/office.avif", title: "Office and Electricals" }, + { img: "../../image/paan.avif", title: "Paan Corner" }, + { img: "../../image/sauces.avif", title: "Sauces and Spread" }, + { img: "../../image/tea.avif", title: "Tea, Coffee, and More" }, + { img: "../../image/pet.avif", title: "Pet Supplies" }, + { img: "../../image/biscuits.avif", title: "Biscuits and Cakes" }, +]; + +const Instamart = () => { + return ( +
+ {/* Top Menu */} +
+
+ +
+ + +
+ + {/* Shop by Category */} +
+

SHOP BY CATEGORY

+
+
+
+ + {/* Categories */} +
+ {categories.map((category, index) => ( +
+ {category.title} +

{category.title}

+
+ ))} +
+ + {/* Footer */} +
+ Download App + Swiggy +
+
+
+

Categories

+
    +
  • Office
  • +
  • Office in Delhi
  • +
  • Office in Mumbai
  • +
  • Office in Kolkata
  • +
  • Dairy, Bread, and Eggs
  • +
  • Office and Electricals
  • +
  • Beauty and Grooming
  • +
+
+
+

We deliver to

+
    +
  • Bangalore
  • +
  • Delhi
  • +
  • Mumbai
  • +
  • Kolkata
  • +
  • Jaipur
  • +
  • Pune
  • +
  • Kochi
  • +
+
+
+

Company

+
    +
  • About
  • +
  • Careers
  • +
  • Team
  • +
  • Swiggy Genie
  • +
  • Swiggy One
  • +
+
+
+
+ + + + +
+
+
+ ); +}; + +export default Instamart; diff --git a/css/index.css b/src/components/index.css similarity index 100% rename from css/index.css rename to src/components/index.css diff --git a/css/instamart.css b/src/components/instamart.css similarity index 100% rename from css/instamart.css rename to src/components/instamart.css diff --git a/src/pages/signup.css b/src/components/signup.css similarity index 100% rename from src/pages/signup.css rename to src/components/signup.css diff --git a/src/pages/signup.js b/src/components/signup.js similarity index 100% rename from src/pages/signup.js rename to src/components/signup.js diff --git a/src/index.js b/src/index.js index 2484500..0df1e73 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,6 @@ import React from 'react'; import { BrowserRouter } from 'react-router-dom'; import ReactDOM from 'react-dom/client'; // React 18's createRoot API -import { SpeedInsights } from "@vercel/speed-insights/react"; // Import SpeedInsights import 'bootstrap/dist/css/bootstrap.min.css'; import './index.css'; @@ -12,7 +11,6 @@ const root = ReactDOM.createRoot(document.getElementById('root')); // Create roo root.render( - {/* Add SpeedInsights at the root level */} diff --git a/src/pages/css/instamart.css b/src/pages/css/instamart.css deleted file mode 100644 index 78035e4..0000000 --- a/src/pages/css/instamart.css +++ /dev/null @@ -1,147 +0,0 @@ -body{ - - margin: 0; - padding: 0; - - justify-content: center; - -} -.top_menu{ - background: linear-gradient(to bottom,rgb(248, 238, 249),white); - width: 90%; - padding: 70px 20px; - box-sizing: border-box; - display: flex; - justify-content: center; - margin: 0 auto; - border-bottom-left-radius: 20px; - border-bottom-right-radius: 20px; - flex-direction: column; - position: relative; - justify-content: space-between; -} -.shop{ - display: flex; - margin-left: 10vh; - font-weight: bold; - width: 70%; - justify-content: left; -} -.line{ - margin-top: 0; - border-bottom: 2px solid gray; - flex-grow: 0.2; - margin-left: 5vh; - margin-right: 5vh; - display: flex; - justify-content: center; -} -.items{ - display: flex; - flex-wrap: wrap; - justify-content: space-between; - padding:15vh; - gap: 30px; - margin: left right 10px 10px; -} -.fruit,.box{ - width: 100px; - text-align: center; - margin-bottom: 20px; - justify-content: space-between 40px; - font-size: 9px; - display: inline-block; - vertical-align: top; - -} -.fruit img,.box img{ - width: 100%; - height: auto; - justify-content: space-between 40px; -} -.top_menu .fa-search{ - position:absolute; - right: 50px; - top:45%; - transform: translate(-50%); - font-size: 16px; - color: gray; - pointer-events: none; -} -.top_menu input[type="search"]{ - width: 100%; - padding-left: 30px; - border: 1px solid gray; - height:7vh; - border-radius:10px; - text-align: left; - margin-bottom: 5px; - box-sizing: border-box; -} -.top_menu .login_circle { - position:absolute; - left: 1080px; - width: 40px; - height: 40px; - display: flex; - align-items: center; - justify-content: center; - background-color: gray; - border-radius: 50%; - margin-bottom: 10px; - top: 10%; -} - -.top_menu .fa-user { - font-size: 24px; - color: white; -} -.container{ - display: flex; - justify-content: space-between; - align-items: center; -} -.footer_logo{ - margin-left: 20px; - margin-top: 40px; -} -.footer{ - background: black; - width: 90%; - padding: 70px 20px; - box-sizing: border-box; - display: flex; - justify-content: center; - margin: 0 auto; - border-bottom-left-radius: 20px; - border-bottom-right-radius: 20px; - flex-direction: column; - position: relative; - justify-content: space-between; -} -.footer_list1,.footer_list2,.footer_list3{ - width: 30%; - color: gray; - margin-left: 30px; - font-weight: bold; - font-size: 15px; -} -.icons{ - font-size: 20px; - color: white; - display: flex; - justify-content: right; - margin-right: 10px; - gap: 10px; -} -.footer img { - display: block; /* Make sure the image is displayed */ - width: 100%; - height: auto; -} -.moving-text { - font-size: 2rem; - white-space: nowrap; - position: absolute; - animation: move 5s linear infinite; -} \ No newline at end of file diff --git a/src/pages/instamart.html b/src/pages/instamart.html deleted file mode 100644 index 8b152bf..0000000 --- a/src/pages/instamart.html +++ /dev/null @@ -1,306 +0,0 @@ - - - - - - Document - - - - - - -
- - - - -
- -
- -

SHOP BY CATEGORY

-
-
- -
-
- -
-
- - -
-

- Fresh Fruit -

-
-
- -
-

- Fresh Vegetables -

-
-
- -
-

- Atta,Rice and Dals -

-
-
- -
-

- Masalas and Dry Fruits -

-
-
- -
-

- Dairy,Bread and Eggs -

-
- -
- -
-

- Oils nad Ghee -

-
-
- -
-

- Meant and Seafood -

-
- -
- -
-

- Munchies -

-
-
- -
-

- Cold Drinks and Juices -

-
-
- -
-

- Sweet Tooth -

-
-
- -
-

- Baby Care -

-
-
- -
-

- Bath,Body and Hair -

-
-
- -
-

- Beauty and Grooming -

-
-
- -
-

- Cereal and Breakfast -

-
-
- -
-

- Cleaning Essential -

-
-
- -
-

- Home and Kitchen -

-
-
- -
-

- Hygiene and Wellness -

-
-
- -
-

- Instant and Frozen Food -

-
-
- -
-

- Office and Electricals -

-
-
- -
-

- Paan Corner -

-
-
- -
-

- Sauces and Spread -

-
-
- -
-

- Tea , Coffee and More -

-
-
- -
-

- Pet Supplies -

-
-
- -
-

- Biscuits and Cakes -

-
- - - -
- -