main
km0 3 years ago
parent 3afc1d026b
commit d4534237a4

File diff suppressed because one or more lines are too long

@ -1,29 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
This is the main head quarter.
<ul>
<li>
<a href="00">Try Out</a>
</li>
<li>
<a href="01">Yet to Be Named</a>
</li>
<li>
<a href="02">Uneven Patterns</a>
</li>
<li>
<a href="03">Emergent Opera</a>
</li>
</ul>
<div class="image-placeholder">
<img src="images/inner-dance-cell.png" alt="two people with headphones are picturing dancing jelly people with joy" />
</div>
</body>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
This is the main head quarter.
<ul>
<li>
<a href="00">Try Out</a>
</li>
<li>
<a href="01">Yet to Be Named</a>
</li>
<li>
<a href="02">Uneven Patterns</a>
</li>
<li>
<a href="03">Emergent Opera</a>
</li>
<li>
<a href="04">The Parliament</a>
</li>
<li>
<a href="05">Nested Narratives</a>
</li>
</ul>
<div class="image-placeholder">
<img
src="images/inner-dance-cell.png"
alt="two people with headphones are picturing dancing jelly people with joy"
/>
</div>
</body>
</html>

@ -0,0 +1,86 @@
export default {
name: "CookbookForm",
setup() {
const { ref } = Vue;
const title = ref("SI18.5 - Diffractive Cookbook");
const description = ref("Compiling and sharing methods for diffractive reading.");
const nature = ref("Methods");
const logs = ref([
"Do the assignment proposed by Femke",
"While doing the assignment, make sure to track your method with the help of the following form",
"This method will be used by others and applied on different resources",
]);
const who = ref("Grr, Kamo, Kimberley");
const submit = function () {
fetch("https://hub.xpub.nl/soupboat/cookbook/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
title: title.value,
description: description.value,
nature: nature.value,
logs: logs.value,
who: who.value,
}),
});
};
return { title, description, nature, logs, who, submit };
},
template: `
<section class='recipe'>
<div class="entry">
<label for="title">Title</label>
<input type="text" v-model='title'/>
</div>
<div class="entry">
<label for="description">Description</label>
<textarea v-model="description"></textarea>
</div>
<div class="entry">
<label for="nature">Nature of the input</label>
<input type="text" v-model="nature" />
</div>
<div class="entry">
<label for="log">Process Log</label>
<textarea v-model="logs[index]" v-for="(log, index) in logs" :key="index" :placeholder="index + 1"></textarea>
<button class="add" @click="logs.push('')">+</button>
</div>
<div class="entry">
<label for="who">Who</label>
<input type="text" v-model="who" />
</div>
<div class="entry">
<button @click="submit" class="submit">Submit</button>
</div>
</section>
<!-- <dl>
<dt>Title</dt>
<dd>{{title}}</dd>
<dt>Description</dt>
<dd>{{description}}</dd>
<dt>Nature</dt>
<dd>{{nature}}</dd>
<dt>Log</dt>
<dd>
<ol>
<li v-for="log in logs">{{log}}</li>
</ol>
</dd>
<dt>Who</dt>
<dd>{{who}}</dd>
</dl> -->
`,
};

File diff suppressed because one or more lines are too long

@ -0,0 +1,78 @@
* {
box-sizing: border-box;
}
html,
body {
font-size: 24px;
line-height: 1.6;
font-family: sans-serif;
background-color: #e6b0aa;
}
#app {
width: 100%;
}
section.recipe {
display: block;
margin: 48px auto;
padding: 32px;
width: 50ch;
border-radius: 0.5rem;
box-shadow: 1px 1px 10px 2px rgba(0, 0, 0, 0.1);
}
.recipe label,
.recipe input,
.recipe textarea {
font-family: sans-serif;
display: block;
width: 100%;
max-width: 100%;
}
input,
textarea,
button {
color: currentColor;
background: none;
border: 1px solid currentColor;
padding: 8px;
font-size: 1rem;
}
button.add {
display: block;
width: 48px;
height: 48px;
margin: 0 auto;
margin-top: 16px;
cursor: pointer;
border-radius: 50%;
}
textarea + textarea {
margin-top: 16px;
}
label {
font-style: italic;
font-size: 19px;
}
.entry + .entry {
margin-top: 32px;
}
.archive {
position: absolute;
right: 24px;
top: 48px;
color: currentColor;
cursor: pointer;
background-color: white;
border-radius: 1em;
padding: 0 0.5em;
text-decoration: none;
}
Loading…
Cancel
Save