diff --git a/frontend/src/components/NavBar/NavBar.styled.ts b/frontend/src/components/NavBar/NavBar.styled.ts index d9013dcdd..6f47f7223 100644 --- a/frontend/src/components/NavBar/NavBar.styled.ts +++ b/frontend/src/components/NavBar/NavBar.styled.ts @@ -1,7 +1,8 @@ import styled, { css } from 'styled-components'; import { Link } from 'react-router-dom'; import DiscordIcon from 'components/common/Icons/DiscordIcon'; -import GitIcon from 'components/common/Icons/GitIcon'; +import GitHubIcon from 'components/common/Icons/GitHubIcon'; +import ProductHuntIcon from 'components/common/Icons/ProductHuntIcon'; export const Navbar = styled.nav( ({ theme }) => css` @@ -39,8 +40,12 @@ export const SocialLink = styled.a( fill: ${icons.discord.hover}; } - ${GitIcon} { - fill: ${icons.git.hover}; + ${GitHubIcon} { + fill: ${icons.github.hover}; + } + + ${ProductHuntIcon} { + fill: ${icons.producthunt.hover}; } } @@ -49,8 +54,12 @@ export const SocialLink = styled.a( fill: ${icons.discord.active}; } - ${GitIcon} { - fill: ${icons.git.active}; + ${GitHubIcon} { + fill: ${icons.github.active}; + } + + ${ProductHuntIcon} { + fill: ${icons.producthunt.active}; } } ` diff --git a/frontend/src/components/NavBar/NavBar.tsx b/frontend/src/components/NavBar/NavBar.tsx index 1a58c7e7b..a55be1dfa 100644 --- a/frontend/src/components/NavBar/NavBar.tsx +++ b/frontend/src/components/NavBar/NavBar.tsx @@ -2,12 +2,13 @@ import React, { useContext } from 'react'; import Select from 'components/common/Select/Select'; import Logo from 'components/common/Logo/Logo'; import Version from 'components/Version/Version'; -import GitIcon from 'components/common/Icons/GitIcon'; +import GitHubIcon from 'components/common/Icons/GitHubIcon'; import DiscordIcon from 'components/common/Icons/DiscordIcon'; import AutoIcon from 'components/common/Icons/AutoIcon'; import SunIcon from 'components/common/Icons/SunIcon'; import MoonIcon from 'components/common/Icons/MoonIcon'; import { ThemeModeContext } from 'components/contexts/ThemeModeContext'; +import ProductHuntIcon from 'components/common/Icons/ProductHuntIcon'; import UserInfo from './UserInfo/UserInfo'; import * as S from './NavBar.styled'; @@ -85,7 +86,7 @@ const NavBar: React.FC = ({ onBurgerClick }) => { isThemeMode /> - + = ({ onBurgerClick }) => { > + + + diff --git a/frontend/src/components/common/Icons/GitIcon.tsx b/frontend/src/components/common/Icons/GitHubIcon.tsx similarity index 90% rename from frontend/src/components/common/Icons/GitIcon.tsx rename to frontend/src/components/common/Icons/GitHubIcon.tsx index daecb611f..e9132c76f 100644 --- a/frontend/src/components/common/Icons/GitIcon.tsx +++ b/frontend/src/components/common/Icons/GitHubIcon.tsx @@ -1,7 +1,7 @@ import React from 'react'; import styled from 'styled-components'; -const GitIcon: React.FC<{ className?: string }> = ({ className }) => ( +const GitHubIcon: React.FC<{ className?: string }> = ({ className }) => ( = ({ className }) => ( ); -export default styled(GitIcon)``; +export default styled(GitHubIcon)``; diff --git a/frontend/src/components/common/Icons/ProductHuntIcon.tsx b/frontend/src/components/common/Icons/ProductHuntIcon.tsx new file mode 100644 index 000000000..b0f660491 --- /dev/null +++ b/frontend/src/components/common/Icons/ProductHuntIcon.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import styled from 'styled-components'; + +const ProductHuntIcon: React.FC<{ className?: string }> = ({ className }) => ( + + + + +); + +export default styled(ProductHuntIcon)``; diff --git a/frontend/src/theme/theme.ts b/frontend/src/theme/theme.ts index 3ece147a2..084e50f4e 100644 --- a/frontend/src/theme/theme.ts +++ b/frontend/src/theme/theme.ts @@ -209,14 +209,19 @@ const baseTheme = { closeModalIcon: Colors.neutral[25], savedIcon: Colors.brand[50], dropdownArrowIcon: Colors.neutral[50], - git: { + github: { hover: Colors.neutral[90], active: Colors.neutral[70], }, discord: { normal: Colors.neutral[20], hover: Colors.blue[45], - active: Colors.brand[15], + active: '#B8BEF9', + }, + producthunt: { + normal: Colors.neutral[20], + hover: '#FF6154', + active: '#FFBDB8', }, }, textArea: { @@ -1172,15 +1177,19 @@ export const darkTheme: ThemeType = { sunIcon: Colors.neutral[0], infoIcon: Colors.neutral[70], savedIcon: Colors.brand[30], - git: { - ...baseTheme.icons.git, + github: { + ...baseTheme.icons.github, hover: Colors.neutral[70], - active: Colors.neutral[90], + active: Colors.neutral[85], }, discord: { ...baseTheme.icons.discord, normal: Colors.neutral[30], }, + producthunt: { + ...baseTheme.icons.producthunt, + normal: Colors.neutral[5], + }, }, textArea: { ...baseTheme.textArea,