moved stylised button to outlined-button.svelte; added drawing gallery (currently hidden)
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
<script lang="ts">
|
||||
import Banner2 from "$lib/banner2.svelte";
|
||||
import Content from "$lib/viewport/content.svelte";
|
||||
// import type { DevlogPost } from "./devlog-posts";
|
||||
import { posts, type DevlogPost } from "./devlog/posts";
|
||||
import Gallery, { type GalleryEntry } from "$lib/lists/gallery.svelte";
|
||||
|
||||
let allEntries: GalleryEntry[] = posts.entries().map(mapEntries).toArray()
|
||||
// let entries: GalleryEntry[] = allEntries;//$state(allEntries.slice(0, 3));
|
||||
let loadEntryButton: HTMLElement;
|
||||
|
||||
function mapEntries(m: [String, DevlogPost], index: number): GalleryEntry {
|
||||
return {
|
||||
@@ -19,11 +16,6 @@
|
||||
};
|
||||
}
|
||||
|
||||
// function loadAllEntries() {
|
||||
// entries = allEntries;
|
||||
// loadEntryButton.style.display = "none";
|
||||
// }
|
||||
|
||||
// Leftpads a single-digit number to two digits
|
||||
function leftpad(n: number): String {
|
||||
var result = n.toString();
|
||||
@@ -51,6 +43,4 @@
|
||||
<p>Development log entries in reverse chronological order (newest to oldest).</p>
|
||||
|
||||
<Gallery entries={allEntries} reverseTextOrder />
|
||||
|
||||
<!-- <button class="button-fullwidth" onclick={loadAllEntries} bind:this={loadEntryButton}>Load all entries</button> -->
|
||||
</Content>
|
||||
Reference in New Issue
Block a user