-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix hamburger issues * Update fonts to store locally * Revert wrong angular cli version * Ensure match page requires login * Fix erlang issues docker-library/rabbitmq#114 * Fix nav bar css having global effect --------- Co-authored-by: Samuel Lim <[email protected]>
- Loading branch information
1 parent
b13bd16
commit 374d8da
Showing
9 changed files
with
204 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
frontend/src/app/matching/finding-match/finding-match.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
::ng-deep .easy-chip .p-chip { | ||
:host ::ng-deep .easy-chip .p-chip { | ||
background-color: var(--green-700); | ||
} | ||
|
||
::ng-deep .medium-chip .p-chip { | ||
:host ::ng-deep .medium-chip .p-chip { | ||
background-color: var(--orange-600); | ||
} | ||
|
||
::ng-deep .hard-chip .p-chip { | ||
:host ::ng-deep .hard-chip .p-chip { | ||
background-color: var(--red-700); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 23 additions & 10 deletions
33
frontend/src/app/navigation-bar/navigation-bar.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;700&display=swap" rel="stylesheet" /> | ||
|
||
<p-menubar [model]="items"> | ||
<p-menubar> | ||
<ng-template pTemplate="start"> | ||
<div class="pl-2 flex align-items-center" style="cursor: pointer" [routerLink]="['/matching']"> | ||
<img src="/logo.png" alt="logo" style="width: auto; height: 55px" /> | ||
<p class="pl-2 mr-3 poppins-bold logo-font-size">PeerPrep</p> | ||
</div> | ||
</ng-template> | ||
<ng-template pTemplate="item" let-item> | ||
<a [routerLink]="item.route" class="p-menuitem-link"> | ||
<span [class]="item.icon"></span> | ||
<span class="ml-2">{{ item.label }}</span> | ||
</a> | ||
<ng-template pTemplate="end"> | ||
@if (user) { | ||
<p-menu #menu [model]="items" [popup]="true"></p-menu> | ||
<p-button | ||
[label]="user.username" | ||
(onClick)="menu.toggle($event)" | ||
icon="pi pi-user" | ||
class="nav-dropdown"></p-button> | ||
} @else { | ||
<div class="flex flex-row gap-2"> | ||
<p-button | ||
label="Login" | ||
icon="pi pi-sign-in" | ||
class="nav-dropdown min-w-max" | ||
routerLink="account/login"></p-button> | ||
<p-button | ||
label="Sign Up" | ||
icon="pi pi-pen-to-square" | ||
class="nav-dropdown min-w-max" | ||
routerLink="/account/register"></p-button> | ||
</div> | ||
} | ||
</ng-template> | ||
</p-menubar> |
Oops, something went wrong.