partially added badges, currently buggy
This commit is contained in:
parent
2119279787
commit
a9db28d1a8
4 changed files with 118 additions and 1 deletions
|
|
@ -1,12 +1,15 @@
|
|||
<template>
|
||||
<div>
|
||||
<!-- <button @click="$emit('close')"> Close </button> -->
|
||||
<img src="public\img\close.png" class="close-button" @click="$emit('close')">
|
||||
<img src="/public\img\close.png" class="close-button" @click="$emit('close')">
|
||||
<h2>{{title}}</h2>
|
||||
<p>{{description}}</p>
|
||||
|
||||
<br>
|
||||
<!-- <ClientOnly> -->
|
||||
<div class="badges-container">
|
||||
<Badge v-for="(data, i) of badges" :key="i" :id="data" />
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<SmallButton v-for="(data, i) of buttons" :key="i" class="button" :text="data.text"
|
||||
:href="data.link" />
|
||||
|
|
@ -20,6 +23,7 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import {defineProps, defineEmits} from 'vue'
|
||||
import type { BadgeData } from './ProjectCardV2.vue';
|
||||
|
||||
export interface ButtonData {
|
||||
text: string,
|
||||
|
|
@ -31,6 +35,7 @@ const props = defineProps<{
|
|||
description: string,
|
||||
longDescription?: string,
|
||||
buttons?: Array<ButtonData>,
|
||||
badges?: Array<string>,
|
||||
}>();
|
||||
|
||||
defineEmits("close")
|
||||
|
|
@ -53,4 +58,12 @@ defineEmits("close")
|
|||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.badges-container{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 5px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue