Skip to content

Commit

Permalink
chnges
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanskriti65 committed Jan 9, 2025
1 parent df58046 commit fedc974
Show file tree
Hide file tree
Showing 14 changed files with 347 additions and 692 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -36,4 +36,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build
publish_dir: build
13 changes: 0 additions & 13 deletions App.js

This file was deleted.

6 changes: 4 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -27,8 +28,9 @@ function App() {
<MainSection3 />
<MainSection4 />
<BestPlacesSection />

<Login/>
<BestGroceries/>
<Instamart/>
<MobileNavbar/>
</div>
);
Expand Down
89 changes: 46 additions & 43 deletions src/components/BestGroceries.js
Original file line number Diff line number Diff line change
@@ -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(
<div>
<h2>Cities with groceries delivery</h2>
const handleShow_more = () => {
try {
setVisibleCount((prevCount) => prevCount + 4);
} catch (error) {
console.error('Error updating visible count:', error);
}
};

<div className='button-grid'>
{cities.slice(0,visibleCount).map((item,index)=>
<button key={index} className='city-button'>{item}</button>)}
<button onClick={handleShow_more}>Show more</button>
</div>
return (
<div>
<h2>Cities with groceries delivery</h2>

</div>
<div className='button-grid'>
{cities.slice(0, visibleCount).map((item, index) =>
<button key={index} className='city-button'>{item}</button>
)}
<button onClick={handleShow_more}>Show more</button>
</div>

</div>
);
};

)}
export default BestGroceries;
170 changes: 85 additions & 85 deletions Contact.css → src/components/Contact.css
Original file line number Diff line number Diff line change
@@ -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;
}
Loading

0 comments on commit fedc974

Please sign in to comment.