Link to photo page from selector
This commit is contained in:
parent
5275a84dac
commit
81c994c8be
2 changed files with 3 additions and 1 deletions
|
|
@ -139,7 +139,7 @@
|
||||||
form.append("image", blob);
|
form.append("image", blob);
|
||||||
form.append("caption", new Date().toLocaleString());
|
form.append("caption", new Date().toLocaleString());
|
||||||
|
|
||||||
fetch("image", { method: "POST", body: form }).catch((error) => {
|
fetch("/api/image", { method: "POST", body: form }).catch((error) => {
|
||||||
console.error("Error uploading image:", error);
|
console.error("Error uploading image:", error);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ const mode = ref<
|
||||||
<button @click="mode = 'image'">Image</button>
|
<button @click="mode = 'image'">Image</button>
|
||||||
<button @click="mode = 'text'">Text</button>
|
<button @click="mode = 'text'">Text</button>
|
||||||
<button @click="mode = 'tictactoe'">Tic Tac Toe</button>
|
<button @click="mode = 'tictactoe'">Tic Tac Toe</button>
|
||||||
|
<a href="/photo.html">Take a photo</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -75,6 +76,7 @@ p {
|
||||||
.list {
|
.list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
align-items: baseline;
|
||||||
gap: 1ch;
|
gap: 1ch;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue