feat: refactored front end
This commit is contained in:
32
front/MyINPulse-front/src/views/errorModal.vue
Normal file
32
front/MyINPulse-front/src/views/errorModal.vue
Normal file
@ -0,0 +1,32 @@
|
||||
<script lang="ts">
|
||||
import {defineComponent} from 'vue'
|
||||
|
||||
export default defineComponent({
|
||||
name: "errorModal",
|
||||
props: {
|
||||
error: String
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="error">
|
||||
<p>Erreur :(</p>
|
||||
<p>{{error}}</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.error{
|
||||
background-color: darkred;
|
||||
color: white;
|
||||
padding: 1em;
|
||||
border-radius: 0.5em;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user