Vastly upgraded the activity card to be a much better modular component

This commit is contained in:
ajdj100
2024-05-23 21:41:53 -04:00
parent 76198ec778
commit 112783c25b

View File

@@ -1,15 +1,20 @@
<script setup> <script setup>
import { ref } from 'vue';
const props = defineProps(['Activity']);
const props = defineProps(['Title']); console.log(props.Activity);
console.log(props.Title)
</script> </script>
<template> <template>
<div class="border-2 border-white rounded-xl p-2 px-4"> <div class="border-2 border-white rounded-xl p-2 px-4 w-full m-2">
<h2>hello</h2> <div class="flex flex-row mt-2 pb-2">
<p>date</p> <h2 v-if="props.Activity.Type == 0" class="bg-green-600 font-bold px-4 rounded-md mr-4">Attended</h2>
</div> <h2 v-else-if="props.Activity.Type == 1" class="bg-yellow-400 font-bold px-4 rounded-md mr-4">Promotion</h2>
<h2 v-else="props.Activity.Type == 2" class="bg-cyan-500 font-bold px-4 rounded-md mr-4">Achived</h2>
<h2>{{props.Activity.EventName}}</h2>
</div>
<p class="text-white">{{props.Activity.EventDate}}</p>
</div>
</template> </template>