-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Kopfzeile component and custom Fira Sans font * add Storybook component
- Loading branch information
1 parent
38ab17e
commit d56f1d8
Showing
7 changed files
with
55 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export default function Kopfzeile() { | ||
This comment has been minimized.
Sorry, something went wrong. |
||
return ( | ||
<div | ||
className="px-16 flex items-center text-left gap-8 sm:gap-16 text-xs sm:text-base" | ||
style={{ | ||
backgroundColor: "#f0f0f0", | ||
fontFamily: "FiraSans, Calibri, Verdana, Arial, Helvetica, sans-serif", | ||
}} | ||
> | ||
<span | ||
aria-hidden="true" | ||
className="flex border-solid h-12 sm:h-16 border-white border" | ||
> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 16"> | ||
<path fill="#000" d="M0 .5h24v5.333H0z" /> | ||
<path fill="red" d="M0 5.833h24v5.333H0z" /> | ||
<path fill="#FACA2C" d="M0 11.167h24V16.5H0z" /> | ||
</svg> | ||
</span> | ||
<span>Eine offizielle Website der Bundesrepublik Deutschland</span> | ||
</div> | ||
This comment has been minimized.
Sorry, something went wrong. |
||
); | ||
} |
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
Binary file not shown.
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,14 @@ | ||
import Kopfzeile from "~/components/Kopfzeile"; | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
const meta = { | ||
title: "Component/Kopfzeile", | ||
component: Kopfzeile, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof Kopfzeile>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = {}; |
should name the component in german? English would be better?
Can you add unit test later?