Added placeholder data and switched to a loop to render cards

This commit is contained in:
ajdj100
2024-05-23 21:42:12 -04:00
parent 112783c25b
commit 97ccf815f9

View File

@@ -1,18 +1,27 @@
<script> <script setup>
import activityCard from './activityCard.vue'; import activityCard from './activityCard.vue';
export default { const history = [
components: { {
activityCard, EventName: 'Operation Whatever',
} EventDate: Date.now(),
} Type: 0
},
{
EventName: 'SPC -> CPL ',
EventDate: Date.now(),
Type: 1
},
{
EventName: 'Ranger Tab',
EventDate: Date.now(),
Type: 2
},
]
</script> </script>
<template> <template>
<div class="flex flex-col w-full items-center"> <div class="flex flex-col w-full items-center">
<h1>This is activity history</h1> <activityCard v-for="event in history" :Activity="event" />
<activityCard itle="hello" />
<activityCard />
<activityCard />
</div> </div>
</template> </template>