feat(anchorScrolling): create challenge

This commit is contained in:
thomas
2023-05-02 12:57:30 +02:00
parent 75fa6eac9b
commit 348beb937d
6 changed files with 51 additions and 24 deletions

View File

@@ -0,0 +1,15 @@
import { Component } from '@angular/core';
import { NavButtonComponent } from './nav-button.component';
@Component({
standalone: true,
imports: [NavButtonComponent],
selector: 'app-foo',
template: `
Welcome to foo page
<nav-button href="home" class="fixed top-3 left-1/2">Home Page</nav-button>
<div class="h-screen bg-blue-200">section 1</div>
<div class="h-screen bg-red-200">section 2</div>
`,
})
export class FooComponent {}