-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from COS301-SE-2024/feat/mobileInterface
Feat/mobile interface
- Loading branch information
Showing
19 changed files
with
456 additions
and
206 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
6 changes: 3 additions & 3 deletions
6
...d/src/app/components/atoms/big-rounded-square-card/big-rounded-square-card.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
4 changes: 0 additions & 4 deletions
4
Frontend/src/app/components/organisms/bottom-nav/bottom-nav.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,4 +0,0 @@ | ||
/* In your component's CSS file */ | ||
.selected-svg { | ||
fill: #EE0258; | ||
} | ||
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
27 changes: 7 additions & 20 deletions
27
Frontend/src/app/components/organisms/moods/moods.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,20 +1,7 @@ | ||
<div *ngIf="screenSize === 'desktop'" class="flex flex-col"> | ||
<div class="card-body relative"> | ||
<app-page-title>Favourite Moods</app-page-title> | ||
<app-moods-list [moods]="favouriteMoods" (redirectToMoodPage)="redirectToMoodPage($event)"></app-moods-list> | ||
<br/> | ||
<app-page-title>Recommended Moods</app-page-title> | ||
<app-moods-list [moods]="RecommendedMoods" (redirectToMoodPage)="redirectToMoodPage($event)"></app-moods-list> | ||
</div> | ||
</div> | ||
|
||
<div *ngIf="screenSize === 'mobile'" class="flex flex-col"> | ||
<div class="overflow-x-auto flex space-x-4 py-4"> | ||
<div *ngFor="let mood of favouriteMoods" [ngClass]="this.moodComponentClasses[this.moodService.getCurrentMood()]" class="min-w-[60vw] max-w-[60vw] bg-stone text-black dark:text-white rounded-lg shadow-lg"> | ||
<img src="{{ mood.image }}" alt="{{ mood.name }}" class="rounded-t-lg w-full h-40 object-cover"> | ||
<div class="p-4"> | ||
<app-page-title>{{ mood.name }}</app-page-title> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-body relative"> | ||
<app-page-title>Favourite Moods</app-page-title> | ||
<app-moods-list [moods]="favouriteMoods" (redirectToMoodPage)="redirectToMoodPage($event)"></app-moods-list> | ||
<br/> | ||
<app-page-title>Recommended Moods</app-page-title> | ||
<app-moods-list [moods]="RecommendedMoods" (redirectToMoodPage)="redirectToMoodPage($event)"></app-moods-list> | ||
</div> |
Oops, something went wrong.