set projects to contentsidebar

This commit is contained in:
2025-08-25 11:44:01 +02:00
parent 83d4ec4a06
commit a5279c9e6f
2 changed files with 32 additions and 30 deletions

View File

@@ -91,8 +91,8 @@
}
.toc-list li a {
width: 100%;
padding-top: 4px;
padding-bottom: 4px;
padding-top: 3px;
padding-bottom: 3px;
padding-right: 24px;
display: inline-block;
color: var(--color-text);

View File

@@ -1,10 +1,10 @@
<script lang="ts">
import BannerTitleAlt from "$lib/banner-title-alt.svelte";
import TableOfContents from "$lib/table-of-contents.svelte";
import Content from "$lib/content.svelte";
import type { Project } from '$lib/projects';
import { projects } from '$lib/projects';
import LinkList from "$lib/link-list.svelte";
import ContentSidebar from "$lib/content-sidebar.svelte";
let getActiveProjects = function(projects: Project[], isActive: boolean): Project[] {
var result: Project[] = [];
@@ -28,9 +28,10 @@
subtitle="Things I have worked on"
/>
<Content>
<TableOfContents disableStickyScrolling={true} />
<ContentSidebar>
<TableOfContents slot="side-left" />
<div slot="main">
<h2 id="games">Games</h2>
{#each projects as project}
{#if project.type == "game"}
@@ -55,7 +56,8 @@
{@render projectSummary({ project: project })}
{/if}
{/each}
</Content>
</div>
</ContentSidebar>
{#snippet projectSummary({
project