Skip to content

Commit 391ff71

Browse files
committed
small copyright thing
1 parent b8b9040 commit 391ff71

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ yarn-error.log*
2525
.env
2626

2727
*.crx
28-
*.pem
28+
*.pem
29+
*.zip

src/App.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ const AppSetup: React.FC<any> = () => {
6060

6161
(AppSetup as any).whyDidYouRender = true;
6262

63+
const Copyright = () => (
64+
<div className="copyright">
65+
<p>Copyright 2021 © Alek Angelov</p>
66+
</div>
67+
);
68+
6369
const SubApp = () => {
6470
return (
6571
<>
@@ -76,6 +82,7 @@ const SubApp = () => {
7682
</div>
7783
</div>
7884
</div>
85+
<Copyright />
7986
</HashRouter>
8087
</>
8188
);

src/styles/_base.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,16 @@ p {
220220
grid-gap: 2rem;
221221
grid-template-rows: 1fr 1fr;
222222
}
223+
224+
.copyright {
225+
position: fixed;
226+
bottom: 0;
227+
right: 0;
228+
color: white;
229+
opacity: 0.2;
230+
padding: 1rem;
231+
p {
232+
margin: 0;
233+
font-size: 0.5rem;
234+
}
235+
}

0 commit comments

Comments
 (0)