-
-
Notifications
You must be signed in to change notification settings - Fork 244
/
index.page.ts
55 lines (46 loc) · 1.16 KB
/
index.page.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { Component, signal } from '@angular/core';
@Component({
selector: 'app-home',
standalone: true,
template: `
<div>
<a href="https://analogjs.org/" target="_blank">
<img alt="Analog Logo" class="logo analog" src="/analog.svg" />
</a>
</div>
<h2>Analog</h2>
<h3>The fullstack meta-framework for Angular!</h3>
<div class="card">
<button type="button" (click)="increment()">Count {{ count() }}</button>
</div>
<p class="read-the-docs">
<a href="https://analogjs.org" target="_blank">Docs</a> |
<a href="https://github.com/analogjs/analog" target="_blank">GitHub</a> |
<a href="https://github.com/sponsors/brandonroberts" target="_blank">
Sponsor
</a>
</p>
`,
styles: `
.logo {
will-change: filter;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.read-the-docs > * {
color: #fff;
}
@media (prefers-color-scheme: light) {
.read-the-docs > * {
color: #213547;
}
}
`,
})
export default class HomeComponent {
count = signal(0);
increment() {
this.count.update((count) => count + 1);
}
}