File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import ThemeSwitcher from ' ./ThemeSwitcher.svelte' ;
33 import Icon from ' @iconify/svelte' ;
4+ import logoLight from ' $lib/assets/images/logo.svg' ;
5+ import logoDark from ' $lib/assets/images/logo-dark.svg' ;
46
57 let {
68 showPricing = true ,
2628<header >
2729 <div class =" header-inner" >
2830 <a href =" /" class =" logo" aria-label =" PostGuard for Business home" >
29- <Icon icon = " mdi:shield-lock " width = " 28 " height =" 28" />
30- <span class =" logo-text " >PostGuard</ span >
31+ <img src ={ logoLight } alt = " PostGuard " class = " logo-img light-only " height =" 28" />
32+ <img src ={ logoDark } alt = " PostGuard " class =" logo-img dark-only " height = " 28 " / >
3133 <span class =" logo-badge" >Business</span >
3234 </a >
3335
8789 color : var (--pg-text );
8890 }
8991
90- .logo-text {
91- font-family : var (--pg-font-family );
92- font-weight : var (--pg-font-weight-extrabold );
93- font-size : var (--pg-font-size-lg );
94- }
95-
9692 .logo-badge {
9793 font-family : var (--pg-font-family );
9894 font-size : var (--pg-font-size-xs );
Original file line number Diff line number Diff line change @@ -79,6 +79,18 @@ body {
7979 .invert {
8080 filter : invert (100% );
8181 }
82+
83+ .light-only {
84+ display : none !important ;
85+ }
86+ }
87+
88+ .dark-only {
89+ display : none !important ;
90+ }
91+
92+ .dark .dark-only {
93+ display : block !important ;
8294}
8395
8496* ,
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import Icon from ' @iconify/svelte' ;
3+ import logoLight from ' $lib/assets/images/logo.svg' ;
4+ import logoDark from ' $lib/assets/images/logo-dark.svg' ;
35 import ThemeSwitcher from ' $lib/components/ThemeSwitcher.svelte' ;
46 import type { LayoutData } from ' ./$types' ;
57
3436 <aside class ="sidebar" class:open ={sidebarOpen }>
3537 <div class =" sidebar-header" >
3638 <a href =" /admin/organizations" class =" sidebar-logo" >
37- <Icon icon = " mdi:shield-lock " width = " 24 " height =" 24 " />
39+ <img src ={ logoLight } alt = "PostGuard" class = "logo-img light-only" height = "22" />< img src ={ logoDark } alt = " PostGuard " class = " logo-img dark-only " height =" 22 " />
3840 <span >Admin</span >
3941 </a >
4042 <button class ="sidebar-close desktop-hide" onclick ={() => (sidebarOpen = false )}>
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import Icon from ' @iconify/svelte' ;
3+ import logoLight from ' $lib/assets/images/logo.svg' ;
4+ import logoDark from ' $lib/assets/images/logo-dark.svg' ;
35 import ThemeSwitcher from ' $lib/components/ThemeSwitcher.svelte' ;
46 import type { LayoutData } from ' ./$types' ;
57
3739 <aside class ="sidebar" class:open ={sidebarOpen }>
3840 <div class =" sidebar-header" >
3941 <a href =" /" class =" sidebar-logo" >
40- <Icon icon = " mdi:shield-lock " width = " 24 " height =" 24 " />
42+ <img src ={ logoLight } alt = "PostGuard" class = "logo-img light-only" height = "22" />< img src ={ logoDark } alt = " PostGuard " class = " logo-img dark-only " height =" 22 " />
4143 <span >PostGuard</span >
4244 </a >
4345 <button class ="sidebar-close desktop-hide" onclick ={() => (sidebarOpen = false )}>
Original file line number Diff line number Diff line change 33 import ThemeSwitcher from ' $lib/components/ThemeSwitcher.svelte' ;
44 import YiviLogin from ' $lib/components/YiviLogin.svelte' ;
55 import Icon from ' @iconify/svelte' ;
6+ import logoLight from ' $lib/assets/images/logo.svg' ;
7+ import logoDark from ' $lib/assets/images/logo-dark.svg' ;
68 import { goto } from ' $app/navigation' ;
79 import { page } from ' $app/state' ;
810 import type { PageData } from ' ./$types' ;
2123<section class =" login-page" >
2224 <div class =" login-header" >
2325 <a href =" /" class =" logo" >
24- <Icon icon = " mdi:shield-lock " width = " 24 " height =" 24 " />
26+ <img src ={ logoLight } alt = "PostGuard" class = "logo-img light-only" height = "22" />< img src ={ logoDark } alt = " PostGuard " class = " logo-img dark-only " height =" 22 " />
2527 <span >PostGuard</span >
2628 </a >
2729 <ThemeSwitcher />
Original file line number Diff line number Diff line change 33 import ThemeSwitcher from ' $lib/components/ThemeSwitcher.svelte' ;
44 import YiviLogin from ' $lib/components/YiviLogin.svelte' ;
55 import Icon from ' @iconify/svelte' ;
6+ import logoLight from ' $lib/assets/images/logo.svg' ;
7+ import logoDark from ' $lib/assets/images/logo-dark.svg' ;
68 import { goto } from ' $app/navigation' ;
79 import type { PageData } from ' ./$types' ;
810
1820<section class =" login-page" >
1921 <div class =" login-header" >
2022 <a href =" /" class =" logo" >
21- <Icon icon = " mdi:shield-lock " width = " 24 " height =" 24 " />
23+ <img src ={ logoLight } alt = "PostGuard" class = "logo-img light-only" height = "22" />< img src ={ logoDark } alt = " PostGuard " class = " logo-img dark-only " height =" 22 " />
2224 <span >PostGuard</span >
2325 </a >
2426 <ThemeSwitcher />
You can’t perform that action at this time.
0 commit comments