From 06486ce432997ad25114e00afbe7be9e33fe265e Mon Sep 17 00:00:00 2001 From: Rueben van der Westhuizen <91849806+21434809@users.noreply.github.com> Date: Fri, 27 Sep 2024 15:43:21 +0200 Subject: [PATCH 1/9] =?UTF-8?q?=F0=9F=93=90Refactor=20app.routes.ts=20and?= =?UTF-8?q?=20add=20HomesComponent=20for=20mobile=20home=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/src/app/app.routes.ts | 3 ++- .../src/app/views/homes/homes.component.css | 0 .../src/app/views/homes/homes.component.html | 3 +++ .../app/views/homes/homes.component.spec.ts | 23 ++++++++++++++++++ .../src/app/views/homes/homes.component.ts | 24 +++++++++++++++++++ 5 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 Frontend/src/app/views/homes/homes.component.css create mode 100644 Frontend/src/app/views/homes/homes.component.html create mode 100644 Frontend/src/app/views/homes/homes.component.spec.ts create mode 100644 Frontend/src/app/views/homes/homes.component.ts diff --git a/Frontend/src/app/app.routes.ts b/Frontend/src/app/app.routes.ts index e5a6761d..e4d36654 100644 --- a/Frontend/src/app/app.routes.ts +++ b/Frontend/src/app/app.routes.ts @@ -16,15 +16,16 @@ import { EchoSongComponent } from "./components/templates/desktop/echo-song/echo //vies import { LoginComponentview} from "./views/login/login.component"; import { RegisterComponent} from "./views/register/register.component"; +import { HomesComponent } from "./views/homes/homes.component"; export const routes: Routes = [ { path: "landing", component: LandingPageComponent }, { path: "login", component: LoginComponentview}, - { path: "home", component: HomeComponent}, { path: "register", component: RegisterComponent }, { path: "profile", component: ProfileComponent }, { path: "mood", component: MoodComponent }, { path: "auth/callback", component: AuthCallbackComponent }, + { path: "home", component: HomesComponent}, { path: "", redirectTo: "/login", pathMatch: "full" }, { path: "settings", component: SettingsComponent }, { path: "artist-profile", component: ArtistProfileComponent }, diff --git a/Frontend/src/app/views/homes/homes.component.css b/Frontend/src/app/views/homes/homes.component.css new file mode 100644 index 00000000..e69de29b diff --git a/Frontend/src/app/views/homes/homes.component.html b/Frontend/src/app/views/homes/homes.component.html new file mode 100644 index 00000000..a91ce93e --- /dev/null +++ b/Frontend/src/app/views/homes/homes.component.html @@ -0,0 +1,3 @@ + +

hi

+ diff --git a/Frontend/src/app/views/homes/homes.component.spec.ts b/Frontend/src/app/views/homes/homes.component.spec.ts new file mode 100644 index 00000000..f364a546 --- /dev/null +++ b/Frontend/src/app/views/homes/homes.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HomesComponent } from './homes.component'; + +describe('HomesComponent', () => { + let component: HomesComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [HomesComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(HomesComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/Frontend/src/app/views/homes/homes.component.ts b/Frontend/src/app/views/homes/homes.component.ts new file mode 100644 index 00000000..774f8216 --- /dev/null +++ b/Frontend/src/app/views/homes/homes.component.ts @@ -0,0 +1,24 @@ +//angular imports +import { Component } from '@angular/core'; +import {CommonModule} from '@angular/common'; +//services +import {ScreenSizeService} from './../../services/screen-size-service.service'; +//components +import {HomeComponent} from './../../components/templates/desktop/home/home.component'; +@Component({ + selector: 'app-homes', + standalone: true, + imports: [CommonModule,HomeComponent], + templateUrl: './homes.component.html', + styleUrl: './homes.component.css' +}) +export class HomesComponent { + screenSize?: string; + constructor( private screenSizeService: ScreenSizeService){ + } + async ngOnInit() { + this.screenSizeService.screenSize$.subscribe(screenSize => { + this.screenSize = screenSize; + }); + } +} From c41ebc9af91ae3a50fc2d896262de3d2a1932483 Mon Sep 17 00:00:00 2001 From: Rueben van der Westhuizen <91849806+21434809@users.noreply.github.com> Date: Sat, 28 Sep 2024 21:34:23 +0200 Subject: [PATCH 2/9] =?UTF-8?q?=F0=9F=93=90Refactor=20app.component.html?= =?UTF-8?q?=20for=20responsive=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/src/app/app.component.html | 43 ++++++++++++++++------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/Frontend/src/app/app.component.html b/Frontend/src/app/app.component.html index 66721092..9402f993 100644 --- a/Frontend/src/app/app.component.html +++ b/Frontend/src/app/app.component.html @@ -1,35 +1,40 @@ +
+
-
- - -
- -
- - -
-
- + +
+ + +
+ +
+ + +
+
+ +
-
- -
-
+ + + +
-
- + + +
From 4a5f3c63594176325da3b5a044b0f197ce984dd7 Mon Sep 17 00:00:00 2001 From: Rueben van der Westhuizen <91849806+21434809@users.noreply.github.com> Date: Sat, 28 Sep 2024 23:21:08 +0200 Subject: [PATCH 3/9] =?UTF-8?q?=F0=9F=93=90Refactor=20mobile=20view=20layo?= =?UTF-8?q?ut=20in=20app.component.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/src/app/app.component.html | 5 ++--- .../bottom-nav/bottom-nav.component.html | 20 +++++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Frontend/src/app/app.component.html b/Frontend/src/app/app.component.html index 9402f993..abbf4b72 100644 --- a/Frontend/src/app/app.component.html +++ b/Frontend/src/app/app.component.html @@ -25,9 +25,8 @@ -
- -
+
+
diff --git a/Frontend/src/app/components/organisms/bottom-nav/bottom-nav.component.html b/Frontend/src/app/components/organisms/bottom-nav/bottom-nav.component.html index 97ed831f..e502ea5b 100644 --- a/Frontend/src/app/components/organisms/bottom-nav/bottom-nav.component.html +++ b/Frontend/src/app/components/organisms/bottom-nav/bottom-nav.component.html @@ -1,16 +1,16 @@ -
-
+
+
+
+