add content to the ContactForm

This commit is contained in:
Andreas Zweili 2021-07-27 11:00:04 +02:00
parent ec7448790f
commit e25dd5504e
1 changed files with 57 additions and 1 deletions

View File

@ -1,3 +1,59 @@
<template>
<div>Contact</div>
<form>
<div>
<label for="email">Your E-Mail</label>
<input type="email" id="email" />
</div>
<div>
<label for="message">Message</label>
<textarea rows="5" id="message"></textarea>
</div>
<div class="actions">
<base-button>Send Message</base-button>
</div>
</form>
</template>
<style scoped>
form {
margin: 1rem;
border: 1px solid #ccc;
border-radius: 12px;
padding: 1rem;
}
.form-control {
margin: 0.5rem 0;
}
label {
font-weight: bold;
margin-bottom: 0.5rem;
display: block;
}
input,
textarea {
display: block;
width: 100%;
font: inherit;
border: 1px solid #ccc;
padding: 0.15rem;
}
input:focus,
textarea:focus {
border-color: #3d008d;
background-color: #faf6ff;
outline: none;
}
.errors {
font-weight: bold;
color: red;
}
.actions {
text-align: center;
}
</style>