Skip to content

Commit

Permalink
WIP - Added logo as svg
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Feb 1, 2024
1 parent ee27fa4 commit 4c330e2
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 17 deletions.
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions src/Exceptionless.Web/ClientApp/src/lib/assets/icons/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/Exceptionless.Web/ClientApp/src/lib/assets/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
import IconClose from '~icons/mdi/close';
import IconMenu from '~icons/mdi/menu';
import IconSearch from '~icons/mdi/search';
import IconExceptionlessLogo from '~icons/exceptionless/logo';
import IconExceptionlessLogoDark from '~icons/exceptionless/logo-dark';
import logo from '$lib/assets/exceptionless-48.png';
import { isSidebarOpen } from '$lib/stores/sidebar';
import logoSmall from '$lib/assets/exceptionless-48.png';
import { isLargeScreen, isSidebarOpen } from '$lib/stores/sidebar';
import * as Avatar from '$comp/ui/avatar';
import * as DropdownMenu from '$comp/ui/dropdown-menu';
import SearchInput from '$comp/SearchInput.svelte';
Expand All @@ -26,10 +28,10 @@
on:click={onHamburgerClick}
variant="outline"
size="icon"
class="mr-3 hidden p-1 lg:block"
class="hidden p-1 mr-3 lg:block"
aria-controls="sidebar"
>
<IconMenu class="h-6 w-6" />
<IconMenu class="w-6 h-6" />
</Button>
<Button
on:click={onHamburgerClick}
Expand All @@ -39,17 +41,18 @@
aria-controls="sidebar"
>
{#if $isSidebarOpen}
<IconClose class="h-6 w-6" />
<IconClose class="w-6 h-6" />
{:else}
<IconMenu class="h-6 w-6" />
<IconMenu class="w-6 h-6" />
{/if}
</Button>
<a href="./" class="mr-14 flex">
<img src={logo} class="mr-3 h-8" alt="Exceptionless Logo" />
<span
class="self-center whitespace-nowrap text-2xl font-semibold dark:text-white"
>Exceptionless</span
>
<a href="./" class="flex mr-14 dark:text-white">
{#if $isLargeScreen}
<IconExceptionlessLogo class="dark:hidden" />
<IconExceptionlessLogoDark class="hidden dark:block" />
{:else}
<img src={logoSmall} class="h-8 mr-3" alt="Exceptionless Logo" />
{/if}
</a>
<form action="/" method="GET" class="hidden lg:block lg:pl-2">
<div class="mt-1 lg:w-96">
Expand All @@ -66,7 +69,7 @@
>
<span class="sr-only">Search</span>

<IconSearch class="h-6 w-6" />
<IconSearch class="w-6 h-6" />
</Button>

<DarkModeButton></DarkModeButton>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<script lang="ts">
import logo from '$lib/assets/exceptionless-350.png';
import IconExceptionlessLogo from '~icons/exceptionless/logo';
import IconExceptionlessLogoDark from '~icons/exceptionless/logo-dark';
</script>

<div class="flex h-screen">
<div class="m-auto w-full rounded-md p-6 shadow-md lg:max-w-lg">
<img class="mx-auto" src={logo} alt="Exceptionless" />
<div class="w-full p-6 m-auto rounded-md shadow-md lg:max-w-lg">
<IconExceptionlessLogo class="mx-auto dark:hidden" />
<IconExceptionlessLogoDark class="hidden mx-auto dark:block" />

<slot />
</div>
</div>
6 changes: 5 additions & 1 deletion src/Exceptionless.Web/ClientApp/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { sveltekit } from '@sveltejs/kit/vite';
import Icons from 'unplugin-icons/vite';
import { FileSystemIconLoader } from 'unplugin-icons/loaders';
import { defineConfig } from 'vitest/config';

const aspNetConfig = getAspNetConfig();
Expand All @@ -8,7 +9,10 @@ export default defineConfig({
plugins: [
sveltekit(),
Icons({
compiler: 'svelte'
compiler: 'svelte',
customCollections: {
exceptionless: FileSystemIconLoader('./src/lib/assets/icons')
}
})
],
test: {
Expand Down

0 comments on commit 4c330e2

Please sign in to comment.