File tree Expand file tree Collapse file tree 3 files changed +54
-0
lines changed
Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import DetailChart from './components/DetailChart';
55import ModelListingsView from './components/ModelListingsView' ;
66import NewListings from './components/NewListings' ;
77import NoTeslaToggle from './components/NoTeslaToggle' ;
8+ import Footer from './components/Footer' ;
89
910function App ( ) {
1011 const [ data , setData ] = useState ( [ ] ) ;
@@ -186,6 +187,7 @@ function App() {
186187 </ >
187188 ) }
188189 </ main >
190+ < Footer />
189191 </ div >
190192 ) ;
191193}
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments