From f1dc7a2daf8a9fce2ab154e7105d7ed2d86e21cb Mon Sep 17 00:00:00 2001 From: Maksim Gatilin Date: Tue, 23 Jan 2024 16:36:35 +0300 Subject: [PATCH] show link to github --- package.json | 3 ++- src/components/Intro/Intro.tsx | 21 +++++++++++++++++++++ src/icons/github.svg | 1 + src/todo.md | 2 +- 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 src/icons/github.svg diff --git a/package.json b/package.json index abde71e..3df4785 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,8 @@ "@typescript-eslint" ], "rules": { - "semi": "error" + "semi": "error", + "import/prefer-default-export": "off" } }, "browserslist": { diff --git a/src/components/Intro/Intro.tsx b/src/components/Intro/Intro.tsx index a604324..e78ceca 100644 --- a/src/components/Intro/Intro.tsx +++ b/src/components/Intro/Intro.tsx @@ -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 ( Эх, когда-нибудь я найду время, чтобы... + + + ); } diff --git a/src/icons/github.svg b/src/icons/github.svg new file mode 100644 index 0000000..1a1fe8c --- /dev/null +++ b/src/icons/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/todo.md b/src/todo.md index 08d3e94..c92ed29 100644 --- a/src/todo.md +++ b/src/todo.md @@ -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