|
1 | 1 | <div *ngIf="user$ | async as user" class="h-screen flex bg-gray-50 overflow-visible">
|
2 |
| - <div #sideBar class="hidden lg:flex lg:flex-shrink-0 overflow-visible"> |
| 2 | + <div class="flex overflow-visible"> |
3 | 3 | <div class="flex flex-col w-20 overflow-visible">
|
4 | 4 | <div class="flex-1 flex flex-col min-h-0 overflow-y-auto bg-kernindigo overflow-initial">
|
5 | 5 | <div class="flex-1 flex flex-col">
|
6 |
| - <div class="flex-shrink-0 bg-kernindigo pt-4 flex items-center justify-center"> |
| 6 | + <div class="flex-shrink-0 bg-kernindigo pt-4 pb-10 flex items-center justify-center"> |
7 | 7 | <a [routerLink]="['/projects']"
|
8 | 8 | class="inline-flex items-center p-2 rounded-full hover:bg-kernindigo-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-kernindigo-dark"
|
9 | 9 | data-intercom-target="Home Button">
|
|
32 | 32 | </div>
|
33 | 33 | <div>
|
34 | 34 | <div *ngIf="project$ | async as project">
|
35 |
| - <div *ngIf="project.id !== null" |
36 |
| - [ngClass]="user?.role == 'ENGINEER' ? 'visible' : 'invisible' "> |
37 |
| - <div class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12"> |
| 35 | + <div *ngIf="project.id !== null"> |
| 36 | + <div *ngIf="user?.role == 'ENGINEER'" |
| 37 | + class="flex items-center justify-center overflow-visible"> |
38 | 38 | <div data-tip="Overview" class="tooltip tooltip-right relative z-50"
|
39 | 39 | [ngClass]="project.numDataScaleUploaded == 0 ? 'opacity-50 cursor-not-allowed pointer-events-none' : 'opacity-100 cursor-pointer'">
|
40 | 40 | <a [routerLink]="['./overview']" rel="noopener noreferrer"
|
|
48 | 48 | </a>
|
49 | 49 | </div>
|
50 | 50 | </div>
|
51 |
| - <div class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12"> |
| 51 | + <div *ngIf="user?.role == 'ENGINEER'" |
| 52 | + class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12"> |
52 | 53 | <div data-tip="Data Browser" class="tooltip tooltip-right relative z-50"
|
53 | 54 | [ngClass]="project.numDataScaleUploaded == 0 ? 'opacity-50 cursor-not-allowed pointer-events-none' : 'opacity-100 cursor-pointer'">
|
54 | 55 | <a [routerLink]="['./data']" rel="noopener noreferrer" class="circle text-white"
|
|
67 | 68 | </a>
|
68 | 69 | </div>
|
69 | 70 | </div>
|
70 |
| - <div class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12"> |
| 71 | + <div class="flex items-center justify-center overflow-visible" |
| 72 | + [ngClass]="user?.role == 'ENGINEER'?'mt-10 2xl:mt-12':''"> |
71 | 73 | <div data-tip="Labeling" class="tooltip tooltip-right relative z-50"
|
72 | 74 | [ngClass]="project.numDataScaleUploaded == 0 ? 'opacity-50 cursor-not-allowed pointer-events-none' : 'opacity-100 cursor-pointer'">
|
73 | 75 | <a [routerLink]="['./labeling']" rel="noopener noreferrer"
|
|
82 | 84 | </a>
|
83 | 85 | </div>
|
84 | 86 | </div>
|
85 |
| - <div class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12"> |
| 87 | + <div *ngIf="user?.role == 'ENGINEER'" |
| 88 | + class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12"> |
86 | 89 | <div data-tip="Heuristics" class="tooltip tooltip-right relative z-50"
|
87 | 90 | [ngClass]="project.numDataScaleUploaded == 0 ? 'opacity-50 cursor-not-allowed pointer-events-none' : 'opacity-100 cursor-pointer'">
|
88 | 91 | <a [routerLink]="['./heuristics']" rel="noopener noreferrer"
|
|
96 | 99 | </a>
|
97 | 100 | </div>
|
98 | 101 | </div>
|
99 |
| - <div class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12"> |
| 102 | + <div *ngIf="user?.role == 'ENGINEER'" |
| 103 | + class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12"> |
100 | 104 | <div data-tip="Settings" class="tooltip tooltip-right relative z-50">
|
101 | 105 | <a [routerLink]="['./settings']" rel="noopener noreferrer"
|
102 | 106 | class="circle text-white"
|
|
119 | 123 | </div>
|
120 | 124 | </div>
|
121 | 125 | </div>
|
122 |
| - <div [ngClass]="user?.role == 'ENGINEER' ? 'visible' : 'invisible' "> |
| 126 | + <div *ngIf="user?.role == 'ENGINEER'"> |
123 | 127 | <div class="flex items-center justify-center overflow-visible mt-6">
|
124 | 128 | <div data-tip="Documentation" class="tooltip tooltip-right relative z-50">
|
125 | 129 | <a href="https://docs.kern.ai/" target="_blank" rel="noopener noreferrer"
|
|
149 | 153 | </a>
|
150 | 154 | </div>
|
151 | 155 | </div>
|
152 |
| - <div class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12"> |
153 |
| - <div data-tip="Join our community" class="tooltip tooltip-right relative z-50"> |
154 |
| - <a href="https://discord.com/invite/qf4rGCEphW" target="_blank" |
155 |
| - rel="noopener noreferrer" class="circle text-white"> |
156 |
| - <svg xmlns="http://www.w3.org/2000/svg" |
157 |
| - class="icon icon-tabler icon-tabler-brand-discord" width="24" height="24" |
158 |
| - viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" |
159 |
| - stroke-linecap="round" stroke-linejoin="round"> |
160 |
| - <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> |
161 |
| - <circle cx="9" cy="12" r="1"></circle> |
162 |
| - <circle cx="15" cy="12" r="1"></circle> |
163 |
| - <path d="M7.5 7.5c3.5 -1 5.5 -1 9 0"></path> |
164 |
| - <path d="M7 16.5c3.5 1 6.5 1 10 0"></path> |
165 |
| - <path |
166 |
| - d="M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-1 2.5"> |
167 |
| - </path> |
168 |
| - <path |
169 |
| - d="M8.5 17c0 1 -1.356 3 -1.832 3c-1.429 0 -2.698 -1.667 -3.333 -3c-.635 -1.667 -.476 -5.833 1.428 -11.5c1.388 -1.015 2.782 -1.34 4.237 -1.5l1 2.5"> |
170 |
| - </path> |
171 |
| - </svg> |
172 |
| - </a> |
173 |
| - </div> |
174 |
| - </div> |
| 156 | + |
| 157 | + </div> |
| 158 | + </div> |
| 159 | + |
| 160 | + |
| 161 | + <div class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12"> |
| 162 | + <div data-tip="Join our community" class="tooltip tooltip-right relative z-50"> |
| 163 | + <a href="https://discord.com/invite/qf4rGCEphW" target="_blank" rel="noopener noreferrer" |
| 164 | + class="circle text-white"> |
| 165 | + <svg xmlns="http://www.w3.org/2000/svg" |
| 166 | + class="icon icon-tabler icon-tabler-brand-discord" width="24" height="24" |
| 167 | + viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" |
| 168 | + stroke-linecap="round" stroke-linejoin="round"> |
| 169 | + <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> |
| 170 | + <circle cx="9" cy="12" r="1"></circle> |
| 171 | + <circle cx="15" cy="12" r="1"></circle> |
| 172 | + <path d="M7.5 7.5c3.5 -1 5.5 -1 9 0"></path> |
| 173 | + <path d="M7 16.5c3.5 1 6.5 1 10 0"></path> |
| 174 | + <path |
| 175 | + d="M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-1 2.5"> |
| 176 | + </path> |
| 177 | + <path |
| 178 | + d="M8.5 17c0 1 -1.356 3 -1.832 3c-1.429 0 -2.698 -1.667 -3.333 -3c-.635 -1.667 -.476 -5.833 1.428 -11.5c1.388 -1.015 2.782 -1.34 4.237 -1.5l1 2.5"> |
| 179 | + </path> |
| 180 | + </svg> |
| 181 | + </a> |
175 | 182 | </div>
|
176 | 183 | </div>
|
177 | 184 | </div>
|
|
219 | 226 | </div>
|
220 | 227 | </div>
|
221 | 228 | </div>
|
222 |
| - </div> |
223 |
| - <div #svgMenu class="flex lg:hidden m-4 cursor-pointer" (isMenuOpen)="toggleVisible($event, sideBar, svgMenu)" |
224 |
| - appDropdown> |
225 |
| - <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" |
226 |
| - stroke-width="2"> |
227 |
| - <path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16" /> |
228 |
| - </svg> |
| 229 | + |
229 | 230 | </div>
|
230 | 231 | </div>
|
231 | 232 |
|
|
0 commit comments