import { computed } from 'vue' import fallbackImage from '../assets/fallback.svg'; export const Tiles = (props: { allowHScroll?: boolean, tileSize?: number, twoRows?: boolean, }) => { const classes = computed(() => ({ 'scroll': props.allowHScroll ?? false, 'two-rows': props.twoRows ?? false, })), styles = computed(() => ({ '--tile-size': (props.tileSize ?? 150)+'px', '--tile-size-mobile': (Math.round((props.tileSize ?? 150) * 0.85))+'px', })) return vine`
` } export const Tile = ({ to, title, text, image = fallbackImage }: { to?: object, title?: string, text?: string, image?: string, }) => { return vine`
{{ title }}
{{ text }}
` }