import Top from "../../app/components/navigation/Top"; export default { title: "Components/Navigation/Top", component: Top, parameters: { layout: "fullscreen", docs: { description: { component: "Unified navigation component that supports two variants: folderTop (home page style with yellow tab container) and standard (dark sticky header). Supports all props from Figma design: size, loggedIn, folderTop, profile, and logIn.", }, }, }, argTypes: { folderTop: { control: "boolean", description: "When true, renders the home page variant with yellow tab container. When false, renders the standard header variant.", }, loggedIn: { control: "boolean", description: "Whether the user is logged in (affects displayed elements).", }, profile: { control: "boolean", description: "Whether to show the profile avatar.", }, logIn: { control: "boolean", description: "Whether to show the Log in button.", }, }, tags: ["autodocs"], }; // Standard variant (folderTop=false) export const Standard = { args: { folderTop: false, loggedIn: false, profile: false, logIn: true, }, parameters: { docs: { description: { story: "Standard header variant (folderTop=false) with dark background and sticky positioning. Use the Viewport toolbar to see responsive behavior.", }, }, }, }; // Home page variant (folderTop=true) export const HomePage = { args: { folderTop: true, loggedIn: false, profile: false, logIn: true, }, parameters: { docs: { description: { story: "Home page variant (folderTop=true) with transparent background and yellow tab container. Use the Viewport toolbar to see responsive behavior.", }, }, }, }; // Standard variant with logged in user export const StandardLoggedIn = { args: { folderTop: false, loggedIn: true, profile: true, logIn: false, }, parameters: { docs: { description: { story: "Standard header variant with logged in user showing profile avatar instead of login button.", }, }, }, }; // Home page variant with logged in user export const HomePageLoggedIn = { args: { folderTop: true, loggedIn: true, profile: true, logIn: false, }, parameters: { docs: { description: { story: "Home page variant with logged in user showing profile avatar instead of login button.", }, }, }, }; // Standard variant in page context export const StandardInPageContext = { args: { folderTop: false, loggedIn: false, profile: false, logIn: true, }, render: (args) => (

Example Page Content

This demonstrates how the standard header looks in a realistic page context. The header maintains its responsive behavior while providing navigation for the page content.

{[1, 2, 3, 4, 5, 6].map((i) => (

Content Block {i}

This is example content to show how the header integrates with page content.

))}
), parameters: { docs: { description: { story: "The standard header integrated into a full page layout to show how it works in context.", }, }, }, }; // Home page variant in home page context export const HomePageInContext = { args: { folderTop: true, loggedIn: false, profile: false, logIn: true, }, render: (args) => (

Welcome to CommunityRule

This demonstrates how the home header looks in a realistic home page context. The header maintains its transparent background and responsive behavior.

{[1, 2, 3].map((i) => (

Feature {i}

This is example content to show how the home header integrates with home page content.

))}
), parameters: { docs: { description: { story: "The home header integrated into a full home page layout with gradient background to show the transparent header effect.", }, }, }, };