Skip to content

Commit

Permalink
chore(skeleton): base item component
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 24, 2023
1 parent e8c7b7f commit 69aa75a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions components/service/Item.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<template>
<div class="p-4 flex gap-4">
<div class="flex-shrink-0 flex">
<a :href="link" :title="title" class="self-center">
<slot name="icon">
<ServiceIcon v-bind="icon" />
</slot>
</a>
</div>

<div>
<h3 class="text-lg mt-1 font-semibold line-clamp-1">
<a :href="link" :title="title">{{ title }}</a>
</h3>
<p class="text-sm text-black/50 line-clamp-1">
<slot name="description" :description="description">
{{ description }}
</slot>
</p>
</div>
</div>
</template>

<script setup lang="ts">
export interface Props {
title: string
description: string
link: string
icon: {
type: 'solid' | 'gradient'
value: string
}
}
defineProps<Props>()
</script>

0 comments on commit 69aa75a

Please sign in to comment.