Skip to content

Commit

Permalink
chore(skeleton): base group component
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 24, 2023
1 parent 69aa75a commit 4dc6321
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions components/service/Group.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>
<div class="py-10">
<h2 class="text-2xl font-light py-2 px-4">
{{ title }}
</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-1 lg:gap-2 lg:gap-y-4">
<template v-for="(item, key) in items" :key="key">
<ServiceItem v-bind="item" />
</template>
</div>
</div>
</template>

<script setup lang="ts">
export interface Props {
title: string
items: any[]
}
defineProps<Props>()
</script>

0 comments on commit 4dc6321

Please sign in to comment.