Convert multiple pages into SPA

This commit is contained in:
2025-10-09 15:48:23 +02:00
parent c616b2da7f
commit 06d04a1abc
110 changed files with 1245 additions and 1319 deletions

View File

@@ -0,0 +1,38 @@
<script lang="ts">
import { bookmark_del, bookmarks_store } from "lib/Bookmarks";
import { highlight_current_page } from "lib/HighlightCurrentPage";
</script>
{#each $bookmarks_store as bookmark}
<div class="row">
<a class="button" href="/d/{bookmark.id}" use:highlight_current_page>
<i class="icon">{bookmark.icon}</i>
<span class="hide_small">{bookmark.label}</span>
</a>
<button on:click={() => bookmark_del(bookmark.id)}>
<i class="icon">delete</i>
</button>
</div>
{/each}
<style>
.row {
display: flex;
flex-direction: row;
}
.row>a {
flex: 1 1 auto;
}
.row>button {
flex: 0 0 auto;
}
.button {
background: none;
box-shadow: none;
}
@media(max-width: 1000px) {
.hide_small {
display: none;
}
}
</style>