TypeScript
Use Knicks PDF and GemSmoke on the root page
Andrew Luo43b8989fab4a
diff --git a/apps/v4/components/pdf-viewer-preview-client.tsx b/apps/v4/components/pdf-viewer-preview-client.tsxindex 1ecea9b..cd8e1ad 100644--- a/apps/v4/components/pdf-viewer-preview-client.tsx+++ b/apps/v4/components/pdf-viewer-preview-client.tsx@@ -5,13 +5,15 @@ import { PDFViewer } from "@/components/ui/pdf-viewer"const SAMPLE_PDF_URL = "/samples/attention.pdf"export function PdfViewerPreviewClient({+ file = SAMPLE_PDF_URL,showRotateControls = true,}: {+ file?: stringshowRotateControls?: boolean}) {return (<PDFViewer- file={SAMPLE_PDF_URL}+ file={file}className="h-[560px]"defaultZoom={0.5}defaultThumbnailSidebarOpen={false}diff --git a/apps/v4/components/root-components-collage.tsx b/apps/v4/components/root-components-collage.tsxindex ff0718e..6af16dc 100644--- a/apps/v4/components/root-components-collage.tsx+++ b/apps/v4/components/root-components-collage.tsx@@ -100,7 +100,7 @@ export function RootComponentsCollage() {function PdfViewerTile() {return (<ComponentCrop className="h-[560px] border bg-background">- <PdfViewerPreview showRotateControls={false} />+ <PdfViewerPreview file="/samples/knicks.pdf" showRotateControls={false} /></ComponentCrop>)}diff --git a/apps/v4/components/root-liquid-logo.tsx b/apps/v4/components/root-liquid-logo.tsxindex ae24c7d..c0ac6b5 100644--- a/apps/v4/components/root-liquid-logo.tsx+++ b/apps/v4/components/root-liquid-logo.tsx@@ -1,36 +1,33 @@"use client"-import { LiquidMetal } from "@paper-design/shaders-react"-import { useTheme } from "next-themes"+import { GemSmoke } from "@paper-design/shaders-react"export function RootLiquidLogo() {- const { resolvedTheme } = useTheme()- const isDark = resolvedTheme !== "light"-return (<divaria-hidden="true"className="pointer-events-none relative -mb-16 h-44 w-full overflow-hidden sm:-mb-20 sm:h-52 md:-mb-24 md:h-60">- <LiquidMetal+ <GemSmokewidth="100%"height="100%"image="/extend-logo.svg"+ colors={["#004CFF", "#FF8C00", "#FFB066", "#0084FF"]}colorBack="#00000000"- colorTint="#ffffff"- shape="none"- repetition={2.8}- softness={0.16}- shiftRed={0.26}- shiftBlue={0.32}- distortion={0.08}- contour={0.48}- angle={68}- speed={0.72}- scale={0.72}+ colorInner="#000000"+ shape={undefined}+ innerDistortion={0.48}+ outerDistortion={0}+ outerGlow={0.22}+ innerGlow={1}+ offset={0.9}+ angle={0}+ size={0.95}+ speed={1}+ scale={0.6}fit="contain"maxPixelCount={900000}- className="mx-auto h-full w-full max-w-[560px] [mask-image:linear-gradient(to_bottom,transparent_0%,black_14%,black_42%,rgba(0,0,0,0.34)_58%,rgba(0,0,0,0.08)_72%,transparent_84%)] opacity-80 [filter:contrast(1.16)_brightness(0.86)]"+ className="absolute inset-0 mx-auto h-full w-full max-w-[560px] [mask-image:linear-gradient(to_bottom,transparent_0%,black_14%,black_42%,rgba(0,0,0,0.34)_58%,rgba(0,0,0,0.08)_72%,transparent_84%)] opacity-90 [filter:contrast(1.1)_brightness(0.95)]"/></div>)diff --git a/apps/v4/public/samples/knicks.pdf b/apps/v4/public/samples/knicks.pdfnew file mode 100644index 0000000..a0c32b3Binary files /dev/null and b/apps/v4/public/samples/knicks.pdf differdiff --git a/gem-smoke-root-page.png b/gem-smoke-root-page.pngnew file mode 100644index 0000000..b3d69e6Binary files /dev/null and b/gem-smoke-root-page.png differdiff --git a/gem-smoke-updated-settings.png b/gem-smoke-updated-settings.pngnew file mode 100644index 0000000..f58205bBinary files /dev/null and b/gem-smoke-updated-settings.png differdiff --git a/heatmap-knicks-homepage.png b/heatmap-knicks-homepage.pngnew file mode 100644index 0000000..b1a8799Binary files /dev/null and b/heatmap-knicks-homepage.png differdiff --git a/knicks-shader-homepage.png b/knicks-shader-homepage.pngnew file mode 100644index 0000000..891123dBinary files /dev/null and b/knicks-shader-homepage.png differdiff --git a/root-knicks-pdf.png b/root-knicks-pdf.pngnew file mode 100644index 0000000..b341b70Binary files /dev/null and b/root-knicks-pdf.png differ