-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.component.html
More file actions
68 lines (67 loc) · 2.69 KB
/
header.component.html
File metadata and controls
68 lines (67 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<div
class="header flex items-center justify-between w-full bg-white text-gray-800 dark:bg-gray-900 dark:text-white border-b border-gray-200 dark:border-gray-700 p-4 shadow-md transition-all duration-300 ease-in-out"
>
<div class="flex flex-row items-center gap-4 justify-between w-full">
<img
*ngIf="!isDarkMode"
src="/images/logo_sanalyz.png"
class="w-32 h-auto"
alt="Logo Sanalyz Bleu Marine"
/>
<img
*ngIf="isDarkMode"
src="/images/logo_dark_sanalyz.png"
class="w-32 h-auto"
alt="Logo Sanalyz Blanc"
/>
<div class="flex items-center gap-4">
<button
title="Toggle dark mode"
name="toggleDarkMode"
aria-label="Toggle dark mode"
(click)="toggleTheme()"
class="focus:outline-none text-gray-800 dark:text-white mr-10"
>
<svg
*ngIf="!isDarkMode"
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-moon-fill"
viewBox="0 0 16 16"
>
<path
d="M6 .278a.77.77 0 0 1 .08.858 7.2 7.2 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277q.792-.001 1.533-.16a.79.79 0 0 1 .81.316.73.73 0 0 1-.031.893A8.35 8.35 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.75.75 0 0 1 6 .278"
/>
</svg>
<svg
*ngIf="isDarkMode"
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-brightness-high"
viewBox="0 0 16 16"
>
<path
d="M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0m9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708"
/>
</svg>
</button>
<button
title="Toggle locale"
name="toggleLocale"
aria-label="Toggle locale"
(click)="toggleLocale()"
class="focus:outline-none text-gray-800 dark:text-white mr-10"
>
<img
style="width: 48px; height: 32px"
[src]="localeIcon"
alt="Change locale"
/>
</button>
</div>
</div>
</div>