Browse Source

Homeview activity card design tweaks

homeview-cleanup-2025-03
Jose Olarte III 1 week ago
parent
commit
06e9950e53
  1. 56
      src/components/ActivityListItem.vue

56
src/components/ActivityListItem.vue

@ -10,8 +10,10 @@
</span> </span>
</div> </div>
<div class="bg-slate-100 rounded-t-md border border-slate-300 p-3 sm:p-4"> <div
<div class="flex items-center gap-2 mb-6"> class="flex items-center justify-between gap-2 text-lg bg-slate-200 border border-slate-300 border-b-0 rounded-t-md px-3 sm:px-4 py-1 sm:py-2"
>
<div class="flex items-center gap-2">
<div v-if="record.issuerDid"> <div v-if="record.issuerDid">
<EntityIcon <EntityIcon
:entity-id="record.issuerDid" :entity-id="record.issuerDid"
@ -35,10 +37,16 @@
</div> </div>
</div> </div>
<a class="cursor-pointer" @click="$emit('loadClaim', record.jwtId)">
<font-awesome icon="circle-info" class="fa-fw text-slate-500" />
</a>
</div>
<div class="bg-slate-100 rounded-b-md border border-slate-300 p-3 sm:p-4">
<!-- Record Image --> <!-- Record Image -->
<div <div
v-if="record.image" v-if="record.image"
class="bg-cover mb-6 -mx-3 sm:-mx-4" class="bg-cover mb-6 -mt-3 sm:-mt-4 -mx-3 sm:-mx-4"
:style="`background-image: url(${record.image});`" :style="`background-image: url(${record.image});`"
> >
<a <a
@ -86,14 +94,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="text-xs mt-2 line-clamp-3 sm:line-clamp-2"> <div
<div v-if="record.providerPlanName || record.giver.known"> v-if="record.providerPlanName || record.giver.known"
<font-awesome class="text-xs mt-2 line-clamp-3 sm:line-clamp-2"
:icon="record.providerPlanName ? 'users' : 'user'" >
class="fa-fw text-slate-400" <font-awesome
/> :icon="record.providerPlanName ? 'users' : 'user'"
{{ record.providerPlanName || record.giver.displayName }} class="fa-fw text-slate-400"
</div> />
{{ record.providerPlanName || record.giver.displayName }}
</div> </div>
</div> </div>
@ -147,14 +156,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="text-xs mt-2 line-clamp-3 sm:line-clamp-2"> <div
<div v-if="record.recipientProjectName || record.receiver.known"> v-if="record.recipientProjectName || record.receiver.known"
<font-awesome class="text-xs mt-2 line-clamp-3 sm:line-clamp-2"
:icon="record.recipientProjectName ? 'users' : 'user'" >
class="fa-fw text-slate-400" <font-awesome
/> :icon="record.recipientProjectName ? 'users' : 'user'"
{{ record.recipientProjectName || record.receiver.displayName }} class="fa-fw text-slate-400"
</div> />
{{ record.recipientProjectName || record.receiver.displayName }}
</div> </div>
</div> </div>
</div> </div>
@ -166,14 +176,6 @@
</a> </a>
</p> </p>
</div> </div>
<div
class="flex items-center gap-2 text-lg bg-slate-300 rounded-b-md px-3 sm:px-4 py-1 sm:py-2"
>
<a class="cursor-pointer" @click="$emit('loadClaim', record.jwtId)">
<font-awesome icon="circle-info" class="fa-fw text-slate-500" />
</a>
</div>
</li> </li>
</template> </template>

Loading…
Cancel
Save