feat: first draft of learning resource cards
This commit is contained in:
parent
ccadb3f160
commit
25393b0f96
3 changed files with 73 additions and 1 deletions
24
src/components/molecules/LearningResourceWrapper.vue
Normal file
24
src/components/molecules/LearningResourceWrapper.vue
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue