@founderhq/next-blog 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -0
- package/dist/cli/core.d.ts +61 -0
- package/dist/cli/core.d.ts.map +1 -0
- package/dist/cli/core.js +1983 -0
- package/dist/cli/core.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +390 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/components.d.ts +57 -0
- package/dist/components.d.ts.map +1 -0
- package/dist/components.js +281 -0
- package/dist/components.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/registry.d.ts +6 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +29 -0
- package/dist/registry.js.map +1 -0
- package/dist/server.d.ts +159 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +681 -0
- package/dist/server.js.map +1 -0
- package/dist/types.d.ts +93 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +21 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +56 -0
- package/dist/utils.js.map +1 -0
- package/package.json +88 -0
- package/src/styles.css +264 -0
- package/src/templates/blog-components.tsx.txt +603 -0
- package/src/templates/blog.css.txt +264 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
.fhq-blog-index,
|
|
2
|
+
.fhq-blog-article {
|
|
3
|
+
--fhq-blog-bg: #ffffff;
|
|
4
|
+
--fhq-blog-text: #171717;
|
|
5
|
+
--fhq-blog-muted: #667085;
|
|
6
|
+
--fhq-blog-border: #d0d5dd;
|
|
7
|
+
--fhq-blog-accent: #2563eb;
|
|
8
|
+
--fhq-blog-card: #f9fafb;
|
|
9
|
+
--fhq-blog-radius: 8px;
|
|
10
|
+
--fhq-blog-prose-width: 720px;
|
|
11
|
+
background: var(--fhq-blog-bg);
|
|
12
|
+
color: var(--fhq-blog-text);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fhq-blog-index {
|
|
16
|
+
min-height: 100vh;
|
|
17
|
+
padding: clamp(32px, 6vw, 88px) clamp(20px, 5vw, 72px);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.fhq-blog-index > header,
|
|
21
|
+
.fhq-blog-grid {
|
|
22
|
+
max-width: 1120px;
|
|
23
|
+
margin: 0 auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.fhq-blog-grid {
|
|
27
|
+
display: grid;
|
|
28
|
+
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
29
|
+
gap: 20px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.fhq-blog-card {
|
|
33
|
+
background: var(--fhq-blog-card);
|
|
34
|
+
border: 1px solid var(--fhq-blog-border);
|
|
35
|
+
border-radius: var(--fhq-blog-radius);
|
|
36
|
+
padding: 18px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.fhq-blog-card h2,
|
|
40
|
+
.fhq-blog-article h1 {
|
|
41
|
+
letter-spacing: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.fhq-blog-card a,
|
|
45
|
+
.fhq-blog-back,
|
|
46
|
+
.fhq-blog-cta a {
|
|
47
|
+
color: var(--fhq-blog-accent);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.fhq-blog-article {
|
|
51
|
+
min-height: 100vh;
|
|
52
|
+
padding: clamp(28px, 5vw, 80px) clamp(18px, 4vw, 64px);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.fhq-blog-article > article {
|
|
56
|
+
max-width: 1120px;
|
|
57
|
+
margin: 0 auto;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.fhq-blog-article h1 {
|
|
61
|
+
max-width: 900px;
|
|
62
|
+
font-size: 4.25rem;
|
|
63
|
+
line-height: 0.98;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.fhq-blog-layout {
|
|
67
|
+
display: grid;
|
|
68
|
+
grid-template-columns: minmax(0, var(--fhq-blog-prose-width)) minmax(180px, 280px);
|
|
69
|
+
gap: clamp(24px, 5vw, 72px);
|
|
70
|
+
align-items: start;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.fhq-blog-prose {
|
|
74
|
+
font-size: 1.06rem;
|
|
75
|
+
line-height: 1.72;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.fhq-blog-prose img,
|
|
79
|
+
.fhq-blog-image img {
|
|
80
|
+
display: block;
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: auto;
|
|
83
|
+
border-radius: var(--fhq-blog-radius);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.fhq-blog-prose iframe,
|
|
87
|
+
.fhq-blog-prose video {
|
|
88
|
+
display: block;
|
|
89
|
+
width: 100%;
|
|
90
|
+
max-width: 100%;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.fhq-blog-prose [data-founderhq-embed],
|
|
94
|
+
.fhq-blog-prose [data-publish-embed],
|
|
95
|
+
.fhq-blog-prose .publish-tiptap-embed {
|
|
96
|
+
width: 100%;
|
|
97
|
+
aspect-ratio: 16 / 9;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.fhq-blog-prose table {
|
|
101
|
+
width: 100%;
|
|
102
|
+
border-collapse: collapse;
|
|
103
|
+
table-layout: auto;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.fhq-blog-prose th,
|
|
107
|
+
.fhq-blog-prose td {
|
|
108
|
+
border: 1px solid var(--fhq-blog-border);
|
|
109
|
+
padding: 10px 12px;
|
|
110
|
+
vertical-align: top;
|
|
111
|
+
overflow-wrap: anywhere;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.fhq-blog-prose .tableWrapper,
|
|
115
|
+
.fhq-blog-prose .publish-tiptap-table-wrapper {
|
|
116
|
+
max-width: 100%;
|
|
117
|
+
overflow-x: auto;
|
|
118
|
+
-webkit-overflow-scrolling: touch;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.fhq-blog-image figcaption,
|
|
122
|
+
.fhq-blog-byline__title,
|
|
123
|
+
.fhq-blog-toc__item,
|
|
124
|
+
.fhq-blog-card p {
|
|
125
|
+
color: var(--fhq-blog-muted);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.fhq-blog-sidebar {
|
|
129
|
+
position: sticky;
|
|
130
|
+
top: 24px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.fhq-blog-toc {
|
|
134
|
+
position: relative;
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.fhq-blog-toc__item {
|
|
140
|
+
position: relative;
|
|
141
|
+
width: 100%;
|
|
142
|
+
border: 0;
|
|
143
|
+
background: transparent;
|
|
144
|
+
padding-top: 6px;
|
|
145
|
+
padding-bottom: 6px;
|
|
146
|
+
padding-right: 8px;
|
|
147
|
+
color: var(--fhq-blog-muted);
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
text-align: left;
|
|
150
|
+
font: inherit;
|
|
151
|
+
font-size: 0.78rem;
|
|
152
|
+
line-height: 1.35;
|
|
153
|
+
transition: color 160ms ease;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.fhq-blog-toc__item span {
|
|
157
|
+
display: -webkit-box;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
-webkit-box-orient: vertical;
|
|
160
|
+
-webkit-line-clamp: 2;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.fhq-blog-toc__item:hover,
|
|
164
|
+
.fhq-blog-toc__item[data-active="true"] {
|
|
165
|
+
color: var(--fhq-blog-text);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.fhq-blog-toc__rail {
|
|
169
|
+
pointer-events: none;
|
|
170
|
+
position: absolute;
|
|
171
|
+
left: 0;
|
|
172
|
+
top: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.fhq-blog-toc__rail-svg {
|
|
176
|
+
position: absolute;
|
|
177
|
+
inset: 0;
|
|
178
|
+
stroke: color-mix(in srgb, var(--fhq-blog-text) 18%, transparent);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.fhq-blog-toc__rail-svg--active {
|
|
182
|
+
stroke: var(--fhq-blog-accent);
|
|
183
|
+
transition:
|
|
184
|
+
clip-path 240ms ease,
|
|
185
|
+
opacity 180ms ease;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.fhq-blog-byline {
|
|
189
|
+
display: flex;
|
|
190
|
+
gap: 12px;
|
|
191
|
+
align-items: center;
|
|
192
|
+
margin: 18px 0 26px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.fhq-blog-byline img {
|
|
196
|
+
border-radius: 999px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.fhq-blog-cta,
|
|
200
|
+
.fhq-blog-newsletter {
|
|
201
|
+
border: 1px solid var(--fhq-blog-border);
|
|
202
|
+
border-radius: var(--fhq-blog-radius);
|
|
203
|
+
padding: 22px;
|
|
204
|
+
margin: 32px 0;
|
|
205
|
+
background: var(--fhq-blog-card);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.fhq-blog-newsletter__row,
|
|
209
|
+
.fhq-blog-search {
|
|
210
|
+
display: flex;
|
|
211
|
+
gap: 10px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.fhq-blog-pagination {
|
|
215
|
+
max-width: 1120px;
|
|
216
|
+
margin: 28px auto 0;
|
|
217
|
+
display: grid;
|
|
218
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
219
|
+
gap: 14px;
|
|
220
|
+
align-items: center;
|
|
221
|
+
color: var(--fhq-blog-muted);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.fhq-blog-pagination a:last-child {
|
|
225
|
+
justify-self: end;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.fhq-blog-newsletter input,
|
|
229
|
+
.fhq-blog-search input {
|
|
230
|
+
min-width: 0;
|
|
231
|
+
flex: 1;
|
|
232
|
+
border: 1px solid var(--fhq-blog-border);
|
|
233
|
+
border-radius: 6px;
|
|
234
|
+
padding: 10px 12px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.fhq-blog-newsletter button,
|
|
238
|
+
.fhq-blog-search button {
|
|
239
|
+
border: 0;
|
|
240
|
+
border-radius: 6px;
|
|
241
|
+
padding: 10px 14px;
|
|
242
|
+
background: var(--fhq-blog-accent);
|
|
243
|
+
color: white;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@media (max-width: 860px) {
|
|
247
|
+
.fhq-blog-article h1 {
|
|
248
|
+
font-size: 2.35rem;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.fhq-blog-layout {
|
|
252
|
+
grid-template-columns: 1fr;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.fhq-blog-sidebar {
|
|
256
|
+
position: static;
|
|
257
|
+
order: -1;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.fhq-blog-newsletter__row,
|
|
261
|
+
.fhq-blog-search {
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
}
|
|
264
|
+
}
|