Skip to content

Commit f53ccbc

Browse files
Merge pull request #97 from Web-Dev-Path/feature/add-footer-copyright
Add copyright to the footer component including current year
2 parents df34578 + d563e5c commit f53ccbc

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2121
- decoration components
2222
- nav component styling and intersection api
2323
- CardsColumns.js and Card.js
24+
- footer copyright
2425
- Header.js component
2526

2627
### Fixed

components/Footer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ export default function Footer() {
3232
</a>
3333
</Link>
3434
</Container>
35+
<Container>
36+
<p className={footerStyles.footer__copyright}>
37+
© Web Dev Path {new Date().getFullYear()}. All rights reserved.
38+
</p>
39+
</Container>
3540
</footer>
3641
);
3742
}

styles/Footer.module.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
color: $white;
77

88
&__inner {
9-
padding: 2.5rem 0;
9+
padding-top: 2.5rem;
1010
text-align: center;
1111

1212
@include tablet {
@@ -51,4 +51,11 @@
5151
max-width: max-content;
5252
}
5353
}
54+
55+
&__copyright {
56+
text-align: center;
57+
margin: 0;
58+
font-size: 1rem;
59+
padding-bottom: 2.5rem;
60+
}
5461
}

0 commit comments

Comments
 (0)