-
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
28 changed files
with
2,157 additions
and
802 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
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,103 @@ | ||
<script setup lang="ts"> | ||
import { HCard } from '@components/atoms'; | ||
</script> | ||
|
||
# Card | ||
|
||
### Default use: | ||
|
||
<br> | ||
|
||
<h-card>Hello Card</h-card> | ||
|
||
```vue | ||
<h-card>Hello Card</h-card> | ||
``` | ||
|
||
|
||
### Variants: | ||
|
||
<br> | ||
|
||
<h-card variant="default">default</h-card> | ||
<br> | ||
<h-card variant="outlined">outlined</h-card> | ||
|
||
```vue | ||
<h-card variant="default">default</h-card> | ||
<h-card variant="outlined">outlined</h-card> | ||
``` | ||
|
||
### Colors: | ||
|
||
<br> | ||
|
||
<h-card color="default">default</h-card> | ||
<br> | ||
<h-card color="success">success</h-card> | ||
<br> | ||
<h-card color="info">info</h-card> | ||
<br> | ||
<h-card color="danger">danger</h-card> | ||
<br> | ||
<h-card color="warn">warn</h-card> | ||
<br> | ||
<h-card color="primary">primary</h-card> | ||
<br> | ||
<h-card color="secondary">secondary</h-card> | ||
|
||
<br> | ||
|
||
```vue | ||
<h-card color="default">default</h-card> | ||
<h-card color="success">success</h-card> | ||
<h-card color="info">info</h-card> | ||
<h-card color="danger">danger</h-card> | ||
<h-card color="warn">warn</h-card> | ||
<h-card color="primary">primary</h-card> | ||
<h-card color="secondary">secondary</h-card> | ||
``` | ||
|
||
### Shadows: | ||
|
||
<br> | ||
|
||
<h-card elevation="low">low</h-card> | ||
<br> | ||
<h-card elevation="medium">medium</h-card> | ||
<br> | ||
<h-card elevation="high">high</h-card> | ||
|
||
```vue | ||
<h-card elevation="low">low</h-card> | ||
<h-card elevation="medium">medium</h-card> | ||
<h-card elevation="high">high</h-card> | ||
``` | ||
|
||
### Tags: | ||
|
||
<br> | ||
|
||
<h-card tag="div">div</h-card> | ||
<br> | ||
<h-card tag="button">button</h-card> | ||
<br> | ||
<br> | ||
<h-card tag="article">article</h-card> | ||
|
||
```vue | ||
<h-card tag="div">div</h-card> | ||
<h-card tag="button">button</h-card> | ||
<h-card tag="article">article</h-card> | ||
``` |
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,98 @@ | ||
<script setup lang="ts"> | ||
import { HGridContainer, HGridItem } from '@components/atoms'; | ||
</script> | ||
|
||
# Grid | ||
|
||
The layout is divided in two components, HGridContainer and HGridItem. | ||
HGridContainer is responsible for wrapper the items which you want to organize in grid layout. | ||
HGridItem is where you control the item wrapper in layout. | ||
|
||
### Default use: | ||
|
||
<br> | ||
|
||
<h-grid-container style="background-color:blue;"> | ||
<h-grid-item style="background-color:yellow;" column="4">yellow</h-grid-item> | ||
<h-grid-item style="background-color:red;" column="6">red</h-grid-item> | ||
<h-grid-item style="background-color:orange;" column="2">orange</h-grid-item> | ||
<h-grid-item style="background-color:green;" row="4">green</h-grid-item> | ||
</h-grid-container> | ||
|
||
```vue | ||
<h-grid-container style="background-color:blue;"> | ||
<h-grid-item style="background-color:yellow;" column="4"> | ||
yellow | ||
</h-grid-item> | ||
<h-grid-item style="background-color:red;" column="6"> | ||
red | ||
</h-grid-item> | ||
<h-grid-item style="background-color:orange;" column="2"> | ||
orange | ||
</h-grid-item> | ||
<h-grid-item style="background-color:green;" row="4"> | ||
green | ||
</h-grid-item> | ||
</h-grid-container> | ||
``` | ||
|
||
|
||
### Responsive use: | ||
|
||
<br> | ||
|
||
<h-grid-container style="background-color:blue;" responsive> | ||
<h-grid-item style="background-color:yellow;" column="4">yellow</h-grid-item> | ||
<h-grid-item style="background-color:red;" column="6">red</h-grid-item> | ||
<h-grid-item style="background-color:orange;" column="4" :responsive="false">orange</h-grid-item> | ||
<h-grid-item style="background-color:green;" column="6" :responsive="false">green</h-grid-item> | ||
</h-grid-container> | ||
|
||
```vue | ||
<h-grid-container style="background-color:blue;" responsive> | ||
<h-grid-item style="background-color:yellow;" column="4">yellow</h-grid-item> | ||
<h-grid-item style="background-color:red;" column="6">red</h-grid-item> | ||
<h-grid-item style="background-color:orange;" column="4" :responsive="false">orange</h-grid-item> | ||
<h-grid-item style="background-color:green;" column="6" :responsive="false">green</h-grid-item> | ||
</h-grid-container> | ||
``` | ||
|
||
|
||
### With Padding: | ||
|
||
<br> | ||
|
||
<h-grid-container style="background-color:blue;" padding> | ||
<h-grid-item style="background-color:yellow;" column="4">yellow</h-grid-item> | ||
</h-grid-container> | ||
|
||
|
||
```vue | ||
<h-grid-container style="background-color:blue;" padding> | ||
<h-grid-item style="background-color:yellow;" column="4">yellow</h-grid-item> | ||
</h-grid-container> | ||
``` | ||
|
||
|
||
### Dense use: | ||
|
||
<br> | ||
|
||
<h-grid-container style="background-color:blue;" dense> | ||
<h-grid-item style="background-color:yellow;" column="4">yellow</h-grid-item> | ||
<h-grid-item style="background-color:red;" column="6">red</h-grid-item> | ||
<h-grid-item style="background-color:red;" column="6">red</h-grid-item> | ||
<h-grid-item style="background-color:green;" column="2">green</h-grid-item> | ||
</h-grid-container> | ||
|
||
```vue | ||
<h-grid-container style="background-color:blue;" dense> | ||
<h-grid-item style="background-color:yellow;" column="4">yellow</h-grid-item> | ||
<h-grid-item style="background-color:red;" column="6">red</h-grid-item> | ||
<h-grid-item style="background-color:red;" column="6">red</h-grid-item> | ||
<h-grid-item style="background-color:green;" column="2">green</h-grid-item> | ||
</h-grid-container> | ||
``` |
Oops, something went wrong.