|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<script>
|
|
|
|
|
import { title } from '$lib/stores/store';
|
|
|
|
|
import { title, heading, subtitle, content, date, address } from '$lib/stores/store';
|
|
|
|
|
|
|
|
|
|
const handleSubmit = async () => {
|
|
|
|
|
console.log('submit');
|
|
|
|
|
@ -7,11 +7,29 @@
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<form on:submit|preventDefault={handleSubmit}>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="heading">Antetítulo</label>
|
|
|
|
|
<input bind:value={$heading} type="text" name="heading" placeholder="Antetítulo" />
|
|
|
|
|
</div>
|
|
|
|
|
<div clasS="form-group">
|
|
|
|
|
<label for="title">Título</label>
|
|
|
|
|
<input bind:value={$title} type="text" name="title" placeholder="Título" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="subtitle">Subtítulo</label>
|
|
|
|
|
<input bind:value={$subtitle} type="text" name="subtitle" placeholder="Subtítulo" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="content">Contenido</label>
|
|
|
|
|
<input bind:value={$content} type="text" name="content" placeholder="Contenido" />
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.form-group {
|
|
|
|
|
margin: 2rem 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
form {
|
|
|
|
|
margin: 1rem;
|
|
|
|
|
display: block;
|
|
|
|
|
|