tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
set fonts on pub homepages
awarm.space
5 days ago
9086fa45
b7c21a71
+16
2 changed files
expand all
collapse all
unified
split
app
globals.css
lish
[did]
[publication]
page.tsx
+12
app/globals.css
···
230
230
.pageScrollWrapper pre {
231
231
font-family: var(--theme-font, var(--font-quattro));
232
232
}
233
233
+
234
234
+
/* Apply custom fonts to publication homepage */
235
235
+
.pubWrapper {
236
236
+
font-family: var(--theme-font, var(--font-quattro));
237
237
+
}
238
238
+
239
239
+
.pubWrapper h1,
240
240
+
.pubWrapper h2,
241
241
+
.pubWrapper h3,
242
242
+
.pubWrapper h4 {
243
243
+
font-family: var(--theme-heading-font, var(--theme-font, var(--font-quattro)));
244
244
+
}
233
245
/*END FONT STYLING*/
234
246
235
247
/* START GLOBAL STYLING */
+4
app/lish/[did]/[publication]/page.tsx
···
21
21
normalizeDocumentRecord,
22
22
} from "src/utils/normalizeRecords";
23
23
import { getFirstParagraph } from "src/utils/getFirstParagraph";
24
24
+
import { FontLoader } from "components/FontLoader";
24
25
25
26
export default async function Publication(props: {
26
27
params: Promise<{ publication: string; did: string }>;
···
59
60
if (!publication) return <PubNotFound />;
60
61
try {
61
62
return (
63
63
+
<>
64
64
+
<FontLoader headingFontId={record?.theme?.headingFont} bodyFontId={record?.theme?.bodyFont} />
62
65
<PublicationThemeProvider
63
66
theme={record?.theme}
64
67
pub_creator={publication.identity_did}
···
193
196
</PublicationHomeLayout>
194
197
</PublicationBackgroundProvider>
195
198
</PublicationThemeProvider>
199
199
+
</>
196
200
);
197
201
} catch (e) {
198
202
console.log(e);