Skip to content

Commit

Permalink
[#23] synchronize sidenav & toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphoeninger committed Oct 9, 2024
1 parent 10ab8b5 commit a346e21
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
10 changes: 3 additions & 7 deletions CLIENT/CLIENT.FileSharing/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,9 @@
}
</style>

<main class="main">
<div class="content">
<div class="left-side">
<h1>Hello, {{ title }}</h1>
<p>Congratulations! Your app is running. 🎉</p>
</div>
</div>
<main id="main">
<fs-toolbar></fs-toolbar>
<fs-navbar></fs-navbar>
</main>

<router-outlet />
15 changes: 15 additions & 0 deletions CLIENT/CLIENT.FileSharing/src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#main {
fs-navbar {
display: none;
}
}

/* -- MEDIA -- */

@media (min-width: 48em) {
#main {
fs-navbar {
display: block;
}
}
}
6 changes: 4 additions & 2 deletions CLIENT/CLIENT.FileSharing/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { NavbarComponent } from './navigation/navbar/navbar.component';
import { ToolbarComponent } from './navigation/toolbar/toolbar.component';

@Component({
selector: 'app-root',
standalone: true,
imports: [RouterOutlet],
imports: [RouterOutlet, NavbarComponent, ToolbarComponent],
templateUrl: './app.component.html',
styleUrl: './app.component.scss'
styleUrl: './app.component.scss',
})
export class AppComponent {
title = 'CLIENT.FileSharing';
Expand Down

0 comments on commit a346e21

Please sign in to comment.