This repository has been archived on 2024-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
tailwindui/vue/components/application-ui/feedback/empty-states/with_starting_points.vue
2024-01-24 19:02:44 +08:00

81 lines
2.6 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div>
<h2 class="text-base font-semibold leading-6 text-gray-900">Projects</h2>
<p class="mt-1 text-sm text-gray-500">You havent created a project yet. Get started by selecting a template or start from an empty project.</p>
<ul role="list" class="mt-6 grid grid-cols-1 gap-6 border-b border-t border-gray-200 py-6 sm:grid-cols-2">
<li v-for="(item, itemIdx) in items" :key="itemIdx" class="flow-root">
<div class="relative -m-2 flex items-center space-x-4 rounded-xl p-2 focus-within:ring-2 focus-within:ring-indigo-500 hover:bg-gray-50">
<div :class="[item.background, 'flex h-16 w-16 flex-shrink-0 items-center justify-center rounded-lg']">
<component :is="item.icon" class="h-6 w-6 text-white" aria-hidden="true" />
</div>
<div>
<h3 class="text-sm font-medium text-gray-900">
<a href="#" class="focus:outline-none">
<span class="absolute inset-0" aria-hidden="true" />
<span>{{ item.title }}</span>
<span aria-hidden="true"> &rarr;</span>
</a>
</h3>
<p class="mt-1 text-sm text-gray-500">{{ item.description }}</p>
</div>
</div>
</li>
</ul>
<div class="mt-4 flex">
<a href="#" class="text-sm font-medium text-indigo-600 hover:text-indigo-500">
Or start from an empty project
<span aria-hidden="true"> &rarr;</span>
</a>
</div>
</div>
</template>
<script setup>
import {
Bars4Icon,
CalendarIcon,
ClockIcon,
PhotoIcon,
TableCellsIcon,
ViewColumnsIcon,
} from '@heroicons/vue/24/outline'
const items = [
{
title: 'Create a List',
description: 'Another to-do system youll try but eventually give up on.',
icon: Bars4Icon,
background: 'bg-pink-500',
},
{
title: 'Create a Calendar',
description: 'Stay on top of your deadlines, or dont — its up to you.',
icon: CalendarIcon,
background: 'bg-yellow-500',
},
{
title: 'Create a Gallery',
description: 'Great for mood boards and inspiration.',
icon: PhotoIcon,
background: 'bg-green-500',
},
{
title: 'Create a Board',
description: 'Track tasks in different stages of your project.',
icon: ViewColumnsIcon,
background: 'bg-blue-500',
},
{
title: 'Create a Spreadsheet',
description: 'Lots of numbers and things — good for nerds.',
icon: TableCellsIcon,
background: 'bg-indigo-500',
},
{
title: 'Create a Timeline',
description: 'Get a birds-eye-view of your procrastination.',
icon: ClockIcon,
background: 'bg-purple-500',
},
]
</script>