Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions website/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions website/src/components/layout/Logo.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
interface Props {
size?: number;
}

const { size = 28 } = Astro.props;
const gradientId = `synapse-g-${crypto.randomUUID()}`;
---
<svg viewBox="0 0 32 32" width={size} height={size} aria-hidden="true">
<defs>
<linearGradient id={gradientId} x1="0" x2="1" y1="0" y2="1">
<stop offset="0" stop-color="var(--signal-a, #61EBFA)" />
<stop offset="1" stop-color="var(--signal-b, #6FE4BF)" />
</linearGradient>
</defs>
<circle cx="8" cy="16" r="3.5" fill="var(--signal-a, #61EBFA)" />
<circle cx="24" cy="16" r="3.5" fill="var(--signal-b, #6FE4BF)" />
<path d="M8 16 Q 16 6 24 16" stroke={`url(#${gradientId})`} stroke-width="1.6" fill="none" stroke-linecap="round">
<animate attributeName="d" dur="2.4s" repeatCount="indefinite"
values="M8 16 Q 16 6 24 16; M8 16 Q 16 26 24 16; M8 16 Q 16 6 24 16" />
</path>
</svg>
16 changes: 2 additions & 14 deletions website/src/components/layout/Nav.astro
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
---
import ThemeToggle from './ThemeToggle.astro';
import Logo from './Logo.astro';
import Search from '~/components/react/Search.tsx';
const path = Astro.url.pathname;
const isActive = (p: string) => path === p || (p !== '/' && path.startsWith(p));
---
<nav class="syn-nav" aria-label="Primary">
<a href="/" class="syn-nav__brand" aria-label="Synapse home">
<svg viewBox="0 0 32 32" width="28" height="28" aria-hidden="true">
<defs>
<linearGradient id="synapse-g" x1="0" x2="1" y1="0" y2="1">
<stop offset="0" stop-color="var(--signal-a)" />
<stop offset="1" stop-color="var(--signal-b)" />
</linearGradient>
</defs>
<circle cx="8" cy="16" r="3.5" fill="var(--signal-a)" />
<circle cx="24" cy="16" r="3.5" fill="var(--signal-b)" />
<path d="M8 16 Q 16 6 24 16" stroke="url(#synapse-g)" stroke-width="1.6" fill="none">
<animate attributeName="d" dur="2.4s" repeatCount="indefinite"
values="M8 16 Q 16 6 24 16; M8 16 Q 16 26 24 16; M8 16 Q 16 6 24 16" />
</path>
</svg>
<Logo />
<span>Synapse</span>
</a>
<ul class="syn-nav__links" role="list">
Expand Down
6 changes: 2 additions & 4 deletions website/src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import BaseLayout from '~/components/layout/BaseLayout.astro';
import Logo from '~/components/layout/Logo.astro';

import { highlightJava } from '@/lib/highlight';
import { QUICKSTART_CODE, PUBSUB_CODE, HARDWARE_CODE } from '@/lib/code-samples';
Expand Down Expand Up @@ -159,10 +160,7 @@ const footerCols = [
>
<div class="mx-auto flex h-16 max-w-6xl items-center justify-between px-6">
<a href="/" class="flex items-center gap-2.5">
<span class="relative flex size-8 items-center justify-center rounded-lg bg-primary/15">
<span class="absolute size-2.5 rounded-full bg-primary shadow-[0_0_12px_var(--glow-soft)]"></span>
<span class="absolute size-5 rounded-full border border-primary/40"></span>
</span>
<Logo size={28} />
<span class="font-display text-lg font-semibold tracking-tight">Synapse</span>
<span
class="ml-1 rounded-full border border-primary/40 bg-primary/10 px-2.5 py-0.5 font-mono text-[10px] font-medium text-primary shadow-[0_0_14px_-2px_var(--glow-soft)]"
Expand Down
Loading