feat(components/tiles/pages): image page
This commit is contained in:
parent
6adbeec8d5
commit
fa6e1613f2
6 changed files with 40 additions and 10 deletions
|
|
@ -7,9 +7,14 @@ Metro-like tile. Must be in a group to display correctly.
|
|||
<script lang="ts">
|
||||
import { cva } from "class-variance-authority";
|
||||
|
||||
// Base size for a icon in pixels.
|
||||
/**
|
||||
* Base size for a icon in pixels.
|
||||
**/
|
||||
const ICON_BASE_SIZE = 45;
|
||||
|
||||
/**
|
||||
* Properties.
|
||||
*/
|
||||
let {
|
||||
size,
|
||||
row,
|
||||
|
|
@ -45,7 +50,7 @@ Metro-like tile. Must be in a group to display correctly.
|
|||
size: {
|
||||
small: ["row-span-1", "col-span-1"],
|
||||
medium: ["row-span-2", "col-span-2"],
|
||||
wide: ["row-span-4", "col-span-2"],
|
||||
wide: ["row-span-2", "col-span-4"],
|
||||
large: ["row-span-4", "col-span-4"],
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue