Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2025 02 21 fix missing logos #1366

Merged
merged 1 commit into from
Feb 21, 2025
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
35 changes: 10 additions & 25 deletions tauri-app/src/lib/components/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import ReceiptSolid from 'flowbite-svelte-icons/ReceiptSolid.svelte';
import GearSolid from 'flowbite-svelte-icons/GearSolid.svelte';
import FileLinesSolid from 'flowbite-svelte-icons/FileLinesSolid.svelte';
import { IconExternalLink, IconTelegram } from '@rainlanguage/ui-components';
import { IconExternalLink, IconTelegram, logoDark, logoLight } from '@rainlanguage/ui-components';
import { page } from '$app/stores';
import ButtonDarkMode from '../../../../packages/ui-components/src/lib/components/ButtonDarkMode.svelte';
import { PlusSolid } from 'flowbite-svelte-icons';
Expand All @@ -28,30 +28,15 @@
<Sidebar activeUrl={$page.url.pathname} asideClass="w-64 fixed z-10">
<SidebarWrapper divClass="overflow-y-auto py-11 px-3 bg-gray-100 dark:bg-gray-800 min-h-screen">
<SidebarGroup ulClass="">
<div class="block dark:hidden">
<SidebarBrand
site={{
name: '',
href: '/',
img: '/logo-light.svg',
}}
imgClass="w-2/3 m-auto"
aClass="w-full flex items-center justify-start gap-x-3 mb-5"
spanClass="hidden"
></SidebarBrand>
</div>
<div class="hidden dark:block">
<SidebarBrand
site={{
name: '',
href: '/',
img: '/logo-dark.svg',
}}
imgClass="w-2/3 m-auto"
aClass="w-full flex items-center justify-start gap-x-3 mb-5"
spanClass="hidden"
></SidebarBrand>
</div>
<SidebarBrand
site={{
name: '',
href: '/',
img: $colorTheme === 'light' ? logoLight : logoDark,
}}
imgClass="m-auto px-4"
aClass="mb-0"
></SidebarBrand>
</SidebarGroup>
<SidebarGroup border>
<SidebarItem label="New Order" href={'/orders/add'}>
Expand Down
8 changes: 2 additions & 6 deletions tauri-app/src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<script lang="ts">
import { IconTelegram } from '@rainlanguage/ui-components';
import { IconTelegram, logoDark, logoLight } from '@rainlanguage/ui-components';
import { Button } from 'flowbite-svelte';
import { colorTheme } from '$lib/stores/darkMode';
</script>

<div class="mx-auto flex max-w-prose flex-col items-center gap-y-8 pt-12">
<img
alt="Raindex logo"
class="w-[400px]"
src={$colorTheme === 'dark' ? '/logo-dark.svg' : '/logo-light.svg'}
/>
<img alt="Raindex logo" class="w-[400px]" src={$colorTheme === 'dark' ? logoDark : logoLight} />
<div class="mt-4 text-center text-2xl">
Raindex allows anyone to write, deploy and manage token trading strategies, written in Rainlang,
on any EVM network.
Expand Down