-
Notifications
You must be signed in to change notification settings - Fork 8
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
Renato Moor
committed
Aug 27, 2022
1 parent
2e5f92b
commit 4bd99e4
Showing
5 changed files
with
65 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<script setup> | ||
const props = defineProps({ | ||
spaces: { | ||
type: Object, | ||
required: true | ||
} | ||
}) | ||
</script> | ||
|
||
|
||
<template> | ||
<h2 class="title"> | ||
Spaces | ||
</h2> | ||
<div class="spaces"> | ||
<div v-for="(space, key) in spaces"> | ||
<div class="spaces__space" :style="`width: ${space}`"/> | ||
<div>{{ key }}</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
|
||
<style scoped> | ||
.title { | ||
text-align: center; | ||
} | ||
.spaces { | ||
padding: 5rem; | ||
margin-left: auto; | ||
margin-right: auto; | ||
display: grid; | ||
grid-template-columns: repeat(3, 1fr); | ||
} | ||
.spaces__space { | ||
border-radius: 0.75rem; | ||
background-color: gray; | ||
margin-bottom: 1rem; | ||
height: 5rem; | ||
} | ||
</style> |
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,19 @@ | ||
import SpacesFoundation from '../components/SpacesFoundation.vue'; | ||
|
||
export default { | ||
title: 'Foundations/Spaces', | ||
component: SpacesFoundation, | ||
}; | ||
|
||
const Template = (args) => ({ | ||
components: { SpacesFoundation }, | ||
setup() { | ||
return { args }; | ||
}, | ||
template: '<SpacesFoundation v-bind="args" />', | ||
}); | ||
|
||
export const Spaces = Template.bind({}); | ||
Spaces.args = { | ||
spaces: import.meta.env.STORYBOOK_TAILWIND.theme.space, | ||
} |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ module.exports = { | |
], | ||
theme: { | ||
extend: { | ||
|
||
'test': 'rgba(1, 1, 1, 0.1)', | ||
}, | ||
}, | ||
plugins: [], | ||
|