Mise à jour du layout

This commit is contained in:
Rampeur
2025-08-13 01:28:11 +02:00
parent 0a6cbc0c00
commit 977104aac2
22 changed files with 267 additions and 313 deletions
+2 -3
View File
@@ -37,12 +37,12 @@ import { JumpsService } from 'src/app/core/services';
export class HomeComponent implements OnInit {
private _lastjump: Subscription = new Subscription();
private _lastjump$: Observable<Jump> = new Observable();
public title = 'Home';
public title = 'Shop bientôt disponible!';
public description = 'Encore un peu de patience, notre shop sera mis en ligne d\'ici peu.';
public errors: Errors = { errors: {} };
public lastJump: Jump = {} as Jump;
public destroyRef = inject(DestroyRef);
public now = new Date();
public isJumpDay = false;
constructor(
private _jumpsService: JumpsService
@@ -52,7 +52,6 @@ export class HomeComponent implements OnInit {
this._lastjump$ = this._jumpsService.getLastJump().pipe(takeUntilDestroyed(this.destroyRef));
this._lastjump = this._lastjump$.subscribe((jump) => {
this.lastJump = jump;
this.isJumpDay = this._isToday(new Date(this.lastJump.date));
});
}
private _isToday(someDate: Date) {