Skip to content

Commit 3bb17da

Browse files
committed
feat(partnerships): surface prospectus downloads
1 parent 2389288 commit 3bb17da

5 files changed

Lines changed: 79 additions & 2 deletions

File tree

‎.gitattributes‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pdf binary

‎app/prospectus/route.ts‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { readFile } from "fs/promises";
2+
import { NextRequest } from "next/server";
3+
import path from "path";
4+
5+
export const runtime = "nodejs";
6+
export const dynamic = "force-dynamic";
7+
8+
const PDF_PATH = path.join(
9+
process.cwd(),
10+
"output",
11+
"pdf",
12+
"bitsnbytes-partnership-prospectus-2026.pdf",
13+
);
14+
15+
export async function GET(request: NextRequest) {
16+
const pdf = await readFile(PDF_PATH);
17+
const isDownload = request.nextUrl.searchParams.get("download") === "1";
18+
const filename = "bitsnbytes-partnership-prospectus-2026.pdf";
19+
20+
return new Response(pdf, {
21+
headers: {
22+
"content-type": "application/pdf",
23+
"content-length": String(pdf.length),
24+
"content-disposition": `${isDownload ? "attachment" : "inline"}; filename="${filename}"`,
25+
"cache-control": "public, max-age=0, must-revalidate",
26+
},
27+
});
28+
}

‎components/ui/hero-futuristic.tsx‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,29 @@ export const HeroFuturistic = () => {
176176
</Button>
177177
</div>
178178

179+
<div className="flex flex-col gap-3 sm:flex-row w-full">
180+
<Button
181+
asChild
182+
variant="outline"
183+
className="w-full sm:flex-1 h-11 rounded-none bg-transparent text-[11px] font-black uppercase tracking-[0.22em] text-foreground border-2 border-border shadow-[3px_3px_0px_0px_var(--border)] hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-[5px_5px_0px_0px_var(--border)] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none transition-all cursor-pointer"
184+
>
185+
<Link href="/prospectus" className="flex items-center justify-center gap-2">
186+
View prospectus
187+
<ArrowRight className="h-3.5 w-3.5 shrink-0" />
188+
</Link>
189+
</Button>
190+
<Button
191+
asChild
192+
variant="outline"
193+
className="w-full sm:flex-1 h-11 rounded-none bg-[#fda83d] text-[11px] font-black uppercase tracking-[0.22em] text-[#120f0a] border-2 border-border shadow-[3px_3px_0px_0px_var(--border)] hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-[5px_5px_0px_0px_var(--border)] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none transition-all cursor-pointer"
194+
>
195+
<Link href="/prospectus?download=1" download className="flex items-center justify-center gap-2">
196+
Download PDF
197+
<Sparkles className="h-3.5 w-3.5 shrink-0 fill-current" />
198+
</Link>
199+
</Button>
200+
</div>
201+
179202
{/* Stats Grid */}
180203
<div className="mt-auto border-t-4 border-border pt-4 sm:pt-6">
181204
<div className="grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4">

‎components/ui/hero-movement.tsx‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Image from "next/image";
44
import Link from "next/link";
55
import React, { useState, useEffect, useRef, useCallback } from "react";
66
import { createPortal } from "react-dom";
7-
import { Play, Volume2, X, ArrowUpRight } from "lucide-react";
7+
import { Play, Volume2, X, ArrowUpRight, FileDown } from "lucide-react";
88
import { motion, AnimatePresence } from "framer-motion";
99
import { Button } from "@/components/ui/button";
1010
import { cn } from "@/lib/utils";
@@ -248,7 +248,12 @@ export const HeroMovement: React.FC = () => {
248248
}, [closeMovie, isMovieOpen, playMovie]);
249249

250250
return (
251-
<section className="relative w-full bg-[#faf8f5] dark:bg-[#120f0a] text-[#120f0a] dark:text-[#faf8f5] pt-24 pb-12 sm:pt-28 lg:pt-32 xl:pt-36 sm:pb-12 lg:pb-16 transition-colors duration-300 overflow-hidden">
251+
<section
252+
data-tour="page-hero"
253+
data-cinematic-section
254+
data-cinematic-title="the movement"
255+
className="relative w-full bg-[#faf8f5] dark:bg-[#120f0a] text-[#120f0a] dark:text-[#faf8f5] pt-24 pb-12 sm:pt-28 lg:pt-32 xl:pt-36 sm:pb-12 lg:pb-16 transition-colors duration-300 overflow-hidden"
256+
>
252257
{/* Blueprint Grid Overlay */}
253258
<div className="absolute inset-0 blueprint-dot-grid pointer-events-none" />
254259

@@ -303,6 +308,26 @@ export const HeroMovement: React.FC = () => {
303308
</Button>
304309
</div>
305310

311+
<Link
312+
href="/prospectus?download=1"
313+
data-tour="prospectus"
314+
className="group flex w-full max-w-md items-center gap-3 border-l-2 border-[#fc920d] px-3 py-2.5 font-mono text-[#120f0a] transition-[background-color,color,transform] duration-200 ease-out hover:translate-x-1 hover:bg-[#fc920d]/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#97192c] focus-visible:ring-offset-2 dark:text-[#faf8f5] dark:focus-visible:ring-offset-[#120f0a]"
315+
aria-label="Download the bits&bytes partnership prospectus"
316+
>
317+
<FileDown className="h-4 w-4 shrink-0 text-[#97192c] transition-transform duration-200 ease-out group-hover:translate-y-0.5 dark:text-[#fc920d]" />
318+
<span className="min-w-0 flex-1 text-left">
319+
<span className="block text-[10px] font-bold uppercase tracking-[0.18em] text-[#97192c] dark:text-[#fc920d]">
320+
building a partnership?
321+
</span>
322+
<span className="block text-xs font-bold uppercase tracking-[0.08em] sm:text-[13px]">
323+
download the 2026 prospectus
324+
</span>
325+
</span>
326+
<span className="text-[9px] font-bold uppercase tracking-[0.16em] text-[#120f0a]/50 dark:text-[#faf8f5]/50">
327+
pdf
328+
</span>
329+
</Link>
330+
306331
{/* Metrics / Stats Grid Row */}
307332
<div className="grid grid-cols-2 sm:grid-cols-4 gap-4 pt-4 border-t border-[#120f0a]/15 mt-3 lg:mt-2 xl:mt-3">
308333
<StatCard value="1400+" label="Active Members" coord="[LAT.26.8]" />
2.22 MB
Binary file not shown.

0 commit comments

Comments
 (0)