Skip to content

Commit c1e83f5

Browse files
Page footer
1 parent 2815514 commit c1e83f5

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

src/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import DetailChart from './components/DetailChart';
55
import ModelListingsView from './components/ModelListingsView';
66
import NewListings from './components/NewListings';
77
import NoTeslaToggle from './components/NoTeslaToggle';
8+
import Footer from './components/Footer';
89

910
function App() {
1011
const [data, setData] = useState([]);
@@ -186,6 +187,7 @@ function App() {
186187
</>
187188
)}
188189
</main>
190+
<Footer />
189191
</div>
190192
);
191193
}

src/components/Footer.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.footer {
2+
background: var(--bg-secondary);
3+
border-top: 1px solid var(--border-color);
4+
padding: 2rem 0;
5+
margin-top: 4rem;
6+
}
7+
8+
.footer-content {
9+
max-width: 1200px;
10+
margin: 0 auto;
11+
padding: 0 1rem;
12+
text-align: center;
13+
}
14+
15+
.footer-content p {
16+
margin: 0;
17+
color: var(--text-secondary);
18+
font-size: 0.9rem;
19+
}
20+
21+
.footer-content a {
22+
color: var(--primary-color);
23+
text-decoration: none;
24+
transition: opacity 0.2s;
25+
}
26+
27+
.footer-content a:hover {
28+
opacity: 0.8;
29+
text-decoration: underline;
30+
}

src/components/Footer.jsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from 'react';
2+
import './Footer.css';
3+
4+
function Footer() {
5+
return (
6+
<footer className="footer">
7+
<div className="footer-content">
8+
<p>
9+
<a
10+
href="https://github.com/quicklywilliam/usedevpricetracker"
11+
target="_blank"
12+
rel="noopener noreferrer"
13+
>
14+
View on GitHub
15+
</a>
16+
</p>
17+
</div>
18+
</footer>
19+
);
20+
}
21+
22+
export default Footer;

0 commit comments

Comments
 (0)