Skip to content

Commit a15835f

Browse files
fix(create-analog): update blog template to zoneless (#1977)
1 parent a56a4f8 commit a15835f

File tree

2 files changed

+76
-5
lines changed

2 files changed

+76
-5
lines changed
Lines changed: 76 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,81 @@
11
@import 'tailwindcss';
22

33
/* You can add global styles to this file, and also import other style files */
4-
html,
4+
:root {
5+
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
6+
font-size: 16px;
7+
line-height: 24px;
8+
font-weight: 400;
9+
10+
color-scheme: light dark;
11+
color: rgba(255, 255, 255, 0.87);
12+
background-color: #242424;
13+
14+
font-synthesis: none;
15+
text-rendering: optimizeLegibility;
16+
-webkit-font-smoothing: antialiased;
17+
-moz-osx-font-smoothing: grayscale;
18+
-webkit-text-size-adjust: 100%;
19+
}
20+
21+
a {
22+
font-weight: 500;
23+
color: #646cff;
24+
text-decoration: inherit;
25+
}
26+
a:hover {
27+
color: #535bf2;
28+
}
29+
530
body {
6-
display: block;
7-
height: 100%;
31+
margin: 0;
32+
display: flex;
33+
place-items: center;
34+
min-width: 320px;
35+
min-height: 100vh;
36+
}
37+
38+
h1 {
39+
font-size: 3.2em;
40+
line-height: 1.1;
41+
}
42+
43+
button {
44+
border-radius: 8px;
45+
border: 1px solid transparent;
46+
padding: 0.6em 1.2em;
47+
font-size: 1em;
48+
font-weight: 500;
49+
font-family: inherit;
50+
background-color: #1a1a1a;
51+
cursor: pointer;
52+
transition: border-color 0.25s;
53+
}
54+
button:hover {
55+
border-color: #646cff;
56+
}
57+
button:focus,
58+
button:focus-visible {
59+
outline: 4px auto -webkit-focus-ring-color;
60+
}
61+
62+
.card {
63+
padding: 2em;
64+
}
65+
66+
@media (prefers-color-scheme: light) {
67+
:root {
68+
color: #213547;
69+
background-color: #ffffff;
70+
}
71+
a:hover {
72+
color: #747bff;
73+
}
74+
button {
75+
background-color: #f9f9f9;
76+
}
77+
}
78+
79+
.analog-markdown p {
80+
text-align: left;
881
}

packages/create-analog/template-blog/src/app/app.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
import {
77
ApplicationConfig,
88
provideBrowserGlobalErrorListeners,
9-
provideZoneChangeDetection
109
} from '@angular/core';
1110
import { provideClientHydration, withEventReplay } from '@angular/platform-browser';
1211
import { provideFileRouter, requestContextInterceptor } from '@analogjs/router';
@@ -16,7 +15,6 @@ import { __HIGHLIGHTER__ } from '@analogjs/content/__HIGHLIGHTER_ENTRY_POINT__';
1615
export const appConfig: ApplicationConfig = {
1716
providers: [
1817
provideBrowserGlobalErrorListeners(),
19-
provideZoneChangeDetection({ eventCoalescing: true }),
2018
provideFileRouter(),
2119
provideHttpClient(
2220
withFetch(),

0 commit comments

Comments
 (0)