Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](@svelteui/core): card dark mode background color and Paper bord…
…er class ISSUES CLOSED: #396
- Loading branch information
1 parent
bb4eacf
commit aa35158
Showing
6 changed files
with
73 additions
and
14 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
packages/svelteui-core/src/components/Card/Card.stories.svelte
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,37 @@ | ||
<script lang="ts"> | ||
import { Meta, Template, Story } from '@storybook/addon-svelte-csf'; | ||
import { Button } from '../Button'; | ||
import { Group } from '../Group'; | ||
import { Image } from '../Image'; | ||
import { Text } from '../Text'; | ||
import { Card } from './index'; | ||
</script> | ||
|
||
<Meta title="Components/Card" component={Card} /> | ||
|
||
<Template let:args> | ||
<Card shadow="sm" padding="lg" {...args}> | ||
<Card.Section padding="lg"> | ||
<Image | ||
src="https://images.unsplash.com/photo-1555881400-74d7acaacd8b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3540&q=80" | ||
height={160} | ||
alt="Portugal" | ||
/> | ||
</Card.Section> | ||
|
||
<Group position="apart" override={{ marginBottom: '5px', marginTop: '$smPX' }}> | ||
<Text weight={500}>Portugal Porto Adventures</Text> | ||
</Group> | ||
|
||
<Text size="sm" override={{ lineHeight: 1.5 }}> | ||
With Portugal Porto Adventures you can explore more of the beautiful portuguese cities, by | ||
walking on food, meeting the locals and eat excellent food and wine | ||
</Text> | ||
|
||
<Button variant="light" color="blue" fullSize override={{ marginTop: '14px' }}> | ||
Book classic tour now | ||
</Button> | ||
</Card> | ||
</Template> | ||
|
||
<Story name="Card" id="cardStory" args={{ withBorder: true, radius: "md", shadow: "sm", padding: "lg" }} /> |
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
14 changes: 14 additions & 0 deletions
14
packages/svelteui-core/src/components/Paper/Paper.stories.svelte
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 @@ | ||
<script lang="ts"> | ||
import { Meta, Template, Story } from '@storybook/addon-svelte-csf'; | ||
import { Paper } from './index'; | ||
</script> | ||
|
||
<Meta title="Components/Paper" component={Paper} /> | ||
|
||
<Template let:args> | ||
<Paper> | ||
Paper is the most basic UI component. Use it to create cards, dropdowns, modals and other components that require background with shadow | ||
</Paper> | ||
</Template> | ||
|
||
<Story name="Paper" id="paperStory" /> |
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