Skip to content

Commit

Permalink
Fixed a issue with the app name
Browse files Browse the repository at this point in the history
Also made the logo in header a link to home page.
  • Loading branch information
derveydylan committed Aug 6, 2024
1 parent 7f3832f commit 92fc085
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/app/header/header.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header>
<p id="logo">Togglight</p>
<a routerLink="/"><p id="logo">Togglight</p></a>

@if(isMenuOpen)
{
Expand Down
4 changes: 2 additions & 2 deletions src/app/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="home">
<div class="logo">
<img src="assets/logo/Logo_black_bg.svg" alt="Togglight logo">
<p id="logo">Togglight</p>
</div>

<p>Puzzle Game</p>
<p class="home-subtitle">Puzzle Game</p>

<nav>
<a class="btn btn-primary" (click)="onPlay()">Play</a>
Expand Down
11 changes: 3 additions & 8 deletions src/app/home/home.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@
justify-content: center;
align-items: center;
margin-bottom: 40px;

img
{
width: 350px;
}
}

p
.home-subtitle
{
font-size: 40px;
font-style: italic;
Expand Down Expand Up @@ -50,8 +45,8 @@

@media (max-width: 600px)
{
img
#logo
{
width: 275px !important;
font-size: 75px !important;
}
}
17 changes: 14 additions & 3 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,23 @@ body
{
font-family: 'Lobster';
color: var(--white);
font-size: 100px;
user-select: none;
margin: 5px 0 0 0;
}

header #logo
{
font-size: 38px;
width: 150px;
height: 60px;
user-select: none;
margin: 5px 0 0 0;
align-self: center;
}

header a:has(#logo)
{
width: max-content;
box-shadow: none;
color: var(--white);
}

// --------------------------------------------------------------------------------
Expand Down

0 comments on commit 92fc085

Please sign in to comment.