Skip to content

Commit

Permalink
feat: add shadow in the header
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobytes committed Oct 5, 2024
1 parent 86f2d3f commit 7c8be51
Show file tree
Hide file tree
Showing 8 changed files with 2,511 additions and 10,028 deletions.
4,098 changes: 2,475 additions & 1,623 deletions apps/website/package-lock.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion apps/website/src/app/app.routes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Routes } from '@angular/router';
import type { Routes } from '@angular/router';
import { LayoutComponent } from '@shared/components/layout/layout.component';
import { NotFoundComponent } from '@shared/pages/not-found/not-found.component';

Expand All @@ -19,6 +19,13 @@ export const routes: Routes = [
'./domains/products/pages/product-detail/product-detail.component'
),
},
{
path: 'locations',
loadComponent: () =>
import(
'./domains/locations/locations.component'
),
},
],
},
{
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>locations works!</p>
12 changes: 12 additions & 0 deletions apps/website/src/app/domains/locations/locations.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-locations',
standalone: true,
imports: [],
templateUrl: './locations.component.html',
styleUrl: './locations.component.css'
})
export default class LocationsComponent {

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<nav>
<nav class="shadow-md">
<div class="max-w-8xl mx-auto px-4 sm:px-6 md:px-8">
<div class="w-full flex flex-wrap items-center justify-between mx-auto py-4">
<div class="flex items-center space-x-8">
<a href="https://nicobytes.store/" class="flex items-center">
Expand All @@ -22,6 +23,16 @@
>All</a
>
</li>
<li>
<a
routerLink="/locations"
routerLinkActive="underline"
[routerLinkActiveOptions]="{ exact: true }"
class="block hover:underline"
aria-current="page"
>Locations</a
>
</li>
</ul>
</div>
<div class="flex items-center">
Expand All @@ -48,6 +59,7 @@
</button>
</div>
</div>
</div>
</nav>

<div
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="max-w-8xl mx-auto px-4 sm:px-6 md:px-8">
<app-header />
<app-header />
<div class="max-w-8xl mx-auto p-4 sm:px-6 md:px-8">
<router-outlet />
</div>
Loading

0 comments on commit 7c8be51

Please sign in to comment.