Last active
October 29, 2021 18:08
-
-
Save SidneyAllen/f8005ae4dffbcbe641d8e6285f21150d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/components/Front.vue | |
<template> | |
<div class="body" :style="{ backgroundImage: `url(${imgSrc})` }"> | |
... | |
<div class="controls"> | |
<form @submit.prevent> | |
<h2>Edit your template</h2> | |
<div class="form-field"> | |
<label for="headerText">Header text:</label> | |
<textarea id="headerText" v-model="headerText" /> | |
</div> | |
<div class="form-field"> | |
<label for="logoText">Logo text:</label> | |
<input id="logoText" v-model="logoText" /> | |
</div> | |
</form> | |
</div> | |
</div> | |
</template> | |
<style scoped> | |
... | |
.controls { | |
position: absolute; | |
top: 4.5in; | |
} | |
.form-field { | |
display: flex; | |
flex-direction: column; | |
} | |
label { | |
text-align: left; | |
margin-bottom: 8px; | |
margin-top: 8px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment