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
8 changes: 6 additions & 2 deletions www/src/lib/components/app-sidebar.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="ts">
import * as Sidebar from '$lib/components/ui/sidebar/index.js';
import { siteConfig } from '$lib/config';
import GalleryVerticalEnd from 'lucide-svelte/icons/gallery-vertical-end';
import type { ComponentProps } from 'svelte';
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The ComponentProps import should be moved above the component imports to maintain the conventional import ordering: types first, then external libraries, then internal modules, then components.

Copilot uses AI. Check for mistakes.
let { ref = $bindable(null), ...restProps }: ComponentProps<typeof Sidebar.Root> = $props();
import { docsNavigation } from '$lib/components/doc-navigation.svelte';
import { page } from '$app/state';
import SocialMedia from './social-media.svelte';
const path = $derived(page.url.pathname);
const compactLogo = siteConfig.logoMark ?? siteConfig.logo;
</script>

<Sidebar.Root bind:ref {...restProps}>
Expand All @@ -20,7 +20,11 @@
<div
class="flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground"
>
<GalleryVerticalEnd class="size-4" />
<img
src={compactLogo}
alt="Foundry Local logo"
class="h-5 w-5"
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fixed dimensions h-5 w-5 may distort the logo if its aspect ratio is not 1:1. The stroke logo appears to have a square viewBox (279x279), but using object-fit or allowing flexible width while constraining only height would be more robust. Consider using class=\"h-5 w-auto\" instead.

Suggested change
class="h-5 w-5"
class="h-5 w-auto"

Copilot uses AI. Check for mistakes.
/>
</div>
<div class="flex flex-col gap-0.5 leading-none">
<span class="font-semibold"> {siteConfig.title} </span>
Expand Down
17 changes: 15 additions & 2 deletions www/src/lib/components/home/hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,23 @@

<div class="relative overflow-hidden">
<div class="relative mx-auto max-w-[85rem] px-4 pb-10 pt-24 sm:px-6 lg:px-8">
<!-- Brand mark -->
<div
class="mx-auto flex max-w-2xl justify-center"
use:animate={{ delay: 0, duration: 700, animation: 'fade-in' }}
>
<img src={siteConfig.logo} alt="Foundry Local logo" class="h-16 dark:hidden" />
{#if siteConfig.logoDark}
<img src={siteConfig.logoDark} alt="Foundry Local logo" class="hidden h-16 dark:block" />
{:else}
<img src={siteConfig.logo} alt="Foundry Local logo" class="hidden h-16 dark:block" />
{/if}
</div>

<!-- Title -->
<div class="mx-auto mt-5 max-w-2xl text-center">
<h1
use:animate={{ delay: 0, duration: 800, animation: 'slide-up' }}
use:animate={{ delay: 150, duration: 800, animation: 'slide-up' }}
class="block text-4xl font-bold text-gray-800 dark:text-neutral-200 md:text-5xl lg:text-6xl"
>
<span class="text-primary">Foundry Local</span>
Expand All @@ -79,7 +92,7 @@
<!-- Description -->
<div class="mx-auto mt-5 max-w-3xl text-center">
<p
use:animate={{ delay: 200, duration: 800, animation: 'slide-up' }}
use:animate={{ delay: 350, duration: 800, animation: 'slide-up' }}
class="text-lg text-gray-600 dark:text-neutral-400"
>
{siteConfig.description}
Expand Down
5 changes: 3 additions & 2 deletions www/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ export const siteConfig: SiteConfig = {
},
{ title: 'GitHub', href: 'https://github.com/microsoft/foundry-local' }
],
logo: '/azure.svg',
logoDark: '/azure-white.svg',
logo: '/logos/foundry-local-logo-color.svg',
logoDark: '/logos/foundry-local-logo-fill.svg',
logoMark: '/logos/foundry-local-logo-stroke.svg',
favicon: '/favicon.png'
};

Expand Down
3 changes: 3 additions & 0 deletions www/src/lib/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export interface SiteConfig {
/** Path to the dark theme logo (optional) */
logoDark?: string;

/** Optional mark or monochrome variant for compact contexts */
logoMark?: string;

/** Path to the site favicon */
favicon: string;
}
Expand Down
34 changes: 34 additions & 0 deletions www/static/logos/foundry-local-logo-color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions www/static/logos/foundry-local-logo-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions www/static/logos/foundry-local-logo-stroke.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading