Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 1 addition & 47 deletions green-day-website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion green-day-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@mui/material": "^9.1.1",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"react-responsive": "^10.0.1",
"react-router-dom": "^7.17.0"
},
"devDependencies": {
Expand Down
39 changes: 0 additions & 39 deletions green-day-website/src/Pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,8 @@ import InfoBlock from '../components/InfoBlock';
import { React } from 'react';
import home from '../assets/home.jpg';
import zelle from '../assets/zelle.png';
import { useMediaQuery } from 'react-responsive';

function Home() {

const isMobile = useMediaQuery({ query: '(max-width: 500px)' });

if (isMobile) {
return (
<Box sx={{ flexGrow: 1 }}>
<NavBar />
<Box
sx={{
backgroundImage: `url(${home})`,
backgroundSize: 'cover',
backgroundPosition: 'center',
height: '20vh',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
marginTop: 2
}}
>
<Typography variant="h5" component="h5" align="center" gutterBottom sx={{ marginTop: 4, color: '#FFFFFF', fontWeight: 'bold', textShadow: '2px 2px 4px rgba(0, 0, 0, 0.7)' }}>
Welcome to Green Day Lawn Service!
</Typography>
</Box>
<InfoBlock title="Who are we?" content="Green Day LLC is a locally owned and operated lawn care company based in Smithfield, Virginia. Serving the Hampton Roads area, we are a family business with over 20 years of experience in the lawn care industry. We are committed to providing our customers with the best lawn care services possible, and we take pride in our work." />
<br />
<InfoBlock title="Our Mission:" content="It is Green Day’s mission to provide the best lawn care, turf disease, and turf pest control in the Hampton Roads area, and to be recognized as the industry’s premier provider in our marketplace." />
<br />
<InfoBlock title="Why Choose Us?" content="DON’T PAY A BIG COMPANY FOR LITTLE SERVICE! Before you sign up for another year of increasing program costs and decreasing customer service, give us a call for a free estimate and see the Green Day difference!" />
<br />
<Box sx={{ margin: 2}} >
<img src={zelle} alt="Zelle" onClick={() => window.location.href = 'https://www.zelle.com'} style={{ width: '150px', height: 'auto', marginRight: '20px', display: 'inline-block', verticalAlign: 'middle' }} />
<Typography variant="h4" component="div" sx={{ color: '#6534D1', fontWeight: 'bold', display: 'inline-block', verticalAlign: 'middle' }}> Payment Notice:</Typography>
<Typography variant="body1" component="div" gutterBottom sx={{ fontSize: '24px' }}>We now offer Zelle as a payment option. You can access Zelle through your bank or credit union's mobile app or online banking. We would also ask that any customers currently paying via credit card to consider switching to Zelle. Credit card payments cost you extra money (processing fees) and us time to process the payment. We thank you for your business! Please send Zelle payments to <strong>john@greendayllc.net</strong></Typography>
</Box>
</Box>
);
}

return (
<Box sx={{ flexGrow: 1 }}>
<NavBar />
Expand Down
35 changes: 0 additions & 35 deletions green-day-website/src/components/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,50 +8,15 @@ import {

import { useNavigate } from 'react-router-dom';
import logo from '../assets/logo.png';
import { useMediaQuery } from 'react-responsive';

export default function NavBar() {

const navigate = useNavigate();
const isMobile = useMediaQuery({ query: '(max-width: 500px)' });

function handleNavClick(page) {
navigate(page);
}

if (isMobile) {
return (
<AppBar position="static" sx={{ backgroundColor: "#06402B" }}>
<Toolbar sx={{ px: { xs: 1.5, sm: 2.5 } }}>
<Box sx={{ display: 'flex', alignItems: 'center', flexGrow: 1 }}>
<Box
component="img"
src={logo}
alt="Green Day Lawn Service Logo"
onClick={() => handleNavClick("/")}
sx={{
height: 50,
width: 50,
objectFit: 'contain',
borderRadius: '50%',
backgroundColor: '#fff',
mr: 1.25,
ml: 0.5
}}
/>
<Typography variant="h6" component="div" sx={{ fontSize: '12px' }}>
Green Day LLC
</Typography>
</Box>
<Button variant="outlined" color="inherit" sx={{ marginLeft: 2, fontSize: '10px' }} onClick={() => handleNavClick("/")}>Home</Button>
<Button variant="outlined" color="inherit" sx={{ marginLeft: 2, fontSize: '10px' }} onClick={() => handleNavClick("/lawn-programs")}>Lawn Programs</Button>
<Button variant="outlined" color="inherit" sx={{ marginLeft: 2, fontSize: '10px' }} onClick={() => handleNavClick("/services")}>Services</Button>
<Button variant="outlined" color="inherit" sx={{ marginLeft: 2, fontSize: '10px' }} onClick={() => handleNavClick("/contact")}>Contact</Button>
</Toolbar>
</AppBar>
);
}

return (
<AppBar position="static" sx={{ backgroundColor: "#06402B" }}>
<Toolbar sx={{ px: { xs: 1.5, sm: 2.5 } }}>
Expand Down
Loading
Loading