From 025d9c90c77282b070338dffda1dfa5d92810fc7 Mon Sep 17 00:00:00 2001 From: Karol Stawowski Date: Wed, 1 Nov 2023 16:50:12 +0100 Subject: [PATCH] feat: change project buttons --- src/components/Projects/LivePreviewButton.tsx | 6 ++--- src/components/Projects/RepositoryButton.tsx | 4 +-- src/icons/{Play.tsx => ExternalLink.tsx} | 13 +++++----- src/icons/Link.tsx | 26 +++++++++++++++++++ tailwind.config.js | 4 ++- 5 files changed, 40 insertions(+), 13 deletions(-) rename src/icons/{Play.tsx => ExternalLink.tsx} (51%) create mode 100644 src/icons/Link.tsx diff --git a/src/components/Projects/LivePreviewButton.tsx b/src/components/Projects/LivePreviewButton.tsx index 9b257fa..f2a7cbb 100644 --- a/src/components/Projects/LivePreviewButton.tsx +++ b/src/components/Projects/LivePreviewButton.tsx @@ -1,4 +1,4 @@ -import { Play } from '../../icons/Play' +import { Link } from '../../icons/Link' type LivePreviewButtonProps = { url: string; name: string } @@ -8,8 +8,8 @@ export const LivePreviewButton = ({ }: LivePreviewButtonProps): JSX.Element => { return ( - - + + ) diff --git a/src/components/Projects/RepositoryButton.tsx b/src/components/Projects/RepositoryButton.tsx index c2cf992..b89a597 100644 --- a/src/components/Projects/RepositoryButton.tsx +++ b/src/components/Projects/RepositoryButton.tsx @@ -12,11 +12,11 @@ export const RepositoryButton = ({ return ( - + ) } diff --git a/src/icons/Play.tsx b/src/icons/ExternalLink.tsx similarity index 51% rename from src/icons/Play.tsx rename to src/icons/ExternalLink.tsx index 4874fe3..e4c2e8f 100644 --- a/src/icons/Play.tsx +++ b/src/icons/ExternalLink.tsx @@ -1,11 +1,12 @@ import { FC, SVGProps } from 'react' -export const Play: FC> = ({ +export const ExternalLink: FC> = ({ ...props }): JSX.Element => { return ( > = ({ strokeLinejoin="round" {...props} > - - + + + + ) } diff --git a/src/icons/Link.tsx b/src/icons/Link.tsx new file mode 100644 index 0000000..3fbc124 --- /dev/null +++ b/src/icons/Link.tsx @@ -0,0 +1,26 @@ +import { FC, SVGProps } from 'react' + +export const Link: FC> = ({ + ...props +}): JSX.Element => { + return ( + + + + + + + ) +} diff --git a/tailwind.config.js b/tailwind.config.js index 388c8b3..073baad 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -13,11 +13,13 @@ module.exports = { console: ['consolas', 'monaco', 'monospace'], }, colors: { - primary: '#00ABBD', + primary: '#00BCD1', secondary: '#0C2F3B', accent: '#3CB0D7', background: '#030A0D', text: '#D5EEF6', + button: '#e1f8ff', + 'button-hover': '#bfd3d9', 'monitor-inner-border': '#32323C', 'monitor-side-pannel': '#0B0D14', 'monitor-outer-border': '#393A3C',