Merge branch 'rest-framework'

This commit is contained in:
Andreas Zweili 2021-02-15 23:01:14 +01:00
commit 433dd7d1ef
4 changed files with 63 additions and 9 deletions

View File

@ -1,18 +1,16 @@
<template> <template>
<div> <the-customers></the-customers>
<customer></customer> <the-footer></the-footer>
<the-footer></the-footer>
</div>
</template> </template>
<script> <script>
import TheFooter from "./components/UI/TheFooter.vue"; import TheFooter from "./components/UI/TheFooter.vue";
import Customer from "./components/customers/Customers.vue"; import TheCustomers from "./components/customers/TheCustomers.vue";
export default { export default {
components: { components: {
TheFooter, TheFooter,
Customer, TheCustomers,
}, },
data() { data() {
return {}; return {};
@ -21,6 +19,9 @@ export default {
</script> </script>
<style> <style>
* {
box-sizing: border-box;
}
html { html {
font-family: Avenir, Helvetica, Arial, sans-serif; font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
@ -29,4 +30,21 @@ html {
color: #2c3e50; color: #2c3e50;
margin-top: 60px; margin-top: 60px;
} }
.card {
margin: 2rem auto;
max-width: 40rem;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
padding: 2rem;
background-color: #ffffff;
}
button {
font: inherit;
border: 1px solid #0076bb;
background-color: #0076bb;
color: white;
cursor: pointer;
padding: 0.75rem 2rem;
border-radius: 30px;
}
</style> </style>

View File

@ -58,4 +58,29 @@ export default {
}; };
</script> </script>
<style></style> <style scoped>
dialog {
margin: 0;
position: fixed;
top: 20vh;
left: 30%;
width: 40%;
background-color: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
padding: 1rem;
}
label {
font-weight: bold;
display: block;
margin-bottom: 0.5rem;
}
input,
textarea {
display: block;
width: 100%;
font: inherit;
padding: 0.15rem;
border: 1px solid #ccc;
}
</style>

View File

@ -24,4 +24,15 @@ export default {
}; };
</script> </script>
<style></style> <style scoped>
dialog {
margin: 0;
position: fixed;
top: 20vh;
left: 30%;
width: 40%;
background-color: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
padding: 1rem;
}
</style>

View File

@ -11,7 +11,7 @@
@created-customer="closeDialog" @created-customer="closeDialog"
></add-customer> ></add-customer>
<div v-if="!addCustomerDialogVisible && !showCustomerDetails"> <div v-if="!addCustomerDialogVisible && !showCustomerDetails" class="card">
<header><h1>List of Customers</h1></header> <header><h1>List of Customers</h1></header>
<div> <div>
<form @submit.prevent="addCustomer"> <form @submit.prevent="addCustomer">