phundrak.com/content/.vuepress/components/Error.vue
Lucien Cartier-Tilet 89d2e1b9b3
All checks were successful
continuous-integration/drone/push Build is passing
feat: display API errors
2023-05-08 18:04:30 +02:00

27 lines
461 B
Vue

<template>
<div class="error rounded-corners card-width">
<p>API call to {{ props.url }} failed</p>
</div>
</template>
<script setup lang="ts">
const props = defineProps({
url: {
required: true,
type: String,
},
});
</script>
<style lang="less">
@import 'node_modules/nord/src/lesscss/nord.less';
@import '../styles/classes.less';
.error {
display: inline-block;
padding: 2rem;
text-align: center;
background: @nord11;
}
</style>