49 lines
977 B
Vue
49 lines
977 B
Vue
<script setup>
|
|
const props = defineProps({
|
|
service: Object
|
|
})
|
|
</script>
|
|
<template>
|
|
<fieldset>
|
|
<legend>{{ service.name }}</legend>
|
|
<section class="content">
|
|
<section class="top">
|
|
<img :src="service.icon" :alt="service.name + ' icon'">
|
|
<a :href="service.hyperlink">{{ service.linktext }}</a>
|
|
</section>
|
|
<p>{{ service.summary }}</p>
|
|
</section>
|
|
</fieldset>
|
|
</template>
|
|
<style lang="scss">
|
|
fieldset {
|
|
border: solid 3px;
|
|
padding: 1rem;
|
|
border-radius: 5px;
|
|
.top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
|
|
img {
|
|
width: 64px;
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
legend {
|
|
padding-left: 1rem;
|
|
padding-right: 1rem;
|
|
margin: auto;
|
|
}
|
|
</style> |