feat: first draft of learning resource cards

This commit is contained in:
jezzahehn 2025-05-24 22:53:49 -04:00
parent ccadb3f160
commit 25393b0f96
3 changed files with 73 additions and 1 deletions

View file

@ -0,0 +1,24 @@
<template>
<div class="box m-3 p-3 columns">
<div class="column is-one-quarter" v-if="image">
<figure class="image">
<img :src="image" :alt="alt" />
</figure>
</div>
<div class="column">
<h2 class="title">{{ title }}</h2>
<p class="has-text-white is-size-4 mb-4">{{ desc }}</p>
<h3 class="is-size-3"><a href="{{ link }}">{{ link }}</a></h3>
</div>
</div>
</template>
<script setup lang="ts">
defineProps({
title: String,
desc: String,
link: String,
image: { type: String, required: false },
alt: { type: String, required: false },
})
</script>