-
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.
feat: add song cell and refine other cells
- Loading branch information
1 parent
214e218
commit a52f721
Showing
7 changed files
with
251 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,7 @@ export const Default = Template.bind({}); | |
Default.args = { | ||
href: '/', | ||
title: 'ごめんねFingers Crossed', | ||
number: '27', | ||
type: 'single', | ||
caption: '27th. single', | ||
image: { | ||
sm: '/images/artworks/singles/27/[email protected]', | ||
md: '/images/artworks/singles/27/[email protected]', | ||
|
@@ -41,8 +40,7 @@ export const LongTitle = Template.bind({}); | |
LongTitle.args = { | ||
href: '/', | ||
title: '夜明けまで強がらなくてもいい', | ||
number: '24', | ||
type: 'single', | ||
caption: '24th. single', | ||
image: { | ||
sm: '/images/artworks/singles/24/[email protected]', | ||
md: '/images/artworks/singles/24/[email protected]', | ||
|
@@ -56,8 +54,7 @@ export const FallbackBackground = Template.bind({}); | |
FallbackBackground.args = { | ||
href: '/', | ||
title: 'ごめんねFingers Crossed', | ||
number: '27', | ||
type: 'single', | ||
caption: '27th. single', | ||
image: { | ||
sm: '/images/artworks/singles/27/[email protected]', | ||
md: '/images/artworks/singles/27/[email protected]', | ||
|
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ Default.args = { | |
name: 'Saito Asuka', | ||
nameLang: 'en', | ||
number: 1, | ||
position: 'fukujin', | ||
caption: 'fukujin', | ||
image: { | ||
sm: '/images/members/singles/27/[email protected]', | ||
md: '/images/members/singles/27/[email protected]', | ||
|
@@ -44,7 +44,7 @@ Japanese.args = { | |
name: '齋藤飛鳥', | ||
nameLang: 'ja', | ||
number: 1, | ||
position: 'fukujin', | ||
caption: 'fukujin', | ||
image: { | ||
sm: '/images/members/singles/27/[email protected]', | ||
md: '/images/members/singles/27/[email protected]', | ||
|
@@ -73,7 +73,7 @@ export const NoNumber = Template.bind({}); | |
NoNumber.args = { | ||
href: '/', | ||
name: 'Saito Asuka', | ||
position: 'fukujin', | ||
caption: 'fukujin', | ||
image: { | ||
sm: '/images/members/singles/27/[email protected]', | ||
md: '/images/members/singles/27/[email protected]', | ||
|
@@ -83,8 +83,8 @@ NoNumber.args = { | |
nameBackgroundColor: '#e2f3fd', | ||
}; | ||
|
||
export const NoPosition = Template.bind({}); | ||
NoPosition.args = { | ||
export const NoCaption = Template.bind({}); | ||
NoCaption.args = { | ||
href: '/', | ||
name: 'Saito Asuka', | ||
nameLang: 'en', | ||
|
@@ -103,7 +103,7 @@ NotLink.args = { | |
name: 'Kojima Haruna', | ||
nameLang: 'en', | ||
number: 1, | ||
position: 'center', | ||
caption: 'center', | ||
image: { | ||
sm: '/images/members/others/[email protected]', | ||
md: '/images/members/others/[email protected]', | ||
|
@@ -116,7 +116,7 @@ FallbackBackground.args = { | |
href: '/', | ||
name: 'Saito Asuka', | ||
number: 1, | ||
position: 'fukujin', | ||
caption: 'fukujin', | ||
image: { | ||
sm: '/images/members/singles/27/[email protected]', | ||
md: '/images/members/singles/27/[email protected]', | ||
|
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
99 changes: 99 additions & 0 deletions
99
src/client/components/v6/shared/cells/SongCell/index.stories.tsx
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,99 @@ | ||
import { css } from '@emotion/react'; | ||
import type { Meta, Story } from '@storybook/react'; | ||
import { SongCell, SongCellProps } from '.'; | ||
import { ThemeDecorator } from 'storybook/ThemeDecorator'; | ||
|
||
export default { | ||
title: 'Components/Shared/Cells/SongCell', | ||
decorators: [ThemeDecorator()], | ||
component: SongCell, | ||
} as Meta<SongCellProps>; | ||
|
||
const Template: Story<SongCellProps> = props => { | ||
return ( | ||
<div | ||
css={css` | ||
width: 200px; | ||
height: 240px; | ||
`} | ||
> | ||
<SongCell {...props}></SongCell> | ||
</div> | ||
); | ||
}; | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = { | ||
href: '/', | ||
title: 'ごめんねFingers crossed', | ||
titleLang: 'ja', | ||
number: 1, | ||
caption: '#title', | ||
image: { | ||
sm: '/images/artworks/singles/27/[email protected]', | ||
md: '/images/artworks/singles/27/[email protected]', | ||
lg: '/images/artworks/singles/27/[email protected]', | ||
}, | ||
titleBackgroundColor: '#f8b1b1', | ||
imageBackgroundColor: '#bf0000', | ||
}; | ||
|
||
export const Variation = Template.bind({}); | ||
Variation.args = { | ||
href: '/', | ||
title: 'ざぶんざぶん', | ||
titleLang: 'ja', | ||
number: 4, | ||
caption: '#unit', | ||
image: { | ||
sm: '/images/artworks/singles/27/[email protected]', | ||
md: '/images/artworks/singles/27/[email protected]', | ||
lg: '/images/artworks/singles/27/[email protected]', | ||
}, | ||
imageBackgroundColor: '#ffa700', | ||
titleBackgroundColor: '#fcda9c', | ||
}; | ||
|
||
export const NoNumber = Template.bind({}); | ||
NoNumber.args = { | ||
href: '/', | ||
title: 'ごめんねFingers crossed', | ||
titleLang: 'ja', | ||
caption: '#title', | ||
image: { | ||
sm: '/images/artworks/singles/27/[email protected]', | ||
md: '/images/artworks/singles/27/[email protected]', | ||
lg: '/images/artworks/singles/27/[email protected]', | ||
}, | ||
titleBackgroundColor: '#f8b1b1', | ||
imageBackgroundColor: '#bf0000', | ||
}; | ||
|
||
export const NoCaption = Template.bind({}); | ||
NoCaption.args = { | ||
href: '/', | ||
title: 'ごめんねFingers crossed', | ||
titleLang: 'ja', | ||
number: 1, | ||
image: { | ||
sm: '/images/artworks/singles/27/[email protected]', | ||
md: '/images/artworks/singles/27/[email protected]', | ||
lg: '/images/artworks/singles/27/[email protected]', | ||
}, | ||
titleBackgroundColor: '#f8b1b1', | ||
imageBackgroundColor: '#bf0000', | ||
}; | ||
|
||
export const FallbackBackground = Template.bind({}); | ||
FallbackBackground.args = { | ||
href: '/', | ||
title: 'ごめんねFingers crossed', | ||
titleLang: 'ja', | ||
number: 1, | ||
caption: '#title', | ||
image: { | ||
sm: '/images/artworks/singles/27/[email protected]', | ||
md: '/images/artworks/singles/27/[email protected]', | ||
lg: '/images/artworks/singles/27/[email protected]', | ||
}, | ||
}; |
Oops, something went wrong.