← catalogo / lists/stacked-lists
TW-LI-SL-14
Tailwind Plus
tailwind/application-ui/lists/stacked-lists/15-narrow-with-small-avatars
html: questa e' vue, sotto c'e' il sorgente.
<template>
<ul role="list" class="divide-y divide-gray-100 dark:divide-white/5">
<li v-for="item in activityItems" :key="item.commit" class="py-4">
<div class="flex items-center gap-x-3">
<img :src="item.user.imageUrl" alt="" class="size-6 flex-none rounded-full bg-gray-800 dark:outline dark:-outline-offset-1 dark:outline-white/10" />
<h3 class="flex-auto truncate text-sm/6 font-semibold text-gray-900 dark:text-white">{{ item.user.name }}</h3>
<time :datetime="item.dateTime" class="flex-none text-xs text-gray-500">{{ item.date }}</time>
</div>
<p class="mt-3 truncate text-sm text-gray-500">
Pushed to <span class="text-gray-700 dark:text-gray-300">{{ item.projectName }}</span> (<span class="font-mono text-gray-700 dark:text-gray-400">{{ item.commit }}</span> on <span class="text-gray-700 dark:text-gray-400">{{ item.branch }}</span
>)
</p>
</li>
</ul>
</template>
<script setup>
const activityItems = [
{
user: {
name: 'Michael Foster',
imageUrl:
'https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
},
projectName: 'ios-app',
commit: '2d89f0c8',
branch: 'main',
date: '1h',
dateTime: '2023-01-23T11:00',
},
{
user: {
name: 'Lindsay Walton',
imageUrl:
'https://images.unsplash.com/photo-1517841905240-472988babdf9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
},
projectName: 'mobile-api',
commit: '249df660',
branch: 'main',
date: '3h',
dateTime: '2023-01-23T09:00',
},
{
user: {
name: 'Courtney Henry',
imageUrl:
'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
},
projectName: 'ios-app',
commit: '11464223',
branch: 'main',
date: '12h',
dateTime: '2023-01-23T00:00',
},
{
user: {
name: 'Courtney Henry',
imageUrl:
'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
},
projectName: 'company-website',
commit: 'dad28e95',
branch: 'main',
date: '2d',
dateTime: '2023-01-21T13:00',
},
{
user: {
name: 'Michael Foster',
imageUrl:
'https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
},
projectName: 'relay-service',
commit: '624bc94c',
branch: 'main',
date: '5d',
dateTime: '2023-01-18T12:34',
},
]
</script>