Add under-anything knowledge dashboard
This commit is contained in:
24
Understand-Anything-main/homepage/.gitignore
vendored
Normal file
24
Understand-Anything-main/homepage/.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# build output
|
||||
dist/
|
||||
# generated types
|
||||
.astro/
|
||||
|
||||
# dependencies
|
||||
node_modules/
|
||||
|
||||
# logs
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
|
||||
# environment variables
|
||||
.env
|
||||
.env.production
|
||||
|
||||
# macOS-specific files
|
||||
.DS_Store
|
||||
|
||||
# jetbrains setting folder
|
||||
.idea/
|
||||
4
Understand-Anything-main/homepage/.vscode/extensions.json
vendored
Normal file
4
Understand-Anything-main/homepage/.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"recommendations": ["astro-build.astro-vscode"],
|
||||
"unwantedRecommendations": []
|
||||
}
|
||||
11
Understand-Anything-main/homepage/.vscode/launch.json
vendored
Normal file
11
Understand-Anything-main/homepage/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"command": "./node_modules/.bin/astro dev",
|
||||
"name": "Development server",
|
||||
"request": "launch",
|
||||
"type": "node-terminal"
|
||||
}
|
||||
]
|
||||
}
|
||||
43
Understand-Anything-main/homepage/README.md
Normal file
43
Understand-Anything-main/homepage/README.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# Astro Starter Kit: Minimal
|
||||
|
||||
```sh
|
||||
pnpm create astro@latest -- --template minimal
|
||||
```
|
||||
|
||||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
||||
|
||||
## 🚀 Project Structure
|
||||
|
||||
Inside of your Astro project, you'll see the following folders and files:
|
||||
|
||||
```text
|
||||
/
|
||||
├── public/
|
||||
├── src/
|
||||
│ └── pages/
|
||||
│ └── index.astro
|
||||
└── package.json
|
||||
```
|
||||
|
||||
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
|
||||
|
||||
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
|
||||
|
||||
Any static assets, like images, can be placed in the `public/` directory.
|
||||
|
||||
## 🧞 Commands
|
||||
|
||||
All commands are run from the root of the project, from a terminal:
|
||||
|
||||
| Command | Action |
|
||||
| :------------------------ | :----------------------------------------------- |
|
||||
| `pnpm install` | Installs dependencies |
|
||||
| `pnpm dev` | Starts local dev server at `localhost:4321` |
|
||||
| `pnpm build` | Build your production site to `./dist/` |
|
||||
| `pnpm preview` | Preview your build locally, before deploying |
|
||||
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
|
||||
| `pnpm astro -- --help` | Get help using the Astro CLI |
|
||||
|
||||
## 👀 Want to learn more?
|
||||
|
||||
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
||||
7
Understand-Anything-main/homepage/astro.config.mjs
Normal file
7
Understand-Anything-main/homepage/astro.config.mjs
Normal file
@@ -0,0 +1,7 @@
|
||||
// @ts-check
|
||||
import { defineConfig } from 'astro/config';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://understand-anything.com',
|
||||
});
|
||||
17
Understand-Anything-main/homepage/package.json
Normal file
17
Understand-Anything-main/homepage/package.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "homepage",
|
||||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"engines": {
|
||||
"node": ">=22.12.0"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"build": "astro build",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^6.1.6"
|
||||
}
|
||||
}
|
||||
0
Understand-Anything-main/homepage/public/.gitkeep
Normal file
0
Understand-Anything-main/homepage/public/.gitkeep
Normal file
1
Understand-Anything-main/homepage/public/CNAME
Normal file
1
Understand-Anything-main/homepage/public/CNAME
Normal file
@@ -0,0 +1 @@
|
||||
understand-anything.com
|
||||
BIN
Understand-Anything-main/homepage/public/favicon.ico
Normal file
BIN
Understand-Anything-main/homepage/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 655 B |
4
Understand-Anything-main/homepage/public/favicon.svg
Normal file
4
Understand-Anything-main/homepage/public/favicon.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<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>
|
||||
|
After Width: | Height: | Size: 253 B |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Understand-Anything-main/homepage/public/images/hero.jpg
Normal file
BIN
Understand-Anything-main/homepage/public/images/hero.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 178 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.0 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 10 MiB |
BIN
Understand-Anything-main/homepage/public/images/overview.png
Normal file
BIN
Understand-Anything-main/homepage/public/images/overview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
@@ -0,0 +1,143 @@
|
||||
---
|
||||
const youTubeId = 'VmIUXVlt7_I';
|
||||
const youTubeUrl = `https://www.youtube.com/watch?v=${youTubeId}`;
|
||||
const embedUrl = `https://www.youtube.com/embed/${youTubeId}?si=IB3cjpjbq9wis5D7`;
|
||||
---
|
||||
|
||||
<section class="community-video">
|
||||
<span class="community-video-label reveal">Community</span>
|
||||
<h2 class="community-video-heading reveal">
|
||||
A walkthrough from the
|
||||
<span style="display:inline;background:linear-gradient(135deg,#b8865c,#d4a574);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;">community</span>
|
||||
</h2>
|
||||
<p class="community-video-desc reveal">
|
||||
A community-made video tour by
|
||||
<a class="community-video-credit" href={youTubeUrl} target="_blank" rel="noopener noreferrer">Better Stack</a>.
|
||||
</p>
|
||||
<div class="community-video-frame reveal reveal-delay-1">
|
||||
<div class="community-video-titlebar">
|
||||
<span class="dot red"></span>
|
||||
<span class="dot yellow"></span>
|
||||
<span class="dot green"></span>
|
||||
<span class="community-video-titlebar-text">YouTube · Better Stack</span>
|
||||
</div>
|
||||
<div class="community-video-iframe-wrap">
|
||||
<iframe
|
||||
src={embedUrl}
|
||||
title="Community video by Better Stack — Understand Anything walkthrough"
|
||||
class="community-video-iframe"
|
||||
loading="lazy"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
referrerpolicy="strict-origin-when-cross-origin"
|
||||
allowfullscreen
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.community-video {
|
||||
padding: 6rem 2rem 4rem;
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.community-video-label {
|
||||
display: inline-block;
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
color: #d4a574;
|
||||
border: 1px solid rgba(212, 165, 116, 0.3);
|
||||
padding: 0.3rem 1rem;
|
||||
border-radius: 100px;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.community-video-heading {
|
||||
font-family: var(--font-heading);
|
||||
font-size: clamp(1.75rem, 4.5vw, 3rem);
|
||||
color: var(--text);
|
||||
margin-bottom: 1.5rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.community-video-desc {
|
||||
font-size: clamp(0.95rem, 1.5vw, 1.05rem);
|
||||
color: var(--text-muted);
|
||||
max-width: 640px;
|
||||
margin: 0 auto 2.5rem;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.community-video-credit {
|
||||
color: #d4a574;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px dashed rgba(212, 165, 116, 0.4);
|
||||
transition: border-color 0.2s ease;
|
||||
}
|
||||
|
||||
.community-video-credit:hover {
|
||||
border-bottom-color: #d4a574;
|
||||
}
|
||||
|
||||
.community-video-frame {
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: var(--surface);
|
||||
border: 1px solid rgba(212, 165, 116, 0.2);
|
||||
box-shadow:
|
||||
0 0 60px rgba(212, 165, 116, 0.08),
|
||||
0 25px 50px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
.community-video-titlebar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 10px 14px;
|
||||
background: rgba(20, 20, 20, 0.8);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.community-video-titlebar-text {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-muted);
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.dot.red { background: #ff5f57; }
|
||||
.dot.yellow { background: #ffbd2e; }
|
||||
.dot.green { background: #28c840; }
|
||||
|
||||
.community-video-iframe-wrap {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
background: #0a0a0a;
|
||||
}
|
||||
|
||||
.community-video-iframe {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.community-video { padding: 4rem 1rem 3rem; }
|
||||
}
|
||||
</style>
|
||||
109
Understand-Anything-main/homepage/src/components/Features.astro
Normal file
109
Understand-Anything-main/homepage/src/components/Features.astro
Normal file
@@ -0,0 +1,109 @@
|
||||
---
|
||||
const features = [
|
||||
{
|
||||
icon: '◈',
|
||||
title: 'Interactive Knowledge Graph',
|
||||
description: 'Explorable graph with hierarchical drill-down, smart layout, and community clustering.',
|
||||
},
|
||||
{
|
||||
icon: '⬡',
|
||||
title: 'Beyond Code Analysis',
|
||||
description: 'Dockerfiles, Terraform, SQL, Markdown, and 26+ file types in one unified graph.',
|
||||
},
|
||||
{
|
||||
icon: '⊘',
|
||||
title: 'Smart Filtering & Search',
|
||||
description: 'Filter by type, complexity, or layer. Fuzzy and semantic search to find anything.',
|
||||
},
|
||||
{
|
||||
icon: '⎙',
|
||||
title: 'Export & Share',
|
||||
description: 'High-quality PNG, SVG, or filtered JSON for docs, presentations, or analysis.',
|
||||
},
|
||||
{
|
||||
icon: '⟿',
|
||||
title: 'Dependency Path Finder',
|
||||
description: 'Shortest path between any two components. See how your system connects.',
|
||||
},
|
||||
{
|
||||
icon: '⟐',
|
||||
title: 'Guided Tours & Onboarding',
|
||||
description: 'AI-generated walkthroughs that teach the codebase step by step.',
|
||||
},
|
||||
];
|
||||
---
|
||||
|
||||
<section class="features">
|
||||
<div class="features-grid">
|
||||
{features.map((f, i) => (
|
||||
<div class={`feature-card reveal reveal-delay-${(i % 2) + 1}`}>
|
||||
<span class="feature-icon grad">{f.icon}</span>
|
||||
<div class="feature-body">
|
||||
<h3 class="feature-title">{f.title}</h3>
|
||||
<p class="feature-desc">{f.description}</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.features {
|
||||
padding: 4rem 2rem 8rem;
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 1.25rem;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
padding: 2rem;
|
||||
transition: border-color 0.3s ease, box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
.feature-card:hover {
|
||||
border-color: rgba(212, 165, 116, 0.25);
|
||||
box-shadow: 0 0 24px var(--accent-glow);
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
font-size: 2rem;
|
||||
line-height: 1;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.feature-body {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.feature-title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.2rem;
|
||||
color: var(--text);
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.feature-desc {
|
||||
font-size: 0.95rem;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.features { padding: 2rem 1rem 6rem; }
|
||||
.features-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,83 @@
|
||||
---
|
||||
const githubUrl = 'https://github.com/Lum1104/Understand-Anything';
|
||||
const discordUrl = 'https://discord.gg/pydat66RY';
|
||||
const contactEmail = 'lum@understand-anything.com';
|
||||
---
|
||||
|
||||
<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={discordUrl} target="_blank" rel="noopener noreferrer">Discord</a>
|
||||
<span class="footer-sep">·</span>
|
||||
<a href="/demo/">Live Demo</a>
|
||||
<span class="footer-sep">·</span>
|
||||
<a href={`mailto:${contactEmail}`}>Contact</a>
|
||||
<span class="footer-sep">·</span>
|
||||
<a href={`${githubUrl}/blob/main/LICENSE`} target="_blank" rel="noopener noreferrer">MIT License</a>
|
||||
</div>
|
||||
<p class="footer-note">Graphs that teach. Built for AI coding assistants.</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
.footer {
|
||||
padding: 4rem 2rem;
|
||||
border-top: 1px solid var(--border);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.footer-inner {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem 0.25rem;
|
||||
}
|
||||
|
||||
.footer-logo {
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.15rem;
|
||||
color: var(--text);
|
||||
display: block;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.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.6rem;
|
||||
}
|
||||
|
||||
.footer-note {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.footer { padding: 3rem 1.25rem; }
|
||||
.footer-sep { display: none; }
|
||||
.footer-links { gap: 0.25rem 1rem; }
|
||||
}
|
||||
</style>
|
||||
584
Understand-Anything-main/homepage/src/components/Hero.astro
Normal file
584
Understand-Anything-main/homepage/src/components/Hero.astro
Normal file
@@ -0,0 +1,584 @@
|
||||
---
|
||||
const githubUrl = 'https://github.com/Lum1104/Understand-Anything';
|
||||
const discordUrl = 'https://discord.gg/pydat66RY';
|
||||
---
|
||||
|
||||
<section class="hero">
|
||||
<div class="hero-bg">
|
||||
<img src="/images/hero.jpg" alt="" class="hero-bg-img" loading="eager" />
|
||||
<div class="hero-overlay"></div>
|
||||
</div>
|
||||
|
||||
<div class="hero-content">
|
||||
<span class="hero-badge anim anim-1">AI-Powered Code Understanding</span>
|
||||
|
||||
<h1 class="hero-title anim anim-2">
|
||||
<span style="display:inline-block;background:linear-gradient(135deg,#c9867a,#b8865c,#d4a574);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;">Understand</span> Anything
|
||||
</h1>
|
||||
|
||||
<p class="hero-tagline anim anim-3">
|
||||
Other tools show you a <span class="hero-problem">hairball</span>.
|
||||
We <span class="hero-value">teach</span> you the codebase.
|
||||
</p>
|
||||
|
||||
<div class="hero-pillars anim anim-4">
|
||||
<span class="pillar">Structure & Dependencies</span>
|
||||
<span class="pillar-dot">·</span>
|
||||
<span class="pillar">Business Logic</span>
|
||||
<span class="pillar-dot">·</span>
|
||||
<span class="pillar">Guided Tours</span>
|
||||
</div>
|
||||
|
||||
<div class="hero-actions anim anim-5">
|
||||
<a href="#install" class="hero-cta">Get Started</a>
|
||||
<a href="/demo/" class="hero-demo">Live Demo →</a>
|
||||
<a href={discordUrl} target="_blank" rel="noopener noreferrer" class="hero-discord">
|
||||
<svg viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true">
|
||||
<path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z"/>
|
||||
</svg>
|
||||
Join Discord
|
||||
</a>
|
||||
<a href={githubUrl} target="_blank" rel="noopener noreferrer" class="hero-secondary">
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" style="vertical-align:-2px;margin-right:4px;"><path d="M12 .587l3.668 7.568L24 9.306l-6 5.986 1.416 8.421L12 19.897l-7.416 3.816L6 15.292 0 9.306l8.332-1.151z"/></svg>
|
||||
Star on GitHub
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<a href="https://trendshift.io/repositories/23482" target="_blank" rel="noopener noreferrer" class="hero-trendshift anim anim-5">
|
||||
<img src="https://trendshift.io/api/badge/repositories/23482" alt="Lum1104/Understand-Anything | Trendshift" width="250" height="55" loading="lazy" />
|
||||
</a>
|
||||
|
||||
<a href="mailto:lum@understand-anything.com" class="hero-enterprise anim anim-5">
|
||||
<span class="hero-enterprise-label">Enterprise</span>
|
||||
<span class="hero-enterprise-divider">·</span>
|
||||
<span class="hero-enterprise-email">lum@understand-anything.com</span>
|
||||
<span class="hero-enterprise-arrow">→</span>
|
||||
</a>
|
||||
|
||||
<a href="https://lum.is-a.dev/" target="_blank" rel="noopener noreferrer" class="hero-author anim anim-5">
|
||||
<span class="hero-author-label">Author</span>
|
||||
<span class="hero-author-divider">·</span>
|
||||
<span class="hero-author-handle">Lum1104</span>
|
||||
<span class="hero-author-arrow">→</span>
|
||||
</a>
|
||||
|
||||
<details class="hero-subscribe anim anim-6">
|
||||
<summary class="hero-subscribe-toggle">
|
||||
<span>Subscribe to release updates</span>
|
||||
<svg class="hero-subscribe-chevron" viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<polyline points="6 9 12 15 18 9"></polyline>
|
||||
</svg>
|
||||
</summary>
|
||||
<div class="hero-subscribe-frame">
|
||||
<p class="hero-subscribe-hint">No spam, unsubscribe anytime</p>
|
||||
<iframe
|
||||
src="https://yuxianglin.substack.com/embed"
|
||||
title="Subscribe to release updates"
|
||||
width="480"
|
||||
height="150"
|
||||
loading="lazy"
|
||||
scrolling="no"
|
||||
frameborder="0"
|
||||
></iframe>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.hero {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.hero-bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.hero-bg-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.hero-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
rgba(10, 10, 10, 0.4) 0%,
|
||||
rgba(10, 10, 10, 0.75) 55%,
|
||||
var(--bg) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
max-width: 900px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
/* Badge */
|
||||
.hero-badge {
|
||||
display: inline-block;
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: 0.08em;
|
||||
color: #d4a574;
|
||||
border: 1px solid rgba(212, 165, 116, 0.3);
|
||||
padding: 0.4rem 1.2rem;
|
||||
border-radius: 100px;
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
|
||||
/* Headline */
|
||||
.hero-title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: clamp(2.75rem, 9vw, 7rem);
|
||||
color: #e8e2d8;
|
||||
line-height: 1.05;
|
||||
letter-spacing: -0.025em;
|
||||
margin-bottom: 2rem;
|
||||
white-space: nowrap;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.hero-grad {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, #c9867a, #b8865c, #d4a574);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
/* Tagline */
|
||||
.hero-tagline {
|
||||
font-size: clamp(1rem, 2vw, 1.4rem);
|
||||
color: #8a8578;
|
||||
line-height: 1.7;
|
||||
max-width: 900px;
|
||||
white-space: nowrap;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.hero-problem {
|
||||
color: #c9867a;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hero-value {
|
||||
color: #d4a574;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Pillars */
|
||||
.hero-pillars {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 3rem;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.pillar {
|
||||
font-size: 0.9rem;
|
||||
color: #e8e2d8;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.pillar-dot {
|
||||
color: #d4a574;
|
||||
font-size: 1.2rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* CTAs */
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.hero-cta {
|
||||
background: #d4a574;
|
||||
color: #0a0a0a;
|
||||
padding: 0.85rem 2.5rem;
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
font-size: 1.05rem;
|
||||
text-decoration: none;
|
||||
transition: box-shadow 0.3s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.hero-cta:hover {
|
||||
text-decoration: none;
|
||||
box-shadow: 0 0 30px rgba(212, 165, 116, 0.15), 0 0 60px rgba(212, 165, 116, 0.08);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.hero-demo {
|
||||
border: 1.5px solid #d4a574;
|
||||
color: #d4a574;
|
||||
padding: 0.85rem 2.5rem;
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
font-size: 1.05rem;
|
||||
text-decoration: none;
|
||||
transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.hero-demo:hover {
|
||||
background: rgba(212, 165, 116, 0.1);
|
||||
box-shadow: 0 0 20px rgba(212, 165, 116, 0.15);
|
||||
transform: translateY(-2px);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.hero-discord {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
background: #5865F2;
|
||||
color: #ffffff;
|
||||
padding: 0.85rem 2rem;
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
font-size: 1.05rem;
|
||||
text-decoration: none;
|
||||
transition: box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
|
||||
}
|
||||
|
||||
.hero-discord:hover {
|
||||
background: #4752C4;
|
||||
box-shadow: 0 0 30px rgba(88, 101, 242, 0.25), 0 0 60px rgba(88, 101, 242, 0.12);
|
||||
transform: translateY(-2px);
|
||||
text-decoration: none;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.hero-discord svg {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.hero-secondary {
|
||||
color: #8a8578;
|
||||
font-size: 0.95rem;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.hero-secondary:hover {
|
||||
color: #d4a574;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Trendshift badge — sits between the action row and the enterprise pill */
|
||||
.hero-trendshift {
|
||||
margin-top: 1.75rem;
|
||||
display: inline-block;
|
||||
line-height: 0;
|
||||
transition: transform 0.2s ease, filter 0.2s ease;
|
||||
}
|
||||
|
||||
.hero-trendshift img {
|
||||
display: block;
|
||||
width: 250px;
|
||||
height: 55px;
|
||||
}
|
||||
|
||||
.hero-trendshift:hover {
|
||||
transform: translateY(-2px);
|
||||
filter: drop-shadow(0 0 14px rgba(212, 165, 116, 0.25));
|
||||
}
|
||||
|
||||
/* Enterprise contact — pill that mirrors the hero badge at the top */
|
||||
.hero-enterprise {
|
||||
margin-top: 1.75rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
padding: 0.45rem 1.1rem;
|
||||
border: 1px solid rgba(212, 165, 116, 0.3);
|
||||
border-radius: 100px;
|
||||
background: rgba(212, 165, 116, 0.04);
|
||||
text-decoration: none;
|
||||
transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease,
|
||||
background-color 0.25s ease;
|
||||
}
|
||||
|
||||
.hero-enterprise:hover {
|
||||
border-color: rgba(212, 165, 116, 0.55);
|
||||
background: rgba(212, 165, 116, 0.08);
|
||||
box-shadow: 0 0 24px rgba(212, 165, 116, 0.15);
|
||||
transform: translateY(-1px);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.hero-enterprise-label {
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
color: #d4a574;
|
||||
}
|
||||
|
||||
.hero-enterprise-divider {
|
||||
color: rgba(212, 165, 116, 0.45);
|
||||
font-size: 0.85rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.hero-enterprise-email {
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.82rem;
|
||||
color: #e8e2d8;
|
||||
}
|
||||
|
||||
.hero-enterprise-arrow {
|
||||
color: #d4a574;
|
||||
font-size: 0.95rem;
|
||||
line-height: 1;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.hero-enterprise:hover .hero-enterprise-arrow {
|
||||
transform: translateX(3px);
|
||||
}
|
||||
|
||||
/* Author homepage — pill mirroring Enterprise, sits directly under it */
|
||||
.hero-author {
|
||||
margin-top: 0.6rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
padding: 0.45rem 1.1rem;
|
||||
border: 1px solid rgba(212, 165, 116, 0.3);
|
||||
border-radius: 100px;
|
||||
background: rgba(212, 165, 116, 0.04);
|
||||
text-decoration: none;
|
||||
transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease,
|
||||
background-color 0.25s ease;
|
||||
}
|
||||
|
||||
.hero-author:hover {
|
||||
border-color: rgba(212, 165, 116, 0.55);
|
||||
background: rgba(212, 165, 116, 0.08);
|
||||
box-shadow: 0 0 24px rgba(212, 165, 116, 0.15);
|
||||
transform: translateY(-1px);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.hero-author-label {
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
color: #d4a574;
|
||||
}
|
||||
|
||||
.hero-author-divider {
|
||||
color: rgba(212, 165, 116, 0.45);
|
||||
font-size: 0.85rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.hero-author-handle {
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.82rem;
|
||||
color: #e8e2d8;
|
||||
}
|
||||
|
||||
.hero-author-arrow {
|
||||
color: #d4a574;
|
||||
font-size: 0.95rem;
|
||||
line-height: 1;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.hero-author:hover .hero-author-arrow {
|
||||
transform: translateX(3px);
|
||||
}
|
||||
|
||||
/* Subscribe */
|
||||
.hero-subscribe {
|
||||
margin-top: 2rem;
|
||||
width: 100%;
|
||||
max-width: 480px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-subscribe-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
cursor: pointer;
|
||||
color: #8a8578;
|
||||
font-size: 0.95rem;
|
||||
list-style: none;
|
||||
transition: color 0.2s ease;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.hero-subscribe-toggle::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hero-subscribe-toggle:hover {
|
||||
color: #d4a574;
|
||||
}
|
||||
|
||||
.hero-subscribe-chevron {
|
||||
transition: transform 0.25s ease;
|
||||
}
|
||||
|
||||
.hero-subscribe[open] .hero-subscribe-chevron {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.hero-subscribe-frame {
|
||||
margin-top: 1rem;
|
||||
background: rgba(10, 10, 10, 0.6);
|
||||
border: 1px solid rgba(212, 165, 116, 0.25);
|
||||
border-radius: 10px;
|
||||
padding: 6px 6px 0;
|
||||
overflow: hidden;
|
||||
animation: subscribeFadeIn 0.3s ease-out;
|
||||
}
|
||||
|
||||
.hero-subscribe-hint {
|
||||
font-size: 0.78rem;
|
||||
color: #8a8578;
|
||||
margin: 0.25rem 0 0.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-subscribe-frame iframe {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
@keyframes subscribeFadeIn {
|
||||
from { opacity: 0; transform: translateY(-4px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* Staggered entrance */
|
||||
@keyframes heroIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(24px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.anim {
|
||||
opacity: 0;
|
||||
animation: heroIn 0.8s ease-out forwards;
|
||||
}
|
||||
|
||||
.anim-1 { animation-delay: 0.1s; }
|
||||
.anim-2 { animation-delay: 0.3s; }
|
||||
.anim-3 { animation-delay: 0.55s; }
|
||||
.anim-4 { animation-delay: 0.75s; }
|
||||
.anim-5 { animation-delay: 0.95s; }
|
||||
.anim-6 { animation-delay: 1.15s; }
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 900px) {
|
||||
.hero-tagline {
|
||||
white-space: normal;
|
||||
max-width: 36ch;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.hero { padding: 5rem 1.5rem 3rem; min-height: auto; }
|
||||
.hero-content { gap: 0; }
|
||||
.hero-pillars { gap: 0.5rem; margin-bottom: 2.25rem; }
|
||||
.pillar { font-size: 0.8rem; }
|
||||
.hero-badge {
|
||||
font-size: 0.72rem;
|
||||
padding: 0.35rem 1rem;
|
||||
margin-bottom: 1.75rem;
|
||||
}
|
||||
.hero-title { margin-bottom: 1.5rem; }
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.hero-title {
|
||||
white-space: normal;
|
||||
line-height: 1.02;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
/* Stack the two words on dedicated lines for editorial drama */
|
||||
.hero-title > span { display: block; }
|
||||
}
|
||||
|
||||
@media (max-width: 540px) {
|
||||
.hero-enterprise {
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
padding: 0.6rem 1.25rem;
|
||||
max-width: 100%;
|
||||
}
|
||||
.hero-enterprise-divider { display: none; }
|
||||
.hero-enterprise-email { font-size: 0.78rem; }
|
||||
.hero-author {
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
padding: 0.6rem 1.25rem;
|
||||
max-width: 100%;
|
||||
}
|
||||
.hero-author-divider { display: none; }
|
||||
.hero-author-handle { font-size: 0.78rem; }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.hero { padding: 4rem 1.25rem 2.25rem; }
|
||||
.hero-actions {
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
width: 100%;
|
||||
max-width: 320px;
|
||||
}
|
||||
.hero-cta,
|
||||
.hero-demo,
|
||||
.hero-discord {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 0.85rem 1.5rem;
|
||||
justify-content: center;
|
||||
}
|
||||
.hero-pillars { flex-direction: column; gap: 0.4rem; }
|
||||
.pillar-dot { display: none; }
|
||||
.hero-subscribe { margin-top: 1.5rem; }
|
||||
.hero-subscribe-toggle { font-size: 0.85rem; }
|
||||
.hero-subscribe-frame iframe { height: 130px; }
|
||||
}
|
||||
</style>
|
||||
144
Understand-Anything-main/homepage/src/components/Install.astro
Normal file
144
Understand-Anything-main/homepage/src/components/Install.astro
Normal file
@@ -0,0 +1,144 @@
|
||||
<section class="install" id="install">
|
||||
<div class="install-inner reveal">
|
||||
<h2 class="install-title">Get started in <span class="grad">30 seconds</span>.</h2>
|
||||
<div class="install-code">
|
||||
<div class="install-code-header">
|
||||
<span class="install-code-dot"></span>
|
||||
<span class="install-code-label">Claude Code</span>
|
||||
<button class="install-copy" id="copy-btn" type="button" aria-label="Copy to clipboard">
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
|
||||
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
|
||||
</svg>
|
||||
<span class="install-copy-label">Copy</span>
|
||||
</button>
|
||||
</div>
|
||||
<pre id="install-snippet"><code><span class="cmd">/plugin marketplace add</span> Lum1104/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>, <strong>Codex</strong>, <strong>OpenCode</strong>, <strong>Gemini CLI</strong>, and more.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
const btn = document.getElementById('copy-btn');
|
||||
const snippet = document.getElementById('install-snippet');
|
||||
if (btn && snippet) {
|
||||
btn.addEventListener('click', async () => {
|
||||
const text = snippet.textContent || '';
|
||||
await navigator.clipboard.writeText(text.trim());
|
||||
const label = btn.querySelector('.install-copy-label');
|
||||
if (label) {
|
||||
label.textContent = 'Copied!';
|
||||
setTimeout(() => { label.textContent = 'Copy'; }, 2000);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.install {
|
||||
padding: 8rem 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.install-inner {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.install-title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: clamp(1.5rem, 3vw, 2.25rem);
|
||||
color: var(--text);
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
|
||||
.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);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.install-copy {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
background: none;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.3rem 0.6rem;
|
||||
color: var(--text-muted);
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.75rem;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s, border-color 0.2s;
|
||||
}
|
||||
|
||||
.install-copy:hover {
|
||||
color: var(--accent);
|
||||
border-color: rgba(212, 165, 116, 0.3);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.install { padding: 4.5rem 1.25rem; }
|
||||
.install-title { margin-bottom: 1.75rem; }
|
||||
pre { padding: 1rem 1.1rem; }
|
||||
code { font-size: 0.82rem; line-height: 1.7; }
|
||||
.install-code-header { padding: 0.65rem 0.85rem; }
|
||||
.install-code-label { font-size: 0.72rem; }
|
||||
.install-note { font-size: 0.82rem; line-height: 1.55; }
|
||||
}
|
||||
</style>
|
||||
107
Understand-Anything-main/homepage/src/components/Nav.astro
Normal file
107
Understand-Anything-main/homepage/src/components/Nav.astro
Normal file
@@ -0,0 +1,107 @@
|
||||
---
|
||||
const githubUrl = 'https://github.com/Lum1104/Understand-Anything';
|
||||
---
|
||||
|
||||
<nav class="nav" id="nav">
|
||||
<div class="nav-inner">
|
||||
<a href="/" 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>
|
||||
220
Understand-Anything-main/homepage/src/components/Problem.astro
Normal file
220
Understand-Anything-main/homepage/src/components/Problem.astro
Normal file
@@ -0,0 +1,220 @@
|
||||
<section class="problem">
|
||||
<h2 class="problem-heading reveal">
|
||||
Most code graphs show you <span style="display:inline;background:linear-gradient(135deg,#c9867a,#b8865c);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;">structure</span>.<br />
|
||||
Files, functions, edges. A map with no legend.
|
||||
</h2>
|
||||
<p class="problem-promise reveal">
|
||||
We show you <span style="display:inline;background:linear-gradient(135deg,#b8865c,#d4a574);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;">meaning</span> —
|
||||
how your code maps to real business domains, processes, and flows.
|
||||
</p>
|
||||
|
||||
<div class="problem-compare reveal reveal-delay-1">
|
||||
<div class="problem-card problem-card--them">
|
||||
<div class="problem-card-label">Typical code graph</div>
|
||||
<div class="problem-card-visual">
|
||||
<svg viewBox="0 0 320 200" class="hairball" aria-label="A tangled, unreadable graph of dots and lines">
|
||||
<!-- scattered nodes -->
|
||||
<circle cx="60" cy="40" r="6" /><circle cx="140" cy="25" r="8" />
|
||||
<circle cx="220" cy="50" r="5" /><circle cx="280" cy="30" r="7" />
|
||||
<circle cx="40" cy="100" r="7" /><circle cx="100" cy="80" r="5" />
|
||||
<circle cx="170" cy="95" r="9" /><circle cx="250" cy="90" r="6" />
|
||||
<circle cx="300" cy="110" r="5" /><circle cx="80" cy="150" r="6" />
|
||||
<circle cx="150" cy="160" r="7" /><circle cx="210" cy="145" r="5" />
|
||||
<circle cx="270" cy="165" r="8" /><circle cx="120" cy="120" r="4" />
|
||||
<circle cx="190" cy="130" r="6" /><circle cx="50" cy="180" r="5" />
|
||||
<circle cx="160" cy="185" r="4" /><circle cx="240" cy="180" r="6" />
|
||||
<!-- tangled edges -->
|
||||
<line x1="60" y1="40" x2="140" y2="25" /><line x1="140" y1="25" x2="220" y2="50" />
|
||||
<line x1="220" y1="50" x2="280" y2="30" /><line x1="40" y1="100" x2="170" y2="95" />
|
||||
<line x1="100" y1="80" x2="250" y2="90" /><line x1="170" y1="95" x2="300" y2="110" />
|
||||
<line x1="60" y1="40" x2="100" y2="80" /><line x1="140" y1="25" x2="170" y2="95" />
|
||||
<line x1="80" y1="150" x2="150" y2="160" /><line x1="150" y1="160" x2="270" y2="165" />
|
||||
<line x1="120" y1="120" x2="190" y2="130" /><line x1="190" y1="130" x2="210" y2="145" />
|
||||
<line x1="40" y1="100" x2="80" y2="150" /><line x1="250" y1="90" x2="270" y2="165" />
|
||||
<line x1="100" y1="80" x2="120" y2="120" /><line x1="170" y1="95" x2="150" y2="160" />
|
||||
<line x1="280" y1="30" x2="300" y2="110" /><line x1="210" y1="145" x2="240" y2="180" />
|
||||
<line x1="50" y1="180" x2="160" y2="185" /><line x1="160" y1="185" x2="240" y2="180" />
|
||||
<line x1="60" y1="40" x2="250" y2="90" /><line x1="40" y1="100" x2="210" y2="145" />
|
||||
<line x1="120" y1="120" x2="270" y2="165" /><line x1="80" y1="150" x2="190" y2="130" />
|
||||
</svg>
|
||||
</div>
|
||||
<p class="problem-card-caption">23 nodes. 34 edges. Now what?</p>
|
||||
</div>
|
||||
|
||||
<div class="problem-card problem-card--us">
|
||||
<div class="problem-card-label">Understand Anything</div>
|
||||
<div class="problem-card-visual">
|
||||
<div class="domain-preview">
|
||||
<div class="domain-group">
|
||||
<span class="domain-badge">Authentication</span>
|
||||
<span class="domain-item">login()</span>
|
||||
<span class="domain-item">verify_token()</span>
|
||||
<span class="domain-item">session management</span>
|
||||
</div>
|
||||
<div class="domain-group">
|
||||
<span class="domain-badge">User Lifecycle</span>
|
||||
<span class="domain-item">create_user()</span>
|
||||
<span class="domain-item">get_profile()</span>
|
||||
<span class="domain-item">permissions</span>
|
||||
</div>
|
||||
<div class="domain-group">
|
||||
<span class="domain-badge">Data Layer</span>
|
||||
<span class="domain-item">db_connect()</span>
|
||||
<span class="domain-item">migrations</span>
|
||||
<span class="domain-item">models</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="problem-card-caption">Auth flow. Session management. Now you understand.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.problem {
|
||||
padding: 8rem 2rem 10rem;
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.problem-heading {
|
||||
font-family: var(--font-heading);
|
||||
font-size: clamp(1.5rem, 4vw, 2.5rem);
|
||||
color: var(--text-muted);
|
||||
line-height: 1.4;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.problem-promise {
|
||||
font-family: var(--font-heading);
|
||||
font-size: clamp(1.3rem, 3.5vw, 2.2rem);
|
||||
color: var(--text);
|
||||
line-height: 1.4;
|
||||
max-width: 700px;
|
||||
margin: 0 auto 4rem;
|
||||
}
|
||||
|
||||
.grad-warm {
|
||||
background: linear-gradient(135deg, var(--grad-mid), var(--grad-warm));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.problem-compare {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 2rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.problem-card {
|
||||
border-radius: 16px;
|
||||
padding: 2rem;
|
||||
border: 1px solid var(--border);
|
||||
transition: border-color 0.3s ease;
|
||||
}
|
||||
|
||||
.problem-card--them {
|
||||
background: var(--surface);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.problem-card--us {
|
||||
background: var(--surface);
|
||||
border-color: rgba(212, 165, 116, 0.2);
|
||||
box-shadow: 0 0 40px var(--accent-glow);
|
||||
}
|
||||
|
||||
.problem-card-label {
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.problem-card--us .problem-card-label {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.problem-card-visual {
|
||||
min-height: 200px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
/* Hairball SVG */
|
||||
.hairball {
|
||||
width: 100%;
|
||||
max-width: 320px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.hairball circle {
|
||||
fill: var(--text-muted);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.hairball line {
|
||||
stroke: var(--text-muted);
|
||||
stroke-width: 0.8;
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
/* Domain preview */
|
||||
.domain-preview {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.domain-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.domain-badge {
|
||||
background: linear-gradient(135deg, rgba(201, 134, 122, 0.15), rgba(212, 165, 116, 0.15));
|
||||
border: 1px solid rgba(212, 165, 116, 0.3);
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
font-size: 0.85rem;
|
||||
padding: 0.4rem 0.85rem;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.domain-item {
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
padding: 0.3rem 0.6rem;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.problem-card-caption {
|
||||
font-size: 0.95rem;
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.problem-card--us .problem-card-caption {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.problem { padding: 4rem 1rem 6rem; }
|
||||
.problem-compare {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
204
Understand-Anything-main/homepage/src/components/Showcase.astro
Normal file
204
Understand-Anything-main/homepage/src/components/Showcase.astro
Normal file
@@ -0,0 +1,204 @@
|
||||
---
|
||||
const base = import.meta.env.BASE_URL; /* "/" after custom domain migration */
|
||||
const demoUrl = `${base.endsWith('/') ? base : base + '/'}demo/index.html`;
|
||||
---
|
||||
|
||||
<!-- Live Demo -->
|
||||
<section class="showcase showcase--demo">
|
||||
<span class="showcase-label showcase-label--accent reveal">Live Demo</span>
|
||||
<h2 class="showcase-heading reveal">
|
||||
See what your code is <span style="display:inline;background:linear-gradient(135deg,#b8865c,#d4a574);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;">really</span> doing
|
||||
</h2>
|
||||
<p class="showcase-desc showcase-desc--wide reveal">
|
||||
Explore every file, function, and dependency — or switch to <span style="display:inline;background:linear-gradient(135deg,#b8865c,#d4a574);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;">business
|
||||
knowledge</span> mode and watch your code transform into authentication flows,
|
||||
payment pipelines, and user lifecycles. Not just a map.
|
||||
<strong>The story behind your codebase, fully interactive.</strong>
|
||||
</p>
|
||||
<div class="showcase-frame showcase-frame--featured reveal reveal-delay-1">
|
||||
<div class="showcase-titlebar">
|
||||
<span class="dot red"></span>
|
||||
<span class="dot yellow"></span>
|
||||
<span class="dot green"></span>
|
||||
<span class="showcase-titlebar-text">Interactive Dashboard</span>
|
||||
</div>
|
||||
<div class="showcase-iframe-wrap">
|
||||
<iframe
|
||||
src={demoUrl}
|
||||
title="Understand Anything — live demo"
|
||||
class="showcase-iframe"
|
||||
loading="lazy"
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<div class="showcase-features reveal reveal-delay-2">
|
||||
<span class="showcase-pill">Hierarchical drill-down</span>
|
||||
<span class="showcase-pill">Fuzzy search</span>
|
||||
<span class="showcase-pill">Filter by type</span>
|
||||
<span class="showcase-pill">26+ file types</span>
|
||||
<span class="showcase-pill showcase-pill--accent">Domain mapping</span>
|
||||
<span class="showcase-pill showcase-pill--accent">Business flows</span>
|
||||
<span class="showcase-pill showcase-pill--accent">Process steps</span>
|
||||
<span class="showcase-pill showcase-pill--accent">AI-generated tours</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.showcase {
|
||||
padding: 6rem 2rem 4rem;
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.showcase--demo {
|
||||
padding: 8rem 2rem 6rem;
|
||||
max-width: 1400px;
|
||||
}
|
||||
|
||||
/* Section label */
|
||||
.showcase-label {
|
||||
display: inline-block;
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
border: 1px solid var(--border);
|
||||
padding: 0.3rem 1rem;
|
||||
border-radius: 100px;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.showcase-label--accent {
|
||||
color: #d4a574;
|
||||
border-color: rgba(212, 165, 116, 0.3);
|
||||
}
|
||||
|
||||
/* Heading */
|
||||
.showcase-heading {
|
||||
font-family: var(--font-heading);
|
||||
font-size: clamp(1.75rem, 4.5vw, 3rem);
|
||||
color: var(--text);
|
||||
margin-bottom: 1.5rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
/* Description */
|
||||
.showcase-desc {
|
||||
font-size: clamp(0.95rem, 1.5vw, 1.1rem);
|
||||
color: var(--text-muted);
|
||||
max-width: 600px;
|
||||
margin: 0 auto 3rem;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.showcase-desc--wide {
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.showcase-desc strong {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* macOS frame */
|
||||
.showcase-frame {
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.showcase-frame--featured {
|
||||
border-color: rgba(212, 165, 116, 0.2);
|
||||
box-shadow:
|
||||
0 0 60px rgba(212, 165, 116, 0.1),
|
||||
0 30px 60px 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);
|
||||
}
|
||||
|
||||
.showcase-titlebar-text {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-muted);
|
||||
margin-right: 30px; /* offset for dots */
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.dot.red { background: #ff5f57; }
|
||||
.dot.yellow { background: #ffbd2e; }
|
||||
.dot.green { background: #28c840; }
|
||||
|
||||
.showcase-media {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Iframe embed */
|
||||
.showcase-iframe-wrap {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
background: #0a0a0a;
|
||||
}
|
||||
|
||||
.showcase-iframe {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* Feature pills below frame */
|
||||
.showcase-features {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.75rem;
|
||||
margin-top: 2rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.showcase-pill {
|
||||
font-family: var(--font-code);
|
||||
font-size: 0.8rem;
|
||||
color: #8a8578;
|
||||
padding: 0.4rem 1rem;
|
||||
border: 1px solid rgba(138, 133, 120, 0.25);
|
||||
border-radius: 100px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
|
||||
.showcase-pill--accent {
|
||||
color: #d4a574;
|
||||
border-color: rgba(212, 165, 116, 0.3);
|
||||
background: rgba(212, 165, 116, 0.06);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.showcase { padding: 4rem 1rem 2rem; }
|
||||
.showcase--demo { padding: 4rem 1rem 4rem; }
|
||||
.showcase-features { gap: 0.5rem; }
|
||||
.showcase-pill { font-size: 0.7rem; padding: 0.25rem 0.65rem; }
|
||||
.showcase-iframe-wrap { aspect-ratio: 4 / 3; }
|
||||
}
|
||||
</style>
|
||||
25
Understand-Anything-main/homepage/src/layouts/Layout.astro
Normal file
25
Understand-Anything-main/homepage/src/layouts/Layout.astro
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
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="/favicon.svg" />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style is:global>
|
||||
@import '../styles/global.css';
|
||||
</style>
|
||||
38
Understand-Anything-main/homepage/src/pages/index.astro
Normal file
38
Understand-Anything-main/homepage/src/pages/index.astro
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
import Layout from '../layouts/Layout.astro';
|
||||
import Nav from '../components/Nav.astro';
|
||||
import Hero from '../components/Hero.astro';
|
||||
import Problem from '../components/Problem.astro';
|
||||
import Showcase from '../components/Showcase.astro';
|
||||
import CommunityVideo from '../components/CommunityVideo.astro';
|
||||
import Features from '../components/Features.astro';
|
||||
import Install from '../components/Install.astro';
|
||||
import Footer from '../components/Footer.astro';
|
||||
---
|
||||
|
||||
<Layout title="Understand Anything — Graphs that teach the codebase">
|
||||
<Nav />
|
||||
<Hero />
|
||||
<Problem />
|
||||
<Showcase />
|
||||
<CommunityVideo />
|
||||
<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>
|
||||
126
Understand-Anything-main/homepage/src/styles/global.css
Normal file
126
Understand-Anything-main/homepage/src/styles/global.css
Normal file
@@ -0,0 +1,126 @@
|
||||
/* Font declarations — self-hosted, no external CDN dependency */
|
||||
@font-face {
|
||||
font-family: 'DM Serif Display';
|
||||
src: url('/fonts/DMSerifDisplay-Regular.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('/fonts/Inter-Regular.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'JetBrains Mono';
|
||||
src: url('/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;
|
||||
|
||||
/* Gradient sweep: rose gold → gold */
|
||||
--grad-cool: #c9867a;
|
||||
--grad-mid: #b8865c;
|
||||
--grad-warm: #d4a574;
|
||||
--gradient: linear-gradient(135deg, var(--grad-cool), var(--grad-mid), var(--grad-warm));
|
||||
|
||||
--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; }
|
||||
|
||||
/* Gradient text utility */
|
||||
.grad {
|
||||
background: var(--gradient);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
5
Understand-Anything-main/homepage/tsconfig.json
Normal file
5
Understand-Anything-main/homepage/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "astro/tsconfigs/strict",
|
||||
"include": [".astro/types.d.ts", "**/*"],
|
||||
"exclude": ["dist"]
|
||||
}
|
||||
Reference in New Issue
Block a user