Skip to content

Commit

Permalink
fix(screen): improve responsive for landscape and add update text
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Hermann committed Nov 14, 2024
1 parent 2f0f605 commit af72b5c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component } from '@angular/core';
import { Component, Signal, signal } from '@angular/core';
import { RouterOutlet } from '@angular/router';

@Component({
Expand All @@ -9,5 +9,4 @@ import { RouterOutlet } from '@angular/router';
styleUrl: './app.component.scss'
})
export class AppComponent {
title = 'RetroSki';
}
4 changes: 2 additions & 2 deletions src/app/pages/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<img class="logo" src="./assets/logos/logo.png" />
<div class="title">Welcome</div>
<div class="subtitle">
Ride the mountain for fun or challenge your friends on some of the most
demanding tracks.
Ride the mountain for fun, or challenge your friends on some of the most
demanding tracks!
</div>
<div class="actions-container">
<button class="retro-button" routerLink="/learning">How to play ?</button>
Expand Down
5 changes: 5 additions & 0 deletions src/app/pages/race/race.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
flex-direction: column;
position: relative;

canvas#game {
max-width: 100dvw;
max-height: 100dvh;
}

.ui-overlay {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit af72b5c

Please sign in to comment.