Add Footer

This commit is contained in:
Jake Runyan 2024-12-25 13:25:26 -10:00
parent 2625c9c78e
commit 71687100d7
5 changed files with 33 additions and 13 deletions

View File

@ -3,6 +3,7 @@ import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import Navbar from './components/Navbar'; import Navbar from './components/Navbar';
import Home from './components/Home'; import Home from './components/Home';
import Contact from './components/Contact'; import Contact from './components/Contact';
import Footer from './components/Footer';
const App = () => { const App = () => {
return ( return (
@ -14,6 +15,7 @@ const App = () => {
<Route path="/contact" element={<Contact />} /> <Route path="/contact" element={<Contact />} />
</Routes> </Routes>
</div> </div>
<Footer />
</Router> </Router>
); );
}; };

View File

@ -4,9 +4,7 @@ const Contact = () => {
return ( return (
<div className="contact"> <div className="contact">
<h1>Contact Me</h1> <h1>Contact Me</h1>
<p>Email: jake@example.com</p> <p>Email: jake@runyan.dev</p>
<p>Phone: (123) 456-7890</p>
{/* Add more contact information as needed */}
</div> </div>
); );
}; };

View File

@ -0,0 +1,8 @@
.footer {
background-color: #333;
text-align: center;
padding: 10px 0;
position: relative;
bottom: 0; /* Stick to the bottom */
width: 100%;
}

12
src/components/Footer.js Normal file
View File

@ -0,0 +1,12 @@
import React from 'react';
import './Footer.css';
const Footer = () => {
return (
<footer className="footer">
<p>&copy; {new Date().getFullYear()} Jake Runyan. All rights reserved.</p>
</footer>
);
};
export default Footer;

View File

@ -1,18 +1,18 @@
.gallery { .gallery {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive columns */ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
margin: 0 auto; /* Adjust for spacing */ margin: 0 auto;
} }
.gallery-photo { .gallery-photo {
margin: 4px; /* Vertical padding between items */ margin: 4px;
margin-left: 4px; /* Horizontal padding between items */ margin-left: 4px;
margin-right: 4px; /* Horizontal padding between items */ margin-right: 4px;
border-radius: 8px; /* Optional: Add rounded corners */ border-radius: 8px;
display: block; /* Ensure images are block elements */ display: block;
height: auto; /* Maintain aspect ratio */ height: auto;
max-width: 30vw; max-width: 30vw; /* Do not mix with max-height! */
object-fit: cover; /* Ensure images cover the area without distortion */ object-fit: cover;
} }
/* Responsive adjustments */ /* Responsive adjustments */