-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
30 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export default { | ||
title: "Galleries/LoadingCard", | ||
}; | ||
|
||
const Template = () => { | ||
return ` | ||
<div class="card w-96 h-48 flex items-center justify-center mx-auto"> | ||
<div class="spinner"> | ||
<svg viewBox="25 25 50 50"> | ||
<circle cx="50" cy="50" r="20"></circle> | ||
</svg> | ||
</div> | ||
</div> | ||
`; | ||
}; | ||
export const Default = Template.bind({}); | ||
|
||
const HeadingTemplate = () => { | ||
return ` | ||
<div class="card w-96 h-48 flex items-center justify-center flex-col mx-auto"> | ||
<div class="font-bold mb-4">読み込み中です</div> | ||
<div class="spinner"> | ||
<svg viewBox="25 25 50 50"> | ||
<circle cx="50" cy="50" r="20"></circle> | ||
</svg> | ||
</div> | ||
</div> | ||
`; | ||
}; | ||
export const Heading = HeadingTemplate.bind({}); |