forked from ethereum/ethereum-org-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssetDownload.stories.tsx
More file actions
38 lines (31 loc) · 867 Bytes
/
Copy pathAssetDownload.stories.tsx
File metadata and controls
38 lines (31 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import type { Meta, StoryObj } from "@storybook/react"
import AssetDownload from "."
import ethDiamondBlack from "@/public/images/assets/eth-diamond-black.png"
import hero from "@/public/images/home/hero.png"
const meta = {
title: "Molecules / Display Content / AssetDownload",
component: AssetDownload,
parameters: {
layout: "centered",
},
tags: ["autodocs"],
} satisfies Meta<typeof AssetDownload>
export default meta
type Story = StoryObj<typeof meta>
export const WithArtist: Story = {
args: {
title: "Ethereum hero",
alt: "Ethereum hero",
image: hero,
artistName: "Liam Cobb",
artistUrl: "https://liamcobb.com/",
},
}
export const BrandAsset: Story = {
args: {
title: "ETH Diamond Glyph",
alt: "ETH Diamond Glyph",
image: ethDiamondBlack,
svgUrl: "/images/assets/svgs/eth-diamond-glyph.svg",
},
}