A lot of progress
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 36s

This commit is contained in:
2026-04-28 00:20:15 +02:00
parent b928212608
commit 76bb9fbb30
38 changed files with 382 additions and 460 deletions

View File

@@ -8,14 +8,15 @@ const props = defineProps(['data']);
const data = props.data;
const title = ref("");
const last_session = ref("");
const container = ref(null);
onMounted(() => {
title.value = data.name;
last_session.value = new Date(data.last_opened).toISOString().slice(0, 10);
if (data.color && container.value) {
container.value.style.background = `linear-gradient(90deg, ${data.color}, ${data.color}44)`;
}
AddSound(container.value)
});
@@ -31,11 +32,11 @@ function ViewCampaign(){
<div class="main-campaign-entry-container-inner">
<img class="campaign-icon" src="/img/def-avatar.jpg" draggable="false">
<div class="campaign-info">
<b>{{ title }}</b><br>Last session: <span>{{ last_session }}</span>
<b>{{ title }}</b>
</div>
<div class="campaign-user-actions">
<button class="btn-primary button-small sound-click" v-on:click.prevent="ViewCampaign">{{ $t('general.view')}}</button>
<button class="btn-primary button-small sound-click" v-on:click.prevent="ViewCampaign">{{ $t('general.open')}}</button>
</div>
</div>
</div>