Skip to content

Commit

Permalink
feat(logo): update svg logos (#128)
Browse files Browse the repository at this point in the history
* feat(logo): update svg logos

* add `"evenodd"` to `.cspell.json`.
  • Loading branch information
sunyuxi4 authored Dec 22, 2024
1 parent 7ab4f7a commit e78ad49
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/update-logo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Update logo to use `.svg` file instead of `.png`.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"covector",
"dtolnay",
"emptydirs",
"evenodd",
"farmfe",
"Gridlines",
"icns",
Expand Down
Binary file removed public/acm-light.png
Binary file not shown.
Binary file removed public/acm.png
Binary file not shown.
1 change: 1 addition & 0 deletions public/algohub-day.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/algohub-night.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/UniversalToolBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const toString = (value: any) => {
<div class="bg-gray-100 dark:bg-zinc-900 flex flex-row items-center justify-between w-full py-3 px-5 flex-wrap"
:class="{ 'border-b-[1.2px] border-zinc-300 dark:border-zinc-600 shadow-sm': separateBottom ?? true }">
<div class="inline-flex justify-center items-center">
<img @click="router.push('/')" class="cursor-pointer" :src="themeStore.dark ? '/acm-light.png' : '/acm.png'"
<img @click="router.push('/')" class="cursor-pointer" :src="themeStore.logo"
width="40"></img>
<Breadcrumb v-if="path?.length" :model="path" class="!bg-transparent !p-0">
<template #item="{ item }">
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const useThemeStore = defineStore(
}
};
const icon = computed(() => (dark.value ? "pi pi-moon" : "pi pi-sun"));
const logo = computed(() => (dark.value ? "/acm-light.png" : "/acm.png"));
const logo = computed(() => (dark.value ? "/algohub-night.svg" : "/algohub-day.svg"));
return { dark, toggle, init, icon, logo };
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/views/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const onLogin = async ({ valid, states }: { valid: boolean, states: LoginForm<Re
<div class="flex flex-row h-full">
<div class="hidden md:flex flex-col items-center justify-center h-full w-full">
<div class="flex flex-1 flex-col items-center justify-center w-full h-full">
<Image class="hidden md:flex" :src="themeStore.dark ? '/acm-light.png' : '/acm.png'" alt="Image" width="250" />
<Image class="hidden md:flex" :src="themeStore.logo" alt="Image" width="250" />
<h1 class="text-3xl md:text-4xl font-bold mt-6 md:m-0">ACM Algorithm Hub</h1>
</div>
<footer class="flex flex-row items-start w-full">
Expand Down

0 comments on commit e78ad49

Please sign in to comment.