-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50b3909
commit a59b7fa
Showing
15 changed files
with
316 additions
and
3,395 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
File renamed without changes.
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 |
---|---|---|
@@ -1,14 +1,113 @@ | ||
import { Section, type SectionProps } from "ui"; | ||
import { IconInstagram, IconLinkedin, IconTwitter, IconYoutube } from "icons"; | ||
import { | ||
ButtonGroup, | ||
Flex, | ||
FlexItem, | ||
IconButton, | ||
Logo, | ||
Section, | ||
TextLink, | ||
TextLinkList, | ||
TextListItem, | ||
TextStrong, | ||
type SectionProps, | ||
} from "ui"; | ||
|
||
export type StandardFooterProps = Omit<SectionProps, "variant" | "padding">; | ||
export function StandardFooter({ className, ...props }: StandardFooterProps) { | ||
return ( | ||
<Section | ||
elementType="footer" | ||
variant="brand" | ||
variant="stroke" | ||
paddingTop="md" | ||
paddingBottom="lg" | ||
style={{ marginTop: "auto" }} | ||
{...props} | ||
/> | ||
> | ||
<Flex wrap type="quarter" gap="xl" container> | ||
<FlexItem size="minor"> | ||
<Flex direction="column" gap="xl" alignSecondary="start"> | ||
<FlexItem> | ||
<Logo /> | ||
</FlexItem> | ||
<SocialButtons /> | ||
</Flex> | ||
</FlexItem> | ||
<FlexItem size="minor"> | ||
<TextLinkList title={<TextStrong>Something 1</TextStrong>}> | ||
<TextListItem> | ||
<TextLink href="#">List item 1</TextLink> | ||
</TextListItem> | ||
<TextListItem> | ||
<TextLink href="#">List item 2</TextLink> | ||
</TextListItem> | ||
<TextListItem> | ||
<TextLink href="#">List item 3</TextLink> | ||
</TextListItem> | ||
</TextLinkList> | ||
</FlexItem> | ||
<FlexItem size="minor"> | ||
<TextLinkList title={<TextStrong>Something 2</TextStrong>}> | ||
<TextListItem> | ||
<TextLink href="#">List item 1</TextLink> | ||
</TextListItem> | ||
<TextListItem> | ||
<TextLink href="#">List item 2</TextLink> | ||
</TextListItem> | ||
<TextListItem> | ||
<TextLink href="#">List item 3</TextLink> | ||
</TextListItem> | ||
</TextLinkList> | ||
</FlexItem> | ||
<FlexItem size="minor"> | ||
<TextLinkList title={<TextStrong>Something 3</TextStrong>}> | ||
<TextListItem> | ||
<TextLink href="#">List item 1</TextLink> | ||
</TextListItem> | ||
<TextListItem> | ||
<TextLink href="#">List item 2</TextLink> | ||
</TextListItem> | ||
<TextListItem> | ||
<TextLink href="#">List item 3</TextLink> | ||
</TextListItem> | ||
</TextLinkList> | ||
</FlexItem> | ||
</Flex> | ||
</Section> | ||
); | ||
} | ||
|
||
export function SocialButtons() { | ||
return ( | ||
<ButtonGroup> | ||
<IconButton | ||
variant="subtle" | ||
aria-label="Twitter" | ||
href="https://www.twitter.com" | ||
> | ||
<IconTwitter /> | ||
</IconButton> | ||
<IconButton | ||
variant="subtle" | ||
aria-label="Instagram" | ||
href="https://www.instagram.com" | ||
> | ||
<IconInstagram /> | ||
</IconButton> | ||
<IconButton | ||
variant="subtle" | ||
aria-label="YouTube" | ||
href="https://www.youtube.com" | ||
> | ||
<IconYoutube /> | ||
</IconButton> | ||
<IconButton | ||
variant="subtle" | ||
aria-label="LinkedIn" | ||
href="https://www.linkedin.com" | ||
> | ||
<IconLinkedin /> | ||
</IconButton> | ||
</ButtonGroup> | ||
); | ||
} |
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,21 @@ | ||
import { Meta, StoryObj } from "@storybook/react"; | ||
import { Flex, Section } from "ui"; | ||
import { StandardHeader } from "./Headers"; | ||
|
||
const meta: Meta<typeof StandardHeader> = { | ||
component: StandardHeader, | ||
title: "blocks/Headers", | ||
parameters: { layout: "centered" }, | ||
}; | ||
export default meta; | ||
|
||
export const Default: StoryObj<typeof StandardHeader> = { | ||
render: () => ( | ||
<> | ||
<StandardHeader /> | ||
<Section> | ||
<Flex container>Something</Flex> | ||
</Section> | ||
</> | ||
), | ||
}; |
Oops, something went wrong.