Skip to content

Commit ce76a3f

Browse files
committed
Add footer
1 parent e8a304d commit ce76a3f

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

src/components/App.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.App {
2+
margin-bottom: 50px;
3+
}
4+
15
.Header {
26
display: flex;
37
align-items: center;

src/components/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import TextBox from './TextBox';
66
import { createMuiTheme, ThemeProvider, IconButton } from '@material-ui/core';
77
import { Settings } from './Settings';
88
import logo from '../resources/logo.png'
9+
import { Footer } from './Footer';
910

1011
enum TextType {
1112
LEFT, RIGHT
@@ -96,6 +97,7 @@ class App extends React.Component<{}, AppState> {
9697
rightTitle="Changed"
9798
/>
9899
</div>
100+
<Footer/>
99101
</div>
100102
</ThemeProvider>
101103
);

src/components/Footer.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.Footer {
2+
position: fixed;
3+
bottom: 0;
4+
left: 0;
5+
padding: 0px 15px;
6+
color: grey;
7+
}
8+
9+
.Footer a, .Footer a:visited {
10+
color: darkgrey;
11+
}
12+
13+
.Footer a:hover {
14+
color: rgb(141, 129, 129);
15+
}

src/components/Footer.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React, { FunctionComponent } from "react";
2+
import './Footer.css'
3+
4+
export const Footer: FunctionComponent = function(props) {
5+
return (
6+
<div className="Footer">
7+
<p>Made by <a href="https://max-heidinger.de">Max Heidinger</a></p>
8+
</div>
9+
);
10+
}

0 commit comments

Comments
 (0)