Skip to content

Commit cef2ce5

Browse files
committed
refactor: remove unused navigation styles and simplify routerLinkActive bindings
1 parent e730724 commit cef2ce5

File tree

3 files changed

+4
-47
lines changed

3 files changed

+4
-47
lines changed
Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +0,0 @@
1-
:host {
2-
display: flex;
3-
flex-direction: row;
4-
}
5-
6-
.routerLinkActive {
7-
@apply text-secondary underline;
8-
}
9-
10-
li a:hover,
11-
.sidebarActive {
12-
background: rgb(191, 37, 185);
13-
background: linear-gradient(
14-
148deg,
15-
rgba(191, 37, 185, 1) 23%,
16-
rgba(146, 73, 194, 1) 48%,
17-
rgba(119, 94, 200, 1) 76%,
18-
rgba(86, 120, 207, 1) 86%,
19-
rgba(38, 159, 216, 1) 96%,
20-
rgba(0, 190, 224, 1) 100%
21-
);
22-
}
23-
24-
nav {
25-
box-shadow: 0 0 15px rgba(0, 0, 0, 0.75);
26-
clip-path: inset(0px -15px 0px 0px);
27-
}
28-
29-
.close-button {
30-
position: absolute;
31-
right: 20px;
32-
}

src/app/components/navigation/navigation.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
<li>
1515
<a
1616
class="flex gap-4 items-center px-4 py-3 rounded-xl"
17-
routerLinkActive="sidebarActive"
17+
[routerLinkActive]="['bg-pink-200', 'text-pink-700']"
1818
[routerLinkActiveOptions]="{ exact: true }"
1919
routerLink="/"
20-
(click)="sidebarVisible.set(false)"
2120
>
2221
<i aria-hidden="true" class="pi pi-calendar text-2xl"></i>
2322
Events
@@ -26,9 +25,8 @@
2625
<li>
2726
<a
2827
class="flex gap-4 items-center px-4 py-3 rounded-xl"
29-
routerLinkActive="sidebarActive"
28+
[routerLinkActive]="['bg-pink-200', 'text-pink-700']"
3029
routerLink="/communities"
31-
(click)="sidebarVisible.set(false)"
3230
>
3331
<i aria-hidden="true" class="pi pi-users text-2xl"></i>
3432
Communities
@@ -37,9 +35,8 @@
3735
<li>
3836
<a
3937
class="flex gap-4 items-center px-4 py-3 rounded-xl"
40-
routerLinkActive="sidebarActive"
38+
[routerLinkActive]="['bg-pink-200', 'text-pink-700']"
4139
routerLink="/podcasts"
42-
(click)="sidebarVisible.set(false)"
4340
>
4441
<i aria-hidden="true" class="pi pi-microphone text-2xl"></i>
4542
Podcasts

src/app/components/navigation/navigation.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,4 @@ import { InputTextModule } from 'primeng/inputtext';
2323
InputTextModule,
2424
],
2525
})
26-
export class Navigation {
27-
sidebarVisible = signal(false);
28-
29-
drawerRef = viewChild.required(Drawer);
30-
31-
closeCallback(e: Event): void {
32-
this.drawerRef().close(e);
33-
}
34-
}
26+
export class Navigation {}

0 commit comments

Comments
 (0)