diff --git a/quartz/components/HomeAbout.tsx b/quartz/components/HomeAbout.tsx index ba0bdfce7d11..93eb7c18656b 100644 --- a/quartz/components/HomeAbout.tsx +++ b/quartz/components/HomeAbout.tsx @@ -1,6 +1,10 @@ import { QuartzComponent, QuartzComponentConstructor } from "./types" import { DocTitle, localizedAttrs, SiteLang, T } from "./localized" import style from "./styles/homeAbout.scss" +// @ts-ignore +import tiltScript from "./scripts/tilt.inline" +import tiltStyle from "./styles/tilt.scss" +import { concatenateResources } from "../util/resources" const aboutTitle: Record = { en: "About", @@ -17,21 +21,25 @@ const HomeAbout: QuartzComponent = () => (
-
- +
+ +
+ + +
@@ -75,6 +83,7 @@ const HomeAbout: QuartzComponent = () => ( ) -HomeAbout.css = style +HomeAbout.css = concatenateResources(style, tiltStyle) +HomeAbout.afterDOMLoaded = tiltScript export default (() => HomeAbout) satisfies QuartzComponentConstructor diff --git a/quartz/components/HomeArticles.tsx b/quartz/components/HomeArticles.tsx index ab8e67246090..3b0fab8d048c 100644 --- a/quartz/components/HomeArticles.tsx +++ b/quartz/components/HomeArticles.tsx @@ -14,11 +14,14 @@ import { QuartzPluginData } from "../plugins/vfile" import { concatenateResources } from "../util/resources" import style from "./styles/homeArticles.scss" import archiveStyle from "./styles/archiveGate.scss" +import tiltStyle from "./styles/tilt.scss" import { VIEWBOX, WORD, WORD_SLANT, WORD_VIEWBOX, drawGate } from "./archiveGateDrawing" // @ts-ignore import script from "./scripts/homeArticles.inline" // @ts-ignore import archiveScript from "./scripts/archiveGate.inline" +// @ts-ignore +import tiltScript from "./scripts/tilt.inline" const featuredArticleSlug = "Swift-Student-Challenge-2026" // Everything written before this article is kept behind the archive gate, on its own page. @@ -398,8 +401,12 @@ export default (() => { {featuredArticle && (
{featuredArticle.firstImage && ( -