2025-04-01 13:55:54 +02:00
|
|
|
<script lang="ts">
|
2026-01-21 17:42:59 +01:00
|
|
|
import Banner2 from "$lib/banner2.svelte";
|
2025-04-01 22:25:10 +02:00
|
|
|
import TableOfContents from "$lib/table-of-contents.svelte";
|
2025-08-26 18:21:05 +02:00
|
|
|
import type { Project } from './projects';
|
|
|
|
|
import { projects } from './projects';
|
2025-04-04 19:00:47 +02:00
|
|
|
import LinkList from "$lib/link-list.svelte";
|
2026-01-21 17:42:59 +01:00
|
|
|
import Content from "$lib/content.svelte";
|
2025-04-01 21:30:20 +02:00
|
|
|
|
|
|
|
|
let getActiveProjects = function(projects: Project[], isActive: boolean): Project[] {
|
|
|
|
|
var result: Project[] = [];
|
|
|
|
|
projects.forEach(project => {
|
|
|
|
|
if (project.isActive == isActive) {
|
|
|
|
|
result.push(project);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return result;
|
|
|
|
|
}
|
2025-04-01 13:55:54 +02:00
|
|
|
</script>
|
|
|
|
|
|
2025-04-04 10:37:25 +02:00
|
|
|
<svelte:head>
|
|
|
|
|
<title>Projects | denizk0461</title>
|
|
|
|
|
</svelte:head>
|
|
|
|
|
|
2026-01-21 17:42:59 +01:00
|
|
|
<Content>
|
|
|
|
|
<Banner2
|
|
|
|
|
title="My Disordered Projects"
|
|
|
|
|
banner="/projects/banner.webp"
|
|
|
|
|
bannerAlt="Closeup of the purple protagonist from Project N5"
|
|
|
|
|
subtitle="Things I have worked on" />
|
2025-04-01 21:30:20 +02:00
|
|
|
|
2026-01-21 17:42:59 +01:00
|
|
|
<TableOfContents />
|
2025-04-18 16:15:00 +02:00
|
|
|
|
2026-01-21 17:42:59 +01:00
|
|
|
<h2 id="games">Games</h2>
|
|
|
|
|
{#each projects as project}
|
|
|
|
|
{#if project.type == "game"}
|
|
|
|
|
{@render projectSummary({ project: project })}
|
|
|
|
|
{/if}
|
|
|
|
|
{/each}
|
|
|
|
|
<h2 id="hardware">Hardware</h2>
|
|
|
|
|
{#each projects as project}
|
|
|
|
|
{#if project.type == "hardware"}
|
|
|
|
|
{@render projectSummary({ project: project })}
|
|
|
|
|
{/if}
|
|
|
|
|
{/each}
|
|
|
|
|
<h2 id="apps">Apps</h2>
|
|
|
|
|
{#each projects as project}
|
|
|
|
|
{#if project.type == "app"}
|
|
|
|
|
{@render projectSummary({ project: project })}
|
|
|
|
|
{/if}
|
|
|
|
|
{/each}
|
|
|
|
|
<h2 id="music">Music</h2>
|
|
|
|
|
{#each projects as project}
|
|
|
|
|
{#if project.type == "music"}
|
|
|
|
|
{@render projectSummary({ project: project })}
|
|
|
|
|
{/if}
|
|
|
|
|
{/each}
|
|
|
|
|
</Content>
|
2025-04-01 13:55:54 +02:00
|
|
|
|
|
|
|
|
{#snippet projectSummary({
|
|
|
|
|
project
|
|
|
|
|
}: {
|
|
|
|
|
project: Project;
|
|
|
|
|
})}
|
2026-01-21 17:42:59 +01:00
|
|
|
<h3 id="{project.id}">{project.title}</h3>
|
|
|
|
|
{#if project.subtitle}
|
|
|
|
|
<p class="project-subtitle">[ {project.subtitle} ]</p>
|
|
|
|
|
{/if}
|
|
|
|
|
{#if project.banner}
|
2025-08-16 21:40:51 +02:00
|
|
|
<div class="project-banner-container">
|
2025-08-18 19:44:53 +02:00
|
|
|
<img class="project-banner" src="{project.banner}" alt="Overview banner for {project.title}">
|
2025-08-16 21:40:51 +02:00
|
|
|
{#if project.date}
|
2026-01-21 17:42:59 +01:00
|
|
|
<p class="project-date project-date-embed">{project.date}</p>
|
2025-08-16 21:40:51 +02:00
|
|
|
{/if}
|
|
|
|
|
</div>
|
2026-01-21 17:42:59 +01:00
|
|
|
{:else}
|
|
|
|
|
{#if project.date}
|
2025-08-16 21:40:51 +02:00
|
|
|
<p class="project-date">{project.date}</p>
|
2026-01-21 17:42:59 +01:00
|
|
|
{/if}
|
|
|
|
|
{/if}
|
|
|
|
|
{#if project.icon}
|
2025-08-18 19:44:53 +02:00
|
|
|
<img class="project-icon" src="{project.icon}" alt="Icon for {project.title}">
|
2026-01-21 17:42:59 +01:00
|
|
|
{/if}
|
|
|
|
|
{#each project.paragraphs as paragraph}
|
|
|
|
|
<p>{@html paragraph}</p>
|
|
|
|
|
{/each}
|
|
|
|
|
<LinkList entries={project.links} />
|
|
|
|
|
{/snippet}
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.project-subtitle {
|
|
|
|
|
font-family: var(--font-mono);
|
|
|
|
|
font-size: 1.0rem;
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.project-banner-container {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: fit-content;
|
|
|
|
|
height: 300px;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.project-banner {
|
|
|
|
|
margin: 0; /* reset left/right margins */
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.project-icon {
|
|
|
|
|
float: left;
|
|
|
|
|
margin: 16px 16px 16px 0;
|
|
|
|
|
width: 20%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.project-date {
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
line-height: 1rem;
|
|
|
|
|
width: fit-content;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
color: var(--color-text-dark);
|
|
|
|
|
background-color: var(--color-highlight);
|
|
|
|
|
font-family: var(--font-stylised);
|
|
|
|
|
padding: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.project-date-embed {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
</style>
|