Compare commits

...

3 Commits

Author SHA1 Message Date
e1bed7cdfd fixed weird padding at bottom of screen 2026-11-16 12:17:27 +00:00
702a9b5cea added contact info section 2026-11-16 11:59:22 +00:00
beccb85c5f fixed favicon color, added title and footer 2026-11-16 11:59:16 +00:00
5 changed files with 58 additions and 10 deletions

View File

@@ -14,16 +14,16 @@
id="g26"
style="display:inline"><path
d="m 294.79965,34.297099 39.57108,121.763401 65.7377,0.17339 -33.25603,99.76808 33.25603,99.76611 H 334.619 L 294.79965,477.7029 h 89.20094 L 512.00024,256 384.00059,34.297099 Z"
style="fill:currentColor;stroke:currentColor;stroke-width:3.99474"
style="fill:#8839ef;stroke:#8839ef;stroke-width:3.99474"
id="path26" /><path
d="M 127.99934,34.297099 -3.0431451e-4,256 127.99934,477.7029 h 89.20094 L 177.6292,355.76808 h -65.73769 l 33.25602,-99.76611 -33.25602,-99.76808 h 65.9367 L 217.20028,34.297099 Z"
style="fill:currentColor;stroke:currentColor;stroke-width:3.99474"
style="fill:#8839ef;stroke:#8839ef;stroke-width:3.99474"
id="path22" /><path
d="m 641.64264,15.133196 -22.25661,71.01166 h 44.5142 z"
style="opacity:1;fill:currentColor;fill-opacity:1;stroke:currentColor;stroke-width:1.99029;stroke-dasharray:none;stroke-opacity:1"
style="opacity:1;fill:#8839ef;fill-opacity:1;stroke:#8839ef;stroke-width:1.99029;stroke-dasharray:none;stroke-opacity:1"
id="path23"
transform="matrix(1.9922792,0,0,1.9922792,-1022.3323,51.121339)" /><path
d="m 619.38603,119.52877 22.25661,72.33396 22.25759,-72.33396 z"
style="display:inline;opacity:1;fill:currentColor;fill-opacity:1;stroke:currentColor;stroke-width:1.99029;stroke-dasharray:none;stroke-opacity:1"
style="display:inline;opacity:1;fill:#8839ef;fill-opacity:1;stroke:#8839ef;stroke-width:1.99029;stroke-dasharray:none;stroke-opacity:1"
id="path25"
transform="matrix(1.9922792,0,0,1.9922792,-1022.3323,51.121339)" /></g></g></svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -8,6 +8,11 @@
<svelte:head>
<link rel="icon" href={favicon} />
<title>Voidarc</title>
</svelte:head>
{@render children()}
<div class="h-20 w-full place-content-center bg-ctp-surface0 text-center">
Copyright Adumh00man 2026
</div>

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import type { PageData } from './$types';
import { SiGit, SiHugo, SiYoutube } from '@icons-pack/svelte-simple-icons';
import { SiGit, SiMaildotru, SiHugo, SiMatrix, SiYoutube } from '@icons-pack/svelte-simple-icons';
import Content from './Content.svelte';
import Commits from './Commits.svelte';
@@ -20,7 +20,7 @@
</div>
<span class="banner-text absolute inset-x-0 text-ctp-mauve">[VOIDARC INCORPORATED]</span>
</div>
<div class="my-6 grid grid-flow-row auto-rows-min gap-5">
<div class="my-6 grid grid-flow-row auto-rows-min gap-3">
<div
class="main-container grid grid-cols-1 py-7 pl-4 min-[900px]:grid-cols-[2fr_1fr] min-[900px]:pl-10"
style="--container-color:var(--ctp-mauve);"
@@ -168,6 +168,37 @@
</div>
</div>
</div>
<div
class="main-container grid grid-rows-2 min-[700px]:grid-cols-2 min-[700px]:grid-rows-1"
style="--container-color:var(--ctp-yellow);"
>
<a
class="group mr-10 ml-5 flex flex-row place-items-center justify-center py-2 hover:bg-ctp-surface2 min-[700px]:mr-0 min-[700px]:ml-10"
href="https://matrix.to/#/#space:voidarc.co.uk"
title="Join #space:voidarc.co.uk"
>
<div class="aspect-[2/1.732] h-10 group-hover:text-ctp-mauve">
{@html voidarcIcon}
</div>
<p class="ml-2 text-xl font-bold group-hover:text-ctp-mauve group-hover:underline">
VOIDARC MATRIX SPACE
</p>
</a>
<div
class="group mr-10 ml-5 flex flex-row place-items-center justify-center gap-8 py-2 min-[700px]:ml-0"
>
<a href="mailto://admin@voidarc.co.uk">
<SiMaildotru class="hover:text-ctp-sky" title="Email admin@voidarc.co.uk" size="30" />
</a>
<a href="https://matrix.to/#/admin:voidarc.co.uk">
<SiMatrix
class="hover:text-ctp-green"
title="Matrix address admin:voidarc.co.uk"
size="30"
/>
</a>
</div>
</div>
<div class="grid grid-cols-1 gap-4 min-[900px]:grid-cols-[9fr_7fr] min-[900px]:grid-rows-1">
<div
class="main-container"

View File

@@ -97,6 +97,7 @@
if (rows.length !== currentItems.length) return;
const containerRect = containerEl.getBoundingClientRect();
const listRect = listEl.getBoundingClientRect();
nodePositions = rows.map((row) => {
const card = row.children[1] as HTMLElement;
@@ -108,7 +109,10 @@
};
});
graphHeight = containerEl.scrollHeight;
// Measure the list instead of the container: the absolutely positioned SVG
// is part of the container's scroll height, which would make graphHeight
// grow and never shrink again when the viewport widens.
graphHeight = listRect.bottom - containerRect.top;
}
// Initial measurement.

View File

@@ -4,6 +4,7 @@
let { items }: { items: ContentItem[] } = $props();
let containerElement: HTMLDivElement;
let listElement = $state<HTMLDivElement>();
let cardElements = $state<HTMLElement[]>([]);
let graphHeight = $state(0);
@@ -14,11 +15,15 @@
const currentItems = items;
const cards = cardElements.filter(Boolean);
const container = containerElement;
const list = listElement;
if (!container || cards.length !== currentItems.length) return;
if (!container || !list || cards.length !== currentItems.length) return;
const listEl: HTMLDivElement = list;
function updatePositions() {
const containerRect = container.getBoundingClientRect();
const listRect = listEl.getBoundingClientRect();
nodePositions = cards.map((card) => {
const rect = card.getBoundingClientRect();
@@ -29,7 +34,10 @@
};
});
graphHeight = container.scrollHeight;
// Measure the list instead of the container: the absolutely positioned SVG
// is part of the container's scroll height, which would make graphHeight
// grow and never shrink again when the viewport widens.
graphHeight = listRect.bottom - containerRect.top;
}
// Initial measurement.
@@ -90,7 +98,7 @@
</svg>
<!-- Article list -->
<div class="mt-3 mr-4 grid grid-flow-row auto-rows-min">
<div bind:this={listElement} class="mt-3 mr-4 grid grid-flow-row auto-rows-min">
{#each items as item, index (item.link)}
<div
class="relative z-10 grid grid-cols-[2rem_minmax(0,1fr)] gap-4 pb-3 max-[600px]:grid-cols-[1.25rem_minmax(0,1fr)] max-[600px]:gap-2"