|
1 | 1 | <nwb-title-bar *ngIf="isElectron"></nwb-title-bar> |
2 | 2 |
|
3 | | -<div class="navbar bg-base-100 z-50 rounded-md font-bold"> |
4 | | - <div class="px-2 flex-none"> |
5 | | - <a class="text-lg font-bold"> |
6 | | - <img src="assets/icons/favicon.png" class="w-12" /> |
7 | | - </a> |
| 3 | +<div class="layout-pad-x layout-pad-t"> |
| 4 | + <div class="navbar bg-base-100 z-50 font-bold rounded-md shadow-xl"> |
| 5 | + <div class="navbar-start w-auto flex-none"> |
| 6 | + <button class="btn btn-square btn-ghost text-primary lg:hidden" [nwbScreenDrawerToggle]="'toggle'"> |
| 7 | + <svg fill="none" viewBox="0 0 24 24" class="inline-block w-5 h-5 stroke-current"> |
| 8 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path> |
| 9 | + </svg> |
| 10 | + </button> |
| 11 | + <a class="hidden lg:inline-block text-lg font-bold"> |
| 12 | + <img src="assets/icons/favicon.png" class="w-12" /> |
| 13 | + </a> |
| 14 | + </div> |
| 15 | + <div class="navbar-center flex-1 items-center justify-center"> |
| 16 | + <a class=" lg:hidden text-lg font-bold"> |
| 17 | + <img src="assets/icons/favicon.png" class="w-12" /> |
| 18 | + </a> |
| 19 | + </div> |
| 20 | + <div class="navbar-end w-auto flex-none"> |
| 21 | + <select class="select select-bordered w-20" [(ngModel)]="language"> |
| 22 | + <option *ngFor="let item of langOptions" [value]="item.value">{{ item.label }}</option> |
| 23 | + </select> |
| 24 | + </div> |
8 | 25 | </div> |
9 | | - <div class="flex flex-1 px-2 overflow-x-overlay scrollable"> |
10 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/items"> Items </a> |
11 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/housing"> Housing </a> |
12 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/crafting"> Crafting </a> |
13 | | - |
14 | | - <div class="divider divider-horizontal"></div> |
15 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/perks"> Perks </a> |
16 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/abilities"> Abilities </a> |
17 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/status-effects"> Statuseffects </a> |
18 | | - |
19 | | - <div class="divider divider-horizontal"></div> |
20 | | - |
21 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/armorsets">Armorsets</a> |
22 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/progression"> Progression </a> |
23 | | - |
24 | | - <div class="divider divider-horizontal"></div> |
| 26 | +</div> |
| 27 | +<nwb-screen-drawer class="select-none"> |
| 28 | + <nwb-screen-drawer-side class="rounded-md layout-pad-l layout-pad-b" [nwbScreenDrawerToggle]="'close'"> |
| 29 | + <ng-container *ngFor="let group of mainMenu"> |
| 30 | + <ul class="menu menu-compact w-60 bg-base-300 rounded-md flex-none"> |
| 31 | + <li class="menu-title uppercase mt-2" *ngIf="group.category"> |
| 32 | + <span>{{ group.category }}</span> |
| 33 | + </li> |
| 34 | + <ng-container *ngFor="let item of group.items"> |
| 35 | + <li *ngIf="item.divider"></li> |
| 36 | + <li routerLinkActive="bordered"> |
| 37 | + <a #link [routerLink]="item.path"> {{ item.label }} </a> |
| 38 | + </li> |
| 39 | + </ng-container> |
25 | 40 |
|
26 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/territories"> Territories </a> |
27 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/dungeons">Dungeons</a> |
28 | | - <a #link class="btn btn-ghost" routerLinkActive="text-primary" routerLink="/vitals"> Vitals </a> |
29 | | - </div> |
30 | | - <div class="flex flex-none px-2"> |
31 | | - <select class="select select-bordered w-20" [(ngModel)]="language"> |
32 | | - <option disabled selected>Pick one</option> |
33 | | - <option value="de-de">DE</option> |
34 | | - <option value="en-us">EN</option> |
35 | | - <option value="es-es">ES</option> |
36 | | - <option value="fr-fr">FR</option> |
37 | | - <option value="it-it">IT</option> |
38 | | - <option value="pl-pl">PL</option> |
39 | | - <option value="pt-br">BR</option> |
40 | | - </select> |
| 41 | + </ul> |
| 42 | + </ng-container> |
41 | 43 |
|
42 | | - <div class="dropdown dropdown-end"> |
43 | | - <label tabindex="0" class="btn btn-ghost btn-circle"> |
44 | | - <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
45 | | - <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h7" /> |
46 | | - </svg> |
47 | | - </label> |
48 | | - <ul tabindex="0" class="menu menu-compact dropdown-content mt-3 p-2 shadow bg-base-100 rounded-md w-52"> |
49 | | - <li> |
50 | | - <a routerLinkActive="text-primary" routerLink="/preferences"> Preferences </a> |
51 | | - </li> |
52 | | - <li> |
53 | | - <a routerLinkActive="text-primary" routerLink="/about"> About </a> |
54 | | - </li> |
55 | 44 |
|
56 | | - <li class="menu-title"> |
57 | | - <span>Tools on the web</span> |
58 | | - </li> |
59 | 45 |
|
60 | | - <li *ngFor="let it of links"> |
61 | | - <a target="_blank" [href]="it.url"> |
62 | | - <svg viewBox="0 0 448 512" class="w-4 h-4"> |
63 | | - <path |
64 | | - fill="currentColor" |
65 | | - d="M288 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h50.7L169.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L384 141.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H288zM80 64C35.8 64 0 99.8 0 144v256c0 44.2 35.8 80 80 80h256c44.2 0 80-35.8 80-80v-80c0-17.7-14.3-32-32-32s-32 14.3-32 32v80c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h80c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z" |
66 | | - /> |
67 | | - </svg> |
68 | | - <span class="whitespace-nowrap">{{ it.label }}</span> |
69 | | - </a> |
70 | | - </li> |
71 | | - </ul> |
72 | | - </div> |
73 | | - </div> |
74 | | -</div> |
75 | | -<router-outlet></router-outlet> |
| 46 | + </nwb-screen-drawer-side> |
| 47 | + <nwb-screen-drawer-content class="layout-row layout-gap layout-pad-x layout-pad-b"> |
| 48 | + <router-outlet></router-outlet> |
| 49 | + </nwb-screen-drawer-content> |
| 50 | +</nwb-screen-drawer> |
0 commit comments