Skip to content

Commit

Permalink
change logo
Browse files Browse the repository at this point in the history
  • Loading branch information
pancopa committed May 29, 2024
1 parent 0e69676 commit a0f4e51
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/assets/images/svg/logo_omakase-dark.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 src/assets/images/svg/logo_omakase-light.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: 2 additions & 1 deletion src/layouts/components/DefaultLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ dayjs()
<RouterLink to="/" class="flex items-center">
<!-- <img class="w-10 h-10" src="../../assets/logo.svg" /> -->
<h1 class="flex-1 ml-3 text-2xl font-semibold dark:text-white">
Omakase
<img class="nav_logo nav_logo-dark" src="/src/assets/images/svg/logo_omakase-dark.svg" alt="omakase">
<img class="nav_logo nav_logo-light" src="/src/assets/images/svg/logo_omakase-light.svg" alt="omakase">
</h1>
</RouterLink>
<div
Expand Down
17 changes: 17 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,21 @@ html[data-theme='dark'] {
.slide-up-leave-to {
opacity: 0;
transform: translateY(-calc(15%));
}
/* nav logo style */
.nav_logo {
width: calc(100% - 4rem);
margin-left: -1rem;
}
html.dark .nav_logo-light {
display: none;
}
html.light .nav_logo-light {
display: inline-block;
}
html.dark .nav_logo-dark {
display: inline-block;
}
html.light .nav_logo-dark {
display: none;
}

0 comments on commit a0f4e51

Please sign in to comment.