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';
export default {
components: {
activityCard,
}
}
const history = [
{
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>
<template>
<div class="flex flex-col w-full items-center">
<h1>This is activity history</h1>
<activityCard itle="hello" />
<activityCard />
<activityCard />
<activityCard v-for="event in history" :Activity="event" />
</div>
</template>