Skip to content

Commit

Permalink
show link to github
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Gatilin committed Jan 23, 2024
1 parent d043a81 commit f1dc7a2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"@typescript-eslint"
],
"rules": {
"semi": "error"
"semi": "error",
"import/prefer-default-export": "off"
}
},
"browserslist": {
Expand Down
21 changes: 21 additions & 0 deletions src/components/Intro/Intro.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
import styled from 'styled-components';
import { ReactComponent as GithubIcon } from '../../icons/github.svg';

export const Container = styled.div`
padding: 10px 30px;
font-size: 20px;
text-align: center;
position: relative;
`;

export const GithubLink = styled.a`
position: absolute;
top: 20px;
right: 20px;
color: #000;
@media (prefers-color-scheme: dark) {
color: #ff9f43;
};
`;

export function Intro() {
return (
<Container>
Эх, когда-нибудь я найду время, чтобы...
<GithubLink
href="https://github.com/maximgatilin/check_later"
aria-label="github link"
target="_blank"
rel="noreferrer"
>
<GithubIcon width="30px" />
</GithubLink>
</Container>
);
}
1 change: 1 addition & 0 deletions src/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/todo.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Todo items

## V1 Remaining
* Show link to github in the UI
* Favicon & title
* Proper readme with link to the deployed app

## Features
Expand Down

0 comments on commit f1dc7a2

Please sign in to comment.