Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
Homepage Implementation Plan
For Claude: REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
Goal: Build a cinematic, scroll-driven project homepage for Understand Anything using Astro, deployed to GitHub Pages via gh-pages branch.
Architecture: Astro SSG project in homepage/ on main. Self-hosted fonts (DM Serif Display, Inter, JetBrains Mono) with robust fallbacks. Pure CSS animations triggered by IntersectionObserver. GitHub Actions workflow builds and deploys to gh-pages on push.
Tech Stack: Astro 5, CSS custom properties, vanilla JS, GitHub Actions
Design doc: docs/plans/2026-03-15-homepage-design.md
Task 1: Scaffold Astro Project
Files:
- Create:
homepage/package.json - Create:
homepage/astro.config.mjs - Create:
homepage/tsconfig.json - Create:
homepage/src/pages/index.astro(placeholder) - Create:
homepage/src/layouts/Layout.astro(placeholder) - Create:
homepage/public/.gitkeep
Step 1: Initialize Astro project
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything
mkdir -p homepage
cd homepage
pnpm create astro@latest . -- --template minimal --no-install --no-git --typescript strict
If the interactive prompt blocks, create files manually instead.
Step 2: Configure Astro for GitHub Pages
Edit homepage/astro.config.mjs:
import { defineConfig } from 'astro/config';
export default defineConfig({
site: 'https://lum1104.github.io',
base: '/Understand-Anything',
});
Step 3: Verify the project builds
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm install
pnpm build
Expected: Build succeeds, dist/ directory created.
Step 4: Commit
git add homepage/
git commit -m "feat(homepage): scaffold Astro project with GitHub Pages config"
Task 2: Self-Host Fonts & Base CSS
Files:
- Create:
homepage/public/fonts/DMSerifDisplay-Regular.woff2 - Create:
homepage/public/fonts/Inter-Regular.woff2 - Create:
homepage/public/fonts/Inter-SemiBold.woff2 - Create:
homepage/public/fonts/JetBrainsMono-Regular.woff2 - Create:
homepage/src/styles/global.css
Step 1: Download font files
Download the WOFF2 files from Google Fonts API (or fontsource). Place them in homepage/public/fonts/. Required files:
- DM Serif Display Regular (woff2)
- Inter Regular + SemiBold (woff2)
- JetBrains Mono Regular (woff2)
Use curl to download from fontsource CDN or Google Fonts CSS API. Example:
mkdir -p homepage/public/fonts
# Download from fontsource (reliable CDN)
curl -L "https://cdn.jsdelivr.net/fontsource/fonts/dm-serif-display@latest/latin-400-normal.woff2" -o homepage/public/fonts/DMSerifDisplay-Regular.woff2
curl -L "https://cdn.jsdelivr.net/fontsource/fonts/inter@latest/latin-400-normal.woff2" -o homepage/public/fonts/Inter-Regular.woff2
curl -L "https://cdn.jsdelivr.net/fontsource/fonts/inter@latest/latin-600-normal.woff2" -o homepage/public/fonts/Inter-SemiBold.woff2
curl -L "https://cdn.jsdelivr.net/fontsource/fonts/jetbrains-mono@latest/latin-400-normal.woff2" -o homepage/public/fonts/JetBrainsMono-Regular.woff2
If download fails, try alternative URLs or use npx fontsource to install locally.
Step 2: Create global CSS with design tokens and font-face declarations
Create homepage/src/styles/global.css:
/* Font declarations — self-hosted, no external CDN dependency */
@font-face {
font-family: 'DM Serif Display';
src: url('/Understand-Anything/fonts/DMSerifDisplay-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src: url('/Understand-Anything/fonts/Inter-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src: url('/Understand-Anything/fonts/Inter-SemiBold.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'JetBrains Mono';
src: url('/Understand-Anything/fonts/JetBrainsMono-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* Design tokens */
:root {
--bg: #0a0a0a;
--surface: #141414;
--border: #1a1a1a;
--accent: #d4a574;
--accent-glow: rgba(212, 165, 116, 0.15);
--text: #e8e2d8;
--text-muted: #8a8578;
--font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-code: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
}
/* Reset & base */
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font-body);
background-color: var(--bg);
color: var(--text);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
/* Noise texture overlay */
body::before {
content: '';
position: fixed;
inset: 0;
pointer-events: none;
z-index: 9999;
opacity: 0.03;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
/* Scroll-reveal animation */
@keyframes fadeSlideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.reveal {
opacity: 0;
}
.reveal.visible {
animation: fadeSlideUp 0.8s ease-out forwards;
}
/* Stagger delays for feature cards */
.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.25s; }
.reveal-delay-3 { animation-delay: 0.4s; }
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
Step 3: Import global CSS in Layout
Update homepage/src/layouts/Layout.astro:
---
interface Props {
title: string;
}
const { title } = Astro.props;
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Turn any codebase into an interactive knowledge graph you can explore, search, and learn from." />
<link rel="icon" type="image/svg+xml" href="/Understand-Anything/favicon.svg" />
<title>{title}</title>
</head>
<body>
<slot />
</body>
</html>
<style is:global>
@import '../styles/global.css';
</style>
Step 4: Build and verify fonts load
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm build
Expected: Build succeeds. Check dist/fonts/ contains the woff2 files.
Step 5: Commit
git add homepage/public/fonts/ homepage/src/styles/global.css homepage/src/layouts/Layout.astro
git commit -m "feat(homepage): add self-hosted fonts and design token CSS"
Task 3: Nav Bar Component
Files:
- Create:
homepage/src/components/Nav.astro
Step 1: Create the nav component
Create homepage/src/components/Nav.astro:
---
const githubUrl = 'https://github.com/Egonex-AI/Understand-Anything';
---
<nav class="nav" id="nav">
<div class="nav-inner">
<a href="/Understand-Anything/" class="nav-logo">Understand Anything</a>
<div class="nav-links">
<a href={githubUrl} target="_blank" rel="noopener noreferrer" class="nav-github">
<svg viewBox="0 0 24 24" width="20" height="20" fill="currentColor" aria-hidden="true">
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"/>
</svg>
<span>GitHub</span>
</a>
<a href="#install" class="nav-cta">Get Started</a>
</div>
</div>
</nav>
<script>
const nav = document.getElementById('nav');
if (nav) {
window.addEventListener('scroll', () => {
nav.classList.toggle('scrolled', window.scrollY > 50);
});
}
</script>
<style>
.nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
padding: 1rem 2rem;
transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
background-color: rgba(10, 10, 10, 0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.nav-inner {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
}
.nav-logo {
font-family: var(--font-heading);
font-size: 1.25rem;
color: var(--text);
text-decoration: none;
}
.nav-logo:hover {
text-decoration: none;
color: var(--accent);
}
.nav-links {
display: flex;
align-items: center;
gap: 1.5rem;
}
.nav-github {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-muted);
font-size: 0.9rem;
text-decoration: none;
transition: color 0.2s;
}
.nav-github:hover {
color: var(--text);
text-decoration: none;
}
.nav-cta {
background: var(--accent);
color: var(--bg);
padding: 0.5rem 1.25rem;
border-radius: 6px;
font-weight: 600;
font-size: 0.9rem;
text-decoration: none;
transition: box-shadow 0.3s ease;
}
.nav-cta:hover {
text-decoration: none;
box-shadow: 0 0 20px var(--accent-glow);
}
@media (max-width: 480px) {
.nav { padding: 0.75rem 1rem; }
.nav-github span { display: none; }
}
</style>
Step 2: Add Nav to index.astro (temporary test)
Update homepage/src/pages/index.astro:
---
import Layout from '../layouts/Layout.astro';
import Nav from '../components/Nav.astro';
---
<Layout title="Understand Anything">
<Nav />
<main style="height: 200vh; padding-top: 100px;">
<p>Nav test — scroll to see transparency change</p>
</main>
</Layout>
Step 3: Build and verify
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm build
Expected: Build succeeds.
Step 4: Commit
git add homepage/src/components/Nav.astro homepage/src/pages/index.astro
git commit -m "feat(homepage): add floating nav bar with scroll effect"
Task 4: Hero Section Component
Files:
- Create:
homepage/src/components/Hero.astro - Copy:
assets/hero.jpg→homepage/public/images/hero.jpg
Step 1: Copy hero image
mkdir -p /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage/public/images
cp /Users/yuxianglin/Desktop/opensource/Understand-Anything/assets/hero.jpg /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage/public/images/hero.jpg
Step 2: Create Hero component
Create homepage/src/components/Hero.astro:
---
const githubUrl = 'https://github.com/Egonex-AI/Understand-Anything';
---
<section class="hero">
<div class="hero-bg">
<img src="/Understand-Anything/images/hero.jpg" alt="" class="hero-bg-img" loading="eager" />
<div class="hero-overlay"></div>
</div>
<div class="hero-content">
<h1 class="hero-title">Understand Any Codebase</h1>
<p class="hero-sub">
Turn 200,000 lines of code into an interactive knowledge graph you can
explore, search, and learn from — powered by multi-agent AI analysis.
</p>
<div class="hero-actions">
<a href="#install" class="hero-cta">Get Started</a>
<a href={githubUrl} target="_blank" rel="noopener noreferrer" class="hero-secondary">
View on GitHub →
</a>
</div>
</div>
</section>
<style>
.hero {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
overflow: hidden;
}
.hero-bg {
position: absolute;
inset: 0;
z-index: 0;
}
.hero-bg-img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.25;
}
.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
rgba(10, 10, 10, 0.3) 0%,
rgba(10, 10, 10, 0.7) 60%,
var(--bg) 100%
);
}
.hero-content {
position: relative;
z-index: 1;
max-width: 800px;
padding: 2rem;
animation: fadeSlideUp 1s ease-out;
}
.hero-title {
font-family: var(--font-heading);
font-size: clamp(2.5rem, 6vw, 4.5rem);
color: var(--text);
line-height: 1.1;
margin-bottom: 1.5rem;
text-shadow: 0 0 60px var(--accent-glow);
}
.hero-sub {
font-size: clamp(1rem, 2vw, 1.25rem);
color: var(--text-muted);
line-height: 1.7;
max-width: 600px;
margin: 0 auto 2.5rem;
}
.hero-actions {
display: flex;
align-items: center;
justify-content: center;
gap: 2rem;
flex-wrap: wrap;
}
.hero-cta {
background: var(--accent);
color: var(--bg);
padding: 0.85rem 2.5rem;
border-radius: 8px;
font-weight: 600;
font-size: 1.1rem;
text-decoration: none;
transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.hero-cta:hover {
text-decoration: none;
box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(212, 165, 116, 0.08);
transform: translateY(-2px);
}
.hero-secondary {
color: var(--text-muted);
font-size: 1rem;
text-decoration: none;
transition: color 0.2s;
}
.hero-secondary:hover {
color: var(--accent);
text-decoration: none;
}
@media (max-width: 480px) {
.hero-actions { flex-direction: column; gap: 1rem; }
}
</style>
Step 3: Build and verify
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm build
Step 4: Commit
git add homepage/src/components/Hero.astro homepage/public/images/hero.jpg
git commit -m "feat(homepage): add full-viewport hero section with gradient overlay"
Task 5: Dashboard Showcase Component
Files:
- Create:
homepage/src/components/Showcase.astro - Copy:
assets/overview.png→homepage/public/images/overview.png
Step 1: Copy dashboard screenshot
cp /Users/yuxianglin/Desktop/opensource/Understand-Anything/assets/overview.png /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage/public/images/overview.png
Step 2: Create Showcase component
Create homepage/src/components/Showcase.astro:
<section class="showcase">
<p class="showcase-label reveal">See your codebase come alive</p>
<div class="showcase-frame reveal reveal-delay-1">
<div class="showcase-titlebar">
<span class="dot red"></span>
<span class="dot yellow"></span>
<span class="dot green"></span>
</div>
<img
src="/Understand-Anything/images/overview.png"
alt="Understand Anything dashboard showing an interactive knowledge graph of a codebase"
class="showcase-img"
loading="lazy"
/>
</div>
</section>
<style>
.showcase {
padding: 4rem 2rem 6rem;
max-width: 1100px;
margin: 0 auto;
text-align: center;
}
.showcase-label {
font-family: var(--font-heading);
font-size: clamp(1.25rem, 3vw, 1.75rem);
color: var(--text-muted);
margin-bottom: 2.5rem;
}
.showcase-frame {
border-radius: 12px;
overflow: hidden;
background: var(--surface);
border: 1px solid var(--border);
box-shadow:
0 0 40px var(--accent-glow),
0 25px 50px rgba(0, 0, 0, 0.5);
}
.showcase-titlebar {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 14px;
background: rgba(20, 20, 20, 0.8);
border-bottom: 1px solid var(--border);
}
.dot {
width: 10px;
height: 10px;
border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }
.showcase-img {
width: 100%;
height: auto;
display: block;
}
@media (max-width: 768px) {
.showcase { padding: 2rem 1rem 4rem; }
}
</style>
Step 3: Build and verify
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm build
Step 4: Commit
git add homepage/src/components/Showcase.astro homepage/public/images/overview.png
git commit -m "feat(homepage): add dashboard showcase with browser frame and gold glow"
Task 6: Feature Cards Component
Files:
- Create:
homepage/src/components/Features.astro
Step 1: Create Features component
Create homepage/src/components/Features.astro:
---
const features = [
{
icon: '◈',
title: 'Interactive Knowledge Graph',
description: 'Visualize files, functions, and dependencies as an explorable graph with smart layout.',
},
{
icon: '¶',
title: 'Plain-English Summaries',
description: 'Every node explained in language anyone can understand — from junior devs to product managers.',
},
{
icon: '⟐',
title: 'Guided Tours',
description: 'AI-generated walkthroughs that teach you the codebase step by step.',
},
];
---
<section class="features">
<div class="features-grid">
{features.map((f, i) => (
<div class={`feature-card reveal reveal-delay-${i + 1}`}>
<span class="feature-icon">{f.icon}</span>
<h3 class="feature-title">{f.title}</h3>
<p class="feature-desc">{f.description}</p>
</div>
))}
</div>
</section>
<style>
.features {
padding: 2rem 2rem 6rem;
max-width: 1100px;
margin: 0 auto;
}
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
}
.feature-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 2rem;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
backdrop-filter: blur(8px);
}
.feature-card:hover {
border-color: rgba(212, 165, 116, 0.3);
box-shadow: 0 0 20px var(--accent-glow);
}
.feature-icon {
display: block;
font-size: 1.75rem;
color: var(--accent);
margin-bottom: 1rem;
}
.feature-title {
font-family: var(--font-heading);
font-size: 1.25rem;
color: var(--text);
margin-bottom: 0.75rem;
}
.feature-desc {
font-size: 0.95rem;
color: var(--text-muted);
line-height: 1.6;
}
@media (max-width: 768px) {
.features-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
}
</style>
Step 2: Build and verify
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm build
Step 3: Commit
git add homepage/src/components/Features.astro
git commit -m "feat(homepage): add feature cards with glass-morphism and staggered reveal"
Task 7: Install CTA Component
Files:
- Create:
homepage/src/components/Install.astro
Step 1: Create Install component
Create homepage/src/components/Install.astro:
<section class="install" id="install">
<div class="install-inner reveal">
<h2 class="install-title">Get started in 30 seconds</h2>
<div class="install-code">
<div class="install-code-header">
<span class="install-code-dot"></span>
<span class="install-code-label">Claude Code</span>
</div>
<pre><code><span class="cmd">/plugin marketplace add</span> Egonex-AI/Understand-Anything
<span class="cmd">/plugin install</span> understand-anything
<span class="cmd">/understand</span></code></pre>
</div>
<p class="install-note">Works with <strong>Claude Code</strong> — Anthropic's official CLI for Claude.</p>
</div>
</section>
<style>
.install {
padding: 6rem 2rem;
text-align: center;
}
.install-inner {
max-width: 640px;
margin: 0 auto;
}
.install-title {
font-family: var(--font-heading);
font-size: clamp(1.5rem, 3vw, 2.25rem);
color: var(--text);
margin-bottom: 2rem;
}
.install-code {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
overflow: hidden;
text-align: left;
margin-bottom: 1.5rem;
}
.install-code-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--border);
}
.install-code-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--accent);
}
.install-code-label {
font-size: 0.8rem;
color: var(--text-muted);
font-family: var(--font-code);
}
pre {
padding: 1.25rem 1.5rem;
margin: 0;
overflow-x: auto;
}
code {
font-family: var(--font-code);
font-size: 0.95rem;
line-height: 1.8;
color: var(--text);
}
.cmd {
color: var(--accent);
}
.install-note {
font-size: 0.9rem;
color: var(--text-muted);
}
.install-note strong {
color: var(--text);
}
</style>
Step 2: Build and verify
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm build
Step 3: Commit
git add homepage/src/components/Install.astro
git commit -m "feat(homepage): add install CTA with styled code block"
Task 8: Footer Component
Files:
- Create:
homepage/src/components/Footer.astro
Step 1: Create Footer component
Create homepage/src/components/Footer.astro:
---
const githubUrl = 'https://github.com/Egonex-AI/Understand-Anything';
---
<footer class="footer">
<div class="footer-inner">
<span class="footer-logo">Understand Anything</span>
<div class="footer-links">
<a href={githubUrl} target="_blank" rel="noopener noreferrer">GitHub</a>
<span class="footer-sep">·</span>
<a href={`${githubUrl}/blob/main/LICENSE`} target="_blank" rel="noopener noreferrer">License</a>
</div>
<p class="footer-note">Built as a Claude Code plugin</p>
</div>
</footer>
<style>
.footer {
padding: 3rem 2rem;
border-top: 1px solid var(--border);
text-align: center;
}
.footer-inner {
max-width: 1200px;
margin: 0 auto;
}
.footer-logo {
font-family: var(--font-heading);
font-size: 1.1rem;
color: var(--text);
display: block;
margin-bottom: 0.75rem;
}
.footer-links {
margin-bottom: 0.75rem;
}
.footer-links a {
color: var(--text-muted);
font-size: 0.85rem;
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: var(--accent);
}
.footer-sep {
color: var(--border);
margin: 0 0.5rem;
}
.footer-note {
font-size: 0.8rem;
color: var(--text-muted);
}
</style>
Step 2: Build and verify
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm build
Step 3: Commit
git add homepage/src/components/Footer.astro
git commit -m "feat(homepage): add minimal footer"
Task 9: Assemble Full Page + Scroll Reveal Script
Files:
- Modify:
homepage/src/pages/index.astro
Step 1: Assemble all components in the index page
Replace homepage/src/pages/index.astro with:
---
import Layout from '../layouts/Layout.astro';
import Nav from '../components/Nav.astro';
import Hero from '../components/Hero.astro';
import Showcase from '../components/Showcase.astro';
import Features from '../components/Features.astro';
import Install from '../components/Install.astro';
import Footer from '../components/Footer.astro';
---
<Layout title="Understand Anything — Turn any codebase into a knowledge graph">
<Nav />
<Hero />
<Showcase />
<Features />
<Install />
<Footer />
</Layout>
<script>
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
observer.unobserve(entry.target);
}
});
},
{ threshold: 0.15 }
);
document.querySelectorAll('.reveal').forEach((el) => observer.observe(el));
</script>
Step 2: Build and verify the full page
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm build
Expected: Build succeeds. dist/index.html contains all sections.
Step 3: Preview locally
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm preview
Open in browser and verify: Nav, Hero, Showcase, Features, Install CTA, Footer all render correctly. Scroll animations trigger. Nav becomes solid on scroll.
Step 4: Commit
git add homepage/src/pages/index.astro
git commit -m "feat(homepage): assemble full page with scroll-reveal observer"
Task 10: GitHub Actions Deployment Workflow
Files:
- Create:
.github/workflows/deploy-homepage.yml
Step 1: Create the workflow file
mkdir -p /Users/yuxianglin/Desktop/opensource/Understand-Anything/.github/workflows
Create .github/workflows/deploy-homepage.yml:
name: Deploy Homepage
on:
push:
branches: [main]
paths:
- 'homepage/**'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: homepage/pnpm-lock.yaml
- name: Install dependencies
working-directory: homepage
run: pnpm install
- name: Build
working-directory: homepage
run: pnpm build
- uses: actions/upload-pages-artifact@v3
with:
path: homepage/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
Step 2: Commit
git add .github/workflows/deploy-homepage.yml
git commit -m "ci: add GitHub Actions workflow for homepage deployment to Pages"
Task 11: Create Favicon
Files:
- Create:
homepage/public/favicon.svg
Step 1: Create a simple gold-on-black SVG favicon
Create homepage/public/favicon.svg:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<rect width="32" height="32" rx="6" fill="#0a0a0a"/>
<text x="16" y="23" font-family="Georgia, serif" font-size="20" fill="#d4a574" text-anchor="middle" font-weight="bold">U</text>
</svg>
Step 2: Commit
git add homepage/public/favicon.svg
git commit -m "feat(homepage): add favicon"
Task 12: Final Build Verification & README Update
Files:
- Modify:
README.md(add homepage link)
Step 1: Full clean build
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
rm -rf dist node_modules
pnpm install && pnpm build
Expected: Build succeeds with no warnings.
Step 2: Local preview and manual check
cd /Users/yuxianglin/Desktop/opensource/Understand-Anything/homepage
pnpm preview
Verify in browser:
- Page loads without errors
- Fonts render (or fallback gracefully)
- Hero section is full viewport with background image
- Dashboard screenshot appears in browser frame with gold glow
- Feature cards appear in 3 columns (1 column on mobile)
- Install code block shows correct commands
- Scroll animations trigger on scroll
- Nav becomes solid on scroll
- All links work (GitHub, Get Started smooth scroll)
- Responsive: test at 480px and 768px
Step 3: Add homepage link to README.md
Add a "Homepage" link near the top of the README, after the badges section. Add a single line:
**[Homepage](https://understand-anything.com)** | **[GitHub](https://github.com/Egonex-AI/Understand-Anything)**
Step 4: Final commit
git add README.md
git commit -m "docs: add homepage link to README"
Step 5: Configure GitHub Pages
After pushing to main, go to GitHub repo Settings → Pages → Source: select "GitHub Actions". The workflow will auto-deploy on the next push that touches homepage/.