-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: docs navbar, paddingcontainer, and text
- Loading branch information
Showing
21 changed files
with
615 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ export const Description = styled.p` | |
color: #516371; | ||
font-weight: 400; | ||
font-size: 18px; | ||
`; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { usePathname } from 'next/navigation'; | ||
import Link from 'next/link'; | ||
import { | ||
MenuContainer, | ||
TitleContainer, | ||
ListLink, | ||
ListItem, | ||
Contact, | ||
} from './navbar.style'; | ||
import Text from '../Text/text'; | ||
import React from 'react'; | ||
|
||
interface HamburgerProps { | ||
isVisible: boolean; | ||
} | ||
|
||
export default function LinkComponent({ isVisible }: HamburgerProps) { | ||
const pathName = usePathname(); | ||
|
||
return ( | ||
<> | ||
<TitleContainer> | ||
<Link href={'/'}> | ||
<Text | ||
tag={'h1'} | ||
family="Lato" | ||
weight="900" | ||
color="#383838" | ||
type={'subtitle2'} | ||
> | ||
Digi Dreams | ||
</Text> | ||
</Link> | ||
</TitleContainer> | ||
|
||
<MenuContainer $isShow={isVisible}> | ||
<ListLink> | ||
<ListItem $isSelect={pathName === '/'}> | ||
<Link href={'/'}>Home</Link> | ||
</ListItem> | ||
|
||
<ListItem $isSelect={pathName === '/about'}> | ||
<Link href={'/about'}>About Us</Link> | ||
</ListItem> | ||
|
||
<ListItem $isSelect={pathName === '/solutions'}> | ||
<Link href={'/solutions'}>Solutions</Link> | ||
</ListItem> | ||
|
||
<ListItem $isSelect={pathName === '/blog'}> | ||
<Link href={'/blog'}>Blog</Link> | ||
</ListItem> | ||
|
||
<ListItem $isSelect={pathName === '/internship'}> | ||
<Link href={'/internship'}>Internship</Link> | ||
</ListItem> | ||
</ListLink> | ||
|
||
<Contact $isMobile={true}> | ||
<Link data-testid="mobile-contact" href={'contact'}> | ||
Lets Talk | ||
</Link> | ||
</Contact> | ||
</MenuContainer> | ||
|
||
<Contact $isMobile={false}> | ||
<Link data-testid="dekstop-contact" href={'contact'}> | ||
Lets Talk | ||
</Link> | ||
</Contact> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { Title, Description, Subtitle, Stories, Primary as PrimaryDocBlock, Controls} from "@storybook/blocks" | ||
import Navbar from "./navbar"; | ||
|
||
const meta = { | ||
title: "Components/Navbar", | ||
component: Navbar, | ||
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs | ||
tags: ["autodocs"], | ||
parameters: { | ||
// More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout | ||
layout: "fullscreen", | ||
componentSubtitle: "'Component Navbar", | ||
docs: { | ||
page: () => <> | ||
<Title /> | ||
<Description /> | ||
<Subtitle /> | ||
|
||
<PrimaryDocBlock /> | ||
<Controls /> | ||
|
||
<Stories /> | ||
</>, | ||
}, | ||
}, | ||
} satisfies Meta<typeof Navbar>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const NavbarDefault: Story = { | ||
}; |
Oops, something went wrong.