Add: Click on the logo to return to the main page

This commit is contained in:
Chneemann 2024-09-20 23:28:20 +02:00
parent ca49f38ce4
commit 6eda44bc0d
3 changed files with 8 additions and 1 deletions

View file

@ -8,7 +8,11 @@
<p>Devspace</p>
</div>
} @else {
<img src="./assets/img/home-icon.svg" class="homeIcon" />
<img
src="./assets/img/home-icon.svg"
class="homeIcon"
routerLink="/main/"
/>
}
</div>
@if (viewWidth >= RESPONSIVE_THRESHOLD) {

View file

@ -40,6 +40,7 @@ header {
width: 242px;
height: 70px;
margin-left: 20px;
cursor: pointer;
}
}

View file

@ -9,6 +9,7 @@ import { SharedService } from '../../../service/shared.service';
import { SmallBtnComponent } from '../buttons/small-btn/small-btn.component';
import { LanguageService } from '../../../service/language.service';
import { TranslateModule } from '@ngx-translate/core';
import { RouterLink } from '@angular/router';
@Component({
selector: 'app-header',
@ -19,6 +20,7 @@ import { TranslateModule } from '@ngx-translate/core';
SearchBarComponent,
SmallBtnComponent,
TranslateModule,
RouterLink,
],
templateUrl: './header.component.html',
styleUrl: './header.component.scss',