diff --git a/src/components/Icons/DiscordIcon/DiscordIcon.tsx b/src/components/Icons/DiscordIcon/DiscordIcon.tsx new file mode 100644 index 0000000..444542e --- /dev/null +++ b/src/components/Icons/DiscordIcon/DiscordIcon.tsx @@ -0,0 +1,20 @@ +import { LsdIcon } from '@acid-info/lsd-react' + +export const DiscordIcon = LsdIcon( + (props) => ( + + + + ), + { filled: true }, +) diff --git a/src/components/Icons/DiscordIcon/index.ts b/src/components/Icons/DiscordIcon/index.ts new file mode 100644 index 0000000..b52200a --- /dev/null +++ b/src/components/Icons/DiscordIcon/index.ts @@ -0,0 +1 @@ +export * from './DiscordIcon' diff --git a/src/components/Icons/XIcon/XIcon.tsx b/src/components/Icons/XIcon/XIcon.tsx new file mode 100644 index 0000000..7599f0b --- /dev/null +++ b/src/components/Icons/XIcon/XIcon.tsx @@ -0,0 +1,19 @@ +import { LsdIcon } from '@acid-info/lsd-react' + +export const XIcon = LsdIcon( + (props) => ( + + + + ), + { filled: true }, +) diff --git a/src/components/Icons/XIcon/index.ts b/src/components/Icons/XIcon/index.ts new file mode 100644 index 0000000..eb8d1ed --- /dev/null +++ b/src/components/Icons/XIcon/index.ts @@ -0,0 +1 @@ +export * from './XIcon' diff --git a/src/components/Icons/YTIcon/YoutubeIcon.tsx b/src/components/Icons/YTIcon/YoutubeIcon.tsx new file mode 100644 index 0000000..5332ed9 --- /dev/null +++ b/src/components/Icons/YTIcon/YoutubeIcon.tsx @@ -0,0 +1,19 @@ +import { LsdIcon } from '@acid-info/lsd-react' + +export const YoutubeIcon = LsdIcon( + (props) => ( + + + + ), + { filled: true }, +) diff --git a/src/components/Icons/YTIcon/index.ts b/src/components/Icons/YTIcon/index.ts new file mode 100644 index 0000000..ae48954 --- /dev/null +++ b/src/components/Icons/YTIcon/index.ts @@ -0,0 +1 @@ +export * from './YoutubeIcon' diff --git a/src/components/NavBar/NavBar.tsx b/src/components/NavBar/NavBar.tsx index 36fb1c9..ca21232 100644 --- a/src/components/NavBar/NavBar.tsx +++ b/src/components/NavBar/NavBar.tsx @@ -12,6 +12,7 @@ import { useRouter } from 'next/router' import { useEffect, useState } from 'react' import { NavbarState, useNavbarState } from '../../states/navbarState' import { LogosIcon } from '../Icons/LogosIcon' +import { SocialMediaKit } from '@/components/NavBar/Navbar.SocialMediaKit' export interface NavBarProps { defaultState?: Partial @@ -53,6 +54,7 @@ export default function NavBar({ defaultState }: NavBarProps) { +
- {/* onSearchIconClick()}*/} - {/*>*/} - {/* */} - {/**/}
{showMobileMenu && } - {/**/} - {/* */} - {/**/} ) } @@ -111,7 +96,7 @@ const NavBarContainer = styled.nav<{ bordered?: boolean }>` display: flex; - padding: 8px 0; + padding: 16px 0; align-items: center; justify-content: space-between; position: relative; @@ -158,6 +143,12 @@ const LeftContainer = styled(Link)` ` const ControlsContainer = styled.div` + position: absolute; + right: 0; + display: flex; + align-items: center; + gap: 24px; + .theme-switch { display: block; } diff --git a/src/components/NavBar/Navbar.Links.tsx b/src/components/NavBar/Navbar.Links.tsx index f67849a..cccd044 100644 --- a/src/components/NavBar/Navbar.Links.tsx +++ b/src/components/NavBar/Navbar.Links.tsx @@ -1,18 +1,28 @@ import Link from 'next/link' import styled from '@emotion/styled' +import { Typography } from '@acid-info/lsd-react' +import { useRouter } from 'next/router' interface Props { links: { href: string; label: string }[] } export const NavbarLinks = ({ links }: Props) => { + const router = useRouter() + const { pathname } = router return ( {links.map((link, idx) => ( <> - - {link.label} - + + + {link.label} + + {idx !== links.length - 1 && } ))} @@ -24,10 +34,15 @@ const Container = styled.div` display: flex; justify-content: center; align-items: center; + a { text-decoration: none; } + a:hover, a:active, a:focus, a.active { + text-decoration: underline; + } + .divider { display: block; width: 2px; @@ -38,7 +53,7 @@ const Container = styled.div` } @media (max-width: ${({ theme }) => theme.breakpoints.sm.width}px) { - flex-direction: column; + flex -direction: column; align-items: flex-start; .divider { display: none; diff --git a/src/components/NavBar/Navbar.SocialMediaKit.tsx b/src/components/NavBar/Navbar.SocialMediaKit.tsx new file mode 100644 index 0000000..ee2e658 --- /dev/null +++ b/src/components/NavBar/Navbar.SocialMediaKit.tsx @@ -0,0 +1,29 @@ +import styled from '@emotion/styled' +import Link from 'next/link' +import { DiscordIcon } from '@/components/Icons/DiscordIcon' +import { XIcon } from '@/components/Icons/XIcon' +import { YoutubeIcon } from '@/components/Icons/YTIcon' + +export const SocialMediaKit = () => { + return ( + + + + + + + + + + + + ) +} +const Container = styled.div` + display: flex; + align-items: center; + gap: 8px; + a { + display: flex; + } +`