Skip to content

Commit

Permalink
Update new material component styles
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed Feb 1, 2025
1 parent f58b52f commit 0244f3a
Show file tree
Hide file tree
Showing 34 changed files with 1,598 additions and 809 deletions.
2 changes: 2 additions & 0 deletions firebird-ng/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"src/assets"
],
"styles": [
"@angular/material/prebuilt-themes/azure-blue.css",
"src/styles.scss"
],
"scripts": [],
Expand Down Expand Up @@ -101,6 +102,7 @@
"src/assets"
],
"styles": [
"@angular/material/prebuilt-themes/azure-blue.css",
"src/styles.scss"
],
"scripts": [],
Expand Down
2 changes: 1 addition & 1 deletion firebird-ng/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

@Component({
selector: 'app-root',
imports: [RouterOutlet, RouterModule],
imports: [RouterOutlet, RouterModule],
templateUrl: './app.component.html',
styleUrl: './app.component.scss'
})
Expand Down
2 changes: 1 addition & 1 deletion firebird-ng/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const routes: Routes = [
loadComponent: () => import('./pages/geometry-tree/scene-tree.component').then(m => m.SceneTreeComponent)
},
{
path: 'testdp',
path: 'shell',
loadComponent: () => import('./pages/shell-example/shell-example.component').then(m => m.ShellExampleComponent)
},
{
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

62 changes: 62 additions & 0 deletions firebird-ng/src/app/components/header/header.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!-- firebird-ng/src/app/components/nav-config/nav-config.component.html -->

<mat-toolbar class="mat-elevation-z4 top-toolbar">
<!-- Logo -->
<button mat-icon-button [routerLink]="['/']" class="logo-button" aria-label="App Logo">
<img ngSrc="assets/firebird/firebird-simplified-circle.png" width="32" height="32" alt="App Logo" />
</button>

<!-- Always visible nav items on desktop -->
<div class="nav-items visible-nav hide-mobile">
<ng-container *ngFor="let item of navItems">
<button
mat-button
*ngIf="item.alwaysVisible"
(click)="onNavItemClick(item)"
[attr.aria-label]="item.label"
>
<mat-icon *ngIf="item.icon">{{ item.icon }}</mat-icon>
{{ item.label }}
</button>
</ng-container>
</div>

<!-- Middle section for page-specific controls -->
<div class="middle-section">
<ng-container *ngIf="middleTemplate">
<ng-container *ngTemplateOutlet="middleTemplate"></ng-container>
</ng-container>
</div>

<!-- Spacer to push theme toggle to the right -->
<span class="flex-spacer"></span>

<!-- Theme toggle button (always visible on desktop) -->
<app-theme-switcher class="theme-toggle hide-mobile"></app-theme-switcher>

<!-- Hamburger menu button (only visible on mobile) -->
<button
mat-icon-button
class="hamburger-btn hide-desktop"
(click)="toggleNavConfig()"
aria-label="Toggle navigation menu"
>
<mat-icon>{{ navOpen ? 'close' : 'menu' }}</mat-icon>
</button>
</mat-toolbar>

<!-- Mobile menu overlay -->
<div class="mobile-menu" [class.open]="navOpen">
<ng-container *ngFor="let item of navItems">
<button
mat-button
(click)="onNavItemClick(item)"
[attr.aria-label]="item.label"
>
<mat-icon *ngIf="item.icon">{{ item.icon }}</mat-icon>
{{ item.label }}
</button>
</ng-container>
<!-- Theme toggle inside mobile menu -->
<app-theme-switcher class="theme-toggle-mobile"></app-theme-switcher>
</div>
Loading

0 comments on commit 0244f3a

Please sign in to comment.