Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# AniMathIO website

Marketing site for [AniMathIO](https://github.com/AniMathIO/AniMathIO) 2 (Vite, React, Tailwind CSS 4).
The look follows the AniMathIO 2 editor: tokens in `src/index.css` mirror `docs/design.md` in the main repository,
icons are [Lucide](https://lucide.dev), type is Inter and JetBrains Mono.
The look follows the AniMathIO 2.3 editor: tokens in `src/index.css` mirror `docs/design.md` and
`apps/animathio/src/style/tokens.rs` in the main repository (neutral dark surfaces, the logo cyan as the only accent,
radii 8/6/4, sentence case, no violet or gradient accent). Components use the tokens, never colour literals. Icons are
[Lucide](https://lucide.dev), type is Inter, with JetBrains Mono for code only.

```bash
npm ci
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="AniMathIO 2" />
<meta name="theme-color" content="#0b0d12" />
<meta name="theme-color" content="#0e0f11" />
<meta
property="og:image:alt"
content="AniMathIO 2 is a native Rust video editor for math animation, with LaTeX and graph plugins, local subtitles, autocut, reframing, a Premiere-style keymap, an MCP server and a CLI."
Expand Down
Binary file removed public/img/editor/editor-auto-reframe.webp
Binary file not shown.
Binary file modified public/img/editor/editor-autocut.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/editor/editor-duck.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/img/editor/editor-export-queue.webp
Binary file not shown.
Binary file removed public/img/editor/editor-export.webp
Binary file not shown.
Binary file modified public/img/editor/editor-main.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/img/editor/editor-markers.webp
Binary file not shown.
Binary file removed public/img/editor/editor-math-dialog.webp
Binary file not shown.
Binary file modified public/img/editor/editor-math-panel.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/img/editor/editor-media.webp
Binary file not shown.
Binary file removed public/img/editor/editor-start.webp
Binary file not shown.
Binary file modified public/img/editor/editor-timeline.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/img/editor/editor-titles.webp
Binary file not shown.
Binary file removed public/img/editor/editor-viewer.webp
Binary file not shown.
Binary file removed public/img/editor/subtitles.webp
Binary file not shown.
8 changes: 4 additions & 4 deletions src/components/showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const label = (a: Aspect) => a.replace('x', ':')
export const ShowcaseMedia = ({ video, aspect }: { video: Showcase; aspect: Aspect }) => {
const file = showcaseFile(video.slug, aspect)
return (
<div className="flex items-center justify-center bg-[#090b10] p-3">
<div className="flex items-center justify-center bg-stage p-3">
{video.published ? (
<video
key={file}
Expand Down Expand Up @@ -42,15 +42,15 @@ export const ShowcaseMedia = ({ video, aspect }: { video: Showcase; aspect: Aspe

/** Desktop shows 16:9 by default; the toggle offers 9:16 at every width, for phones in particular. */
export const AspectToggle = ({ value, onChange }: { value: Aspect; onChange: (a: Aspect) => void }) => (
<div role="group" aria-label="Aspect ratio" className="inline-flex rounded-[8px] border border-line bg-raised p-0.5">
<div role="group" aria-label="Aspect ratio" className="inline-flex rounded-control border border-line bg-raised p-0.5">
{ASPECTS.map((a) => (
<button
key={a}
type="button"
aria-pressed={value === a}
onClick={() => onChange(a)}
className={`rounded-[6px] px-3 py-1 font-mono text-xs transition-colors ${
value === a ? 'bg-hover text-fg' : 'text-fg-2 hover:text-fg'
className={`rounded-control px-3 py-1 text-xs font-medium tabular-nums transition-colors ${
value === a ? 'bg-accent/16 text-fg' : 'text-fg-2 hover:text-fg'
}`}
>
{label(a)}
Expand Down
6 changes: 3 additions & 3 deletions src/components/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Container = ({ children, className = '' }: { children: ReactNode; c
)

export const Eyebrow = ({ children }: { children: ReactNode }) => (
<p className="font-mono text-xs font-medium uppercase tracking-[0.14em] text-accent">{children}</p>
<p className="text-sm font-medium text-fg-2">{children}</p>
)

export const SectionHeading = ({
Expand All @@ -26,7 +26,7 @@ export const SectionHeading = ({
)

export const IconBadge = ({ icon: Icon }: { icon: LucideIcon }) => (
<span className="inline-flex h-10 w-10 items-center justify-center rounded-[8px] border border-line bg-raised text-accent">
<span className="inline-flex h-10 w-10 items-center justify-center rounded-card border border-line bg-raised text-accent">
<Icon size={20} strokeWidth={1.75} aria-hidden="true" />
</span>
)
Expand All @@ -47,7 +47,7 @@ export const Shot = ({
priority?: boolean
className?: string
}) => (
<figure className={`panel overflow-hidden shadow-[0_24px_60px_-20px_rgba(0,0,0,0.7)] ${className}`}>
<figure className={`panel overflow-hidden ${className}`}>
<img
src={src}
alt={alt}
Expand Down
10 changes: 8 additions & 2 deletions src/data/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ import {
Package,
Monitor,
Laptop,
Mic,
} from 'lucide-react'

export const VERSION = '2.2.0'
export const VERSION = '2.3.0'
export const REPO = 'https://github.com/AniMathIO/AniMathIO'
export const RELEASES = `${REPO}/releases`
export const DOCS = 'https://docs.animathio.com'
Expand Down Expand Up @@ -121,6 +122,11 @@ export const automation: Feature[] = [
title: 'Denoise',
body: 'Spectral gating that learns the noise profile from a selected range or the quietest frames. Deterministic and undoable.',
},
{
icon: Mic,
title: 'Record audio',
body: 'Record a voice-over from any input device straight into the Media library, with a live level meter, and optionally drop it on the timeline at the playhead.',
},
]

export const mathObjects = [
Expand Down Expand Up @@ -167,7 +173,7 @@ export const pillars: Feature[] = [
{
icon: Sigma,
title: 'Math objects',
body: 'Eleven editable objects with a live-preview dialog: LaTeX with inline colours and a Write on reveal, plots, vectors, polygons, grids and more.',
body: 'Eleven editable objects with a live-preview dialog: LaTeX with inline colours, a Write on reveal and optional describe-it-in-words authoring with your own or a local model, plus plots, vectors, polygons, grids and more.',
},
{
icon: Bot,
Expand Down
123 changes: 82 additions & 41 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,58 @@
@import "tailwindcss";

/*
* Design tokens mirror the AniMathIO 2 editor (docs/design.md and
* apps/animathio/src/style.rs in the main repository): calm dark surfaces,
* one violet-to-cyan accent, Inter for text and JetBrains Mono for numbers.
* Design tokens mirror the AniMathIO 2.3 editor (docs/design.md and
* apps/animathio/src/style/tokens.rs in the main repository): near-neutral
* dark surfaces, the logo cyan as the single accent, the logo red for the
* playhead only, sentence case, Inter for text and JetBrains Mono for code.
* There is one theme, dark, like the editor. Components read these tokens and
* never carry a colour literal.
*/
@theme {
--color-bg: #0b0d12;
--color-panel: #11141b;
--color-raised: #171b24;
--color-hover: #1e2330;
--color-line: #262c3a;
--color-fg: #e6e9f0;
--color-fg-2: #9aa3b5;
--color-fg-3: #5d6578;
--color-accent: #8b7bff;
--color-accent-from: #7c5cff;
--color-accent-to: #22d3ee;
--color-playhead: #ff4d6d;
--color-snap: #facc15;
--color-clip-video: #3b82f6;
--color-clip-image: #14b8a6;
--color-clip-audio: #22c55e;
--color-clip-text: #a855f7;
--color-clip-shape: #f59e0b;
--color-clip-latex: #ec4899;
--color-clip-graph: #06b6d4;
/* Surfaces and lines (neutral greys, saturation under 6%). */
--color-bg: #0e0f11;
--color-panel: #17181b;
--color-raised: #1f2024;
--color-hover: #27292e;
--color-pressed: #2f3237;
--color-stage: #141416;
--color-line: #2c2e33;
--color-line-strong: #3c3f46;

/* Text. fg-3 is the editor's muted text and reaches AA on every surface. */
--color-fg: #e8e9eb;
--color-fg-2: #a9acb3;
--color-fg-3: #969aa2;
--color-fg-disabled: #6b6f77;

/* Accent (the logo cyan) and semantic colours. */
--color-accent: #0cc0df;
--color-accent-hover: #3dd0ea;
--color-accent-pressed: #09a3be;
--color-on-accent: #0e0f11;
--color-success: #3fb96f;
--color-warning: #f0b429;
--color-danger: #f26b6f;
--color-playhead: #ff3131;

/* Clip colours by kind. */
--color-clip-video: #4c7bd9;
--color-clip-image: #2e9e8f;
--color-clip-audio: #3fa866;
--color-clip-text: #a15cc9;
--color-clip-latex: #d35a8e;
--color-clip-shape: #d69a2d;
--color-clip-graph: #8db23a;
--color-clip-plugin: #6b7785;

--font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
--font-mono: "JetBrains Mono Variable", ui-monospace, "SFMono-Regular", Menlo, monospace;
--radius-panel: 10px;

/* Radii shrink with depth: overlay > panel > card > control. */
--radius-overlay: 10px;
--radius-panel: 8px;
--radius-card: 6px;
--radius-control: 4px;
}

@layer base {
Expand All @@ -47,7 +70,7 @@
-webkit-font-smoothing: antialiased;
}
::selection {
background: color-mix(in srgb, var(--color-accent) 45%, transparent);
background: color-mix(in srgb, var(--color-accent) 32%, transparent);
}
:focus-visible {
outline: 2px solid var(--color-accent);
Expand All @@ -67,39 +90,57 @@
}

@layer components {
/* The primary-action gradient from the editor: Export, Create project. */
/* The primary action: solid accent with dark text, like Export in the editor. */
.btn-primary {
background-image: linear-gradient(135deg, var(--color-accent-from), var(--color-accent-to));
color: #0b0d12;
background-color: var(--color-accent);
color: var(--color-on-accent);
font-weight: 600;
transition: filter 150ms ease-out, transform 150ms ease-out;
transition: background-color 120ms ease-out;
}
.btn-primary:hover {
filter: brightness(1.1);
background-color: var(--color-accent-hover);
}
.btn-primary:active {
transform: translateY(1px);
background-color: var(--color-accent-pressed);
}
.text-gradient {
background-image: linear-gradient(120deg, var(--color-accent), var(--color-accent-to));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
/* The secondary action: raised surface with the strong outline. */
.btn-secondary {
background-color: var(--color-raised);
border: 1px solid var(--color-line-strong);
color: var(--color-fg);
font-weight: 500;
transition: background-color 120ms ease-out;
}
.btn-secondary:hover {
background-color: var(--color-hover);
}
.btn-secondary:active {
background-color: var(--color-pressed);
}
.panel {
background: var(--color-panel);
border: 1px solid var(--color-line);
border-radius: var(--radius-panel);
}
/* The one decorative element, from the logo and the launcher: fine graph paper. */
.graph-paper {
background-image:
linear-gradient(to right, var(--color-line) 1px, transparent 1px),
linear-gradient(to bottom, var(--color-line) 1px, transparent 1px);
background-size: 28px 28px;
background-position: center top;
mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 0%, transparent 72%);
opacity: 0.9;
}
.kbd {
font-family: var(--font-mono);
font-size: 0.8125rem;
font-family: var(--font-sans);
font-size: 0.75rem;
font-weight: 500;
line-height: 1;
padding: 0.3rem 0.5rem;
border-radius: 5px;
border-radius: var(--radius-control);
background: var(--color-raised);
border: 1px solid var(--color-line);
border-bottom-width: 2px;
border: 1px solid var(--color-line-strong);
color: var(--color-fg);
}
}
2 changes: 1 addition & 1 deletion src/pages/Examples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const Examples: React.FC = () => (
<div className="mt-6 grid gap-4 md:grid-cols-2">
{legacyVideos.map((v) => (
<article key={v.url} className="panel overflow-hidden">
<video controls preload="metadata" muted className="aspect-video w-full bg-[#090b10]">
<video controls preload="metadata" muted className="aspect-video w-full bg-stage">
<source src={v.url} type="video/webm" />
</video>
<div className="flex items-start justify-between gap-4 p-5">
Expand Down
Loading
Loading