2024-07-18 14:43:01 +10:00
|
|
|
<script setup>
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
href: String,
|
|
|
|
|
heading: String,
|
2024-07-28 13:30:56 +10:00
|
|
|
description: String,
|
|
|
|
|
subheading: String,
|
2024-07-28 21:30:28 +10:00
|
|
|
id: Number,
|
|
|
|
|
tags: String
|
2024-07-18 14:43:01 +10:00
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<a class="text-container" :href="props.href">
|
|
|
|
|
|
|
|
|
|
<div class="text-content">
|
2024-07-28 13:30:56 +10:00
|
|
|
<h2 class="heading"> {{props.heading}}</h2>
|
2024-07-28 21:30:28 +10:00
|
|
|
<p v-if="tags===''" class="subheading">{{props.subheading}} - #{{ props.id }}</p>
|
|
|
|
|
<p v-else class="subheading">{{props.subheading}} - #{{ props.id }} - {{ props.tags }}</p>
|
2024-07-18 14:43:01 +10:00
|
|
|
<p>{{props.description}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
2025-04-05 20:02:54 +11:00
|
|
|
<style scoped>
|
2024-07-18 14:43:01 +10:00
|
|
|
.text-container{
|
|
|
|
|
position: relative;
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin: 10px;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
color: white;
|
|
|
|
|
background-color: rgb(62, 0, 104);
|
|
|
|
|
width: 300px;
|
|
|
|
|
height: 200px
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text-content{
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 8px;
|
|
|
|
|
left: 16px;
|
|
|
|
|
text-align: left ;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text-image{
|
|
|
|
|
filter: brightness(100%) blur(0px);
|
|
|
|
|
/* filter: blur(2px); */
|
|
|
|
|
}
|
|
|
|
|
.text-content{
|
|
|
|
|
visibility:visible;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text-container:hover{
|
|
|
|
|
background-color: var(--accent-dark);
|
|
|
|
|
.text-content{
|
|
|
|
|
visibility:visible;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2024-07-28 13:30:56 +10:00
|
|
|
|
|
|
|
|
.subheading{
|
|
|
|
|
color: grey;
|
|
|
|
|
margin: 0;
|
|
|
|
|
font-size: small;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.heading{
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
2024-07-18 14:43:01 +10:00
|
|
|
</style>
|