Become a Pro / website · becomeapro.ai / src / app / page.tsx
| 1 | import "./home.css"; |
| 2 | import ShareButton from "@/components/share-button"; |
| 3 | import Link from "next/link"; |
| 4 | import { HomeMotion } from "@/components/home/home-motion"; |
| 5 | import { SplitWords } from "@/components/home/split-words"; |
| 6 | import { JsonLd } from "@/components/json-ld"; |
| 7 | import { BranchBand } from "@/components/branch-band"; |
| 8 | import { SITE_DESCRIPTION, SITE_TITLE, pageMetadata, siteJsonLd } from "@/lib/seo"; |
| 9 | import { TRACKS, type TrackSlug } from "@/lib/tracks"; |
| 10 | import { getTutorialsByTrack } from "@/lib/tutorials"; |
| 11 | import { BookOpen, Rocket } from "lucide-react"; |
| 12 | |
| 13 | export const metadata = pageMetadata({ title: SITE_TITLE, description: SITE_DESCRIPTION, path: "/", absoluteTitle: true }); |
| 14 | |
| 15 | // Each track section pins its copy on one side while the particle field forms the track's shape on the other |
| 16 | const TRACK_SECTIONS: { slug: TrackSlug; id: string; side: "l" | "r"; label: string; title: string; lead: string }[] = [ |
| 17 | { |
| 18 | slug: "claude", |
| 19 | id: "claude", |
| 20 | side: "r", |
| 21 | label: "Claude", |
| 22 | title: "Give Claude the keys to your codebase.", |
| 23 | lead: "Set up Claude Code so it plans before it edits, follows your project's rules, and checks its own work before it says it's done.", |
| 24 | }, |
| 25 | { |
| 26 | slug: "chatgpt", |
| 27 | id: "codex", |
| 28 | side: "l", |
| 29 | label: "ChatGPT and Codex", |
| 30 | title: "Get real work out of Codex.", |
| 31 | lead: "The Codex CLI from install to pull request, and a straight answer on when ChatGPT is the better tool for the job.", |
| 32 | }, |
| 33 | { |
| 34 | slug: "computer-use", |
| 35 | id: "cu", |
| 36 | side: "r", |
| 37 | label: "Computer use", |
| 38 | title: "Let an agent drive the mouse.", |
| 39 | lead: "Agents that read the screen, click, type and browse. Filmed on real tasks, with the mistakes left in so you can see where they trip.", |
| 40 | }, |
| 41 | { |
| 42 | slug: "ai-video", |
| 43 | id: "video", |
| 44 | side: "l", |
| 45 | label: "AI video", |
| 46 | title: "Make AI video on your own GPU.", |
| 47 | lead: "Generate video with open-weight models on your own GPU. We cover setup, picking a model, and prompting it well.", |
| 48 | }, |
| 49 | ]; |
| 50 | |
| 51 | const MARQUEE: [string, string][][] = [ |
| 52 | [["Claude", "#46AAE9"], ["Codex", "#46AAE9"], ["Computer use", "#46AAE9"], ["AI video", ""]], |
| 53 | [["Open weights", "#BFE3FA"], ["Runpod", "#FFFFFF"], ["Agents", "#46AAE9"], ["Prompts", ""]], |
| 54 | ]; |
| 55 | |
| 56 | const Triangle = ({ color }: { color: string }) => ( |
| 57 | <svg viewBox="0 0 20 20" fill="none" stroke={color} strokeWidth="1.4" aria-hidden> |
| 58 | <path d="M10 2 18 16H2Z" /> |
| 59 | </svg> |
| 60 | ); |
| 61 | |
| 62 | const countLabel = (n: number) => (n === 1 ? "1 tutorial" : `${n} tutorials`); |
| 63 | |
| 64 | export default function HomePage() { |
| 65 | return ( |
| 66 | <div className="xp xp-wait"> |
| 67 | <JsonLd data={siteJsonLd()} /> |
| 68 | <HomeMotion sections={["Start", "Claude", "Codex", "Computer use", "AI video", "The bill", "Join"]} /> |
| 69 | |
| 70 | <section className="sec hero l" id="top" data-shape="0"> |
| 71 | <div className="wrap grid"> |
| 72 | <div className="copy"> |
| 73 | <p className="label" data-r style={{ "--tc": "var(--ice)" } as React.CSSProperties}> |
| 74 | <i /> |
| 75 | Tutorials and videos |
| 76 | </p> |
| 77 | <div className="visitor-welcome" data-visitor-odometer="" data-visitor-site="airesourcepro" /> |
| 78 | <h1 id="xp-h1" aria-label="Learn AI by building with it."> |
| 79 | <SplitWords text="Learn AI by building with it." letters /> |
| 80 | </h1> |
| 81 | <p className="lead" data-r> |
| 82 | Hands-on lessons for Claude, ChatGPT and Codex, agents that use a computer, and AI models you run on your own |
| 83 | GPU. Every lesson walks you through the exact steps. |
| 84 | </p> |
| 85 | <div className="row" data-r> |
| 86 | <Link href="/tutorials" className="pill mag"> |
| 87 | <BookOpen className="size-4" strokeWidth={2} aria-hidden="true" /> |
| 88 | Browse tutorials |
| 89 | <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.6" aria-hidden> |
| 90 | <path d="M3 8h10M9 4l4 4-4 4" /> |
| 91 | </svg> |
| 92 | </Link> |
| 93 | <Link href="/videos" className="ghost-link inline-flex min-h-[44px] items-center"> |
| 94 | Watch the videos |
| 95 | </Link> |
| 96 | <ShareButton className="airp-share" url="https://airesourcepro.com/" title="AI Resource Pro" text="Learn AI by building with it: hands-on tutorials for Claude, ChatGPT, Codex and more." /> |
| 97 | </div> |
| 98 | </div> |
| 99 | </div> |
| 100 | <div className="hint" aria-hidden> |
| 101 | Scroll<span /> |
| 102 | </div> |
| 103 | </section> |
| 104 | |
| 105 | <section className="marquee" aria-hidden> |
| 106 | {MARQUEE.map((row, r) => ( |
| 107 | <span key={r} className="mline"> |
| 108 | <span className="mrow" id={`xp-m${r + 1}`}> |
| 109 | {row.map(([word, tri], i) => ( |
| 110 | <span key={word} className="contents"> |
| 111 | <span className={(i + r) % 2 ? "o" : "f"}>{word}</span> |
| 112 | {tri && <Triangle color={tri} />} |
| 113 | </span> |
| 114 | ))} |
| 115 | </span> |
| 116 | </span> |
| 117 | ))} |
| 118 | </section> |
| 119 | |
| 120 | {TRACK_SECTIONS.map((s, i) => { |
| 121 | const track = TRACKS.find((t) => t.slug === s.slug)!; |
| 122 | const tutorials = getTutorialsByTrack(s.slug); |
| 123 | return ( |
| 124 | <section |
| 125 | key={s.id} |
| 126 | className={`sec track ${s.side}`} |
| 127 | id={s.id} |
| 128 | data-shape={i + 1} |
| 129 | style={{ "--tc": track.color } as React.CSSProperties} |
| 130 | > |
| 131 | <div className="wrap grid"> |
| 132 | <div className="copy"> |
| 133 | <p className="label" data-r> |
| 134 | <i /> |
| 135 | {s.label} · {countLabel(tutorials.length)} |
| 136 | </p> |
| 137 | <h2 aria-label={s.title}> |
| 138 | <SplitWords text={s.title} /> |
| 139 | </h2> |
| 140 | <p className="lead" data-r> |
| 141 | {s.lead} |
| 142 | </p> |
| 143 | <div className="lessons" data-r> |
| 144 | {tutorials.slice(0, 3).map((t) => ( |
| 145 | <Link key={t.slug} href={`/${t.track}/${t.slug}`} className="lesson"> |
| 146 | {t.title} <span className="arr">→</span> |
| 147 | </Link> |
| 148 | ))} |
| 149 | <Link href={`/${s.slug}`} className="lesson more"> |
| 150 | All {track.name} tutorials <span className="arr">→</span> |
| 151 | </Link> |
| 152 | </div> |
| 153 | </div> |
| 154 | </div> |
| 155 | </section> |
| 156 | ); |
| 157 | })} |
| 158 | |
| 159 | <section className="sec cost l" id="gpu" data-shape="5" style={{ "--tc": "var(--sky)" } as React.CSSProperties}> |
| 160 | <div className="wrap grid"> |
| 161 | <div className="copy"> |
| 162 | <p className="label" data-r> |
| 163 | <i /> |
| 164 | Your own GPU |
| 165 | </p> |
| 166 | <h2 aria-label="Same clip. Your own GPU."> |
| 167 | <SplitWords text="Same clip. Your own GPU." /> |
| 168 | </h2> |
| 169 | <p className="lead" data-r> |
| 170 | Run an open video model yourself on a cloud GPU, and keep control of every frame. |
| 171 | </p> |
| 172 | </div> |
| 173 | </div> |
| 174 | </section> |
| 175 | |
| 176 | <section className="sec end" id="join" data-shape="6"> |
| 177 | <div className="wrap" style={{ width: "100%" }}> |
| 178 | <div className="copy"> |
| 179 | <h2 aria-label="Start building with AI."> |
| 180 | <SplitWords text="Start building with AI." /> |
| 181 | </h2> |
| 182 | <p className="lead" data-r> |
| 183 | Make a free account to save tutorials and keep track of what you've finished. |
| 184 | </p> |
| 185 | <div className="row" data-r style={{ justifyContent: "center" }}> |
| 186 | <Link href="/login" className="pill mag"> |
| 187 | <Rocket className="size-4" strokeWidth={2} aria-hidden="true" /> |
| 188 | Start free |
| 189 | </Link> |
| 190 | </div> |
| 191 | </div> |
| 192 | </div> |
| 193 | </section> |
| 194 | <BranchBand /> |
| 195 | </div> |
| 196 | ); |
| 197 | } |