⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat: implement FadeIn component for smooth animations in landing pages
Andrej9fcaaac58c5d
diff --git a/apps/site/components/landing/fade-in.tsx b/apps/site/components/landing/fade-in.tsxnew file mode 100644index 000000000..0306f0f8e--- /dev/null+++ b/apps/site/components/landing/fade-in.tsx@@ -0,0 +1,78 @@+"use client";++import { useEffect, useRef, useState } from "react";+import { cn } from "@/lib/utils";++type FadeInProps = {+ children: React.ReactNode;+ className?: string;+ delay?: number;+ distance?: number;+ threshold?: number;+};++export function FadeIn({+ children,+ className,+ delay = 0,+ distance = 20,+ threshold = 0.15,+}: FadeInProps) {+ const ref = useRef<HTMLDivElement>(null);+ // "ssr" = no JS yet (fully visible for crawlers), "hidden" = JS loaded but+ // not in view, "visible" = animated in+ const [phase, setPhase] = useState<"ssr" | "hidden" | "visible">("ssr");++ useEffect(() => {+ const el = ref.current;+ if (!el) return;++ // After hydration: hide first (no transition), then set up the observer.+ // The 50ms gap ensures the browser commits the hidden paint before we+ // start observing — otherwise elements already in view skip the animation.+ setPhase("hidden");++ const timer = setTimeout(() => {+ const observer = new IntersectionObserver(+ ([entry]) => {+ if (entry.isIntersecting) {+ setPhase("visible");+ observer.disconnect();+ }+ },+ { threshold },+ );+ observer.observe(el);+ return () => observer.disconnect();+ }, 50);++ return () => clearTimeout(timer);+ }, [threshold]);++ const isHidden = phase === "hidden";++ return (+ <div+ ref={ref}+ className={cn(className)}+ style={+ phase === "ssr"+ ? // SSR / no-JS: fully visible — crawlers see normal content+ undefined+ : {+ opacity: isHidden ? 0 : 1,+ filter: isHidden ? "blur(6px)" : "blur(0px)",+ transform: isHidden+ ? `translateY(${distance}px)`+ : "translateY(0px)",+ transition: isHidden+ ? "none"+ : `opacity 0.65s ease ${delay}ms, filter 0.65s ease ${delay}ms, transform 0.65s ease ${delay}ms`,+ willChange: isHidden ? "opacity, filter, transform" : "auto",+ }+ }+ >+ {children}+ </div>+ );+}diff --git a/apps/site/components/landing/features.tsx b/apps/site/components/landing/features.tsxindex 32369ab94..c576f21f6 100644--- a/apps/site/components/landing/features.tsx+++ b/apps/site/components/landing/features.tsx@@ -1,3 +1,5 @@+import { FadeIn } from "@/components/landing/fade-in";+export function Features() {return (<section@@ -5,77 +7,81 @@ export function Features() {className="relative bg-sidebar/55 px-6 py-16 md:py-20"><div className="mx-auto w-full max-w-6xl">- <div className="rounded-2xl border border-border/70 bg-card/70 p-2">- <div className="grid grid-cols-1 gap-2 lg:grid-cols-12">- <article className="rounded-xl border border-border/70 bg-card p-6 lg:col-span-5 lg:p-8">- <p className="font-medium text-muted-foreground text-sm">- Core workflows- </p>- <h2 className="mt-4 text-3xl font-semibold leading-tight md:text-4xl">- Minimal surface area. Maximum execution clarity.- </h2>- <p className="mt-4 max-w-xl text-muted-foreground text-base leading-relaxed">- Kaneo keeps planning operational: less dashboard theater, more- visible ownership and throughput.- </p>- <div className="mt-6 rounded-xl border border-border/60 bg-muted/30 p-4">- <h3 className="text-sm font-medium">- Board and list, same source of truth- </h3>- <p className="mt-2 text-muted-foreground text-sm leading-relaxed">- Plan in list view, execute in board view, and keep statuses,- priorities, and labels in sync.+ <FadeIn>+ <div className="rounded-2xl border border-border/70 bg-card/70 p-2">+ <div className="grid grid-cols-1 gap-2 lg:grid-cols-12">+ <article className="rounded-xl border border-border/70 bg-card p-6 lg:col-span-5 lg:p-8">+ <p className="font-medium text-muted-foreground text-sm">+ Core workflows</p>- </div>- </article>-- <div className="grid grid-cols-1 gap-2 lg:col-span-7 sm:grid-cols-2">- <article className="rounded-xl border border-border/70 bg-card p-6">- <h3 className="text-sm font-medium">- Planning that stays focused- </h3>- <p className="mt-2 text-muted-foreground text-sm leading-relaxed">- Assign owners, due dates, and priorities without introducing- heavy process.+ <h2 className="mt-4 text-3xl font-semibold leading-tight md:text-4xl">+ Minimal surface area. Maximum execution clarity.+ </h2>+ <p className="mt-4 max-w-xl text-muted-foreground text-base leading-relaxed">+ Kaneo keeps planning operational: less dashboard theater, more+ visible ownership and throughput.</p>+ <div className="mt-6 rounded-xl border border-border/60 bg-muted/30 p-4">+ <h3 className="text-sm font-medium">+ Board and list, same source of truth+ </h3>+ <p className="mt-2 text-muted-foreground text-sm leading-relaxed">+ Plan in list view, execute in board view, and keep statuses,+ priorities, and labels in sync.+ </p>+ </div></article>- <article className="rounded-xl border border-border/70 bg-card p-6">- <h3 className="text-sm font-medium">Labels and priorities</h3>- <p className="mt-2 text-muted-foreground text-sm leading-relaxed">- Organize initiatives with labels and prioritize work clearly- across backlog and active scope.- </p>- </article>+ <div className="grid grid-cols-1 gap-2 lg:col-span-7 sm:grid-cols-2">+ <article className="rounded-xl border border-border/70 bg-card p-6">+ <h3 className="text-sm font-medium">+ Planning that stays focused+ </h3>+ <p className="mt-2 text-muted-foreground text-sm leading-relaxed">+ Assign owners, due dates, and priorities without introducing+ heavy process.+ </p>+ </article>- <article className="rounded-xl border border-border/70 bg-card p-6 sm:col-span-2">- <h3 className="text-sm font-medium">- Native GitHub integration- </h3>- <p className="mt-2 text-muted-foreground text-sm leading-relaxed">- Sync issues and keep product planning aligned with development- execution.- </p>- </article>+ <article className="rounded-xl border border-border/70 bg-card p-6">+ <h3 className="text-sm font-medium">Labels and priorities</h3>+ <p className="mt-2 text-muted-foreground text-sm leading-relaxed">+ Organize initiatives with labels and prioritize work clearly+ across backlog and active scope.+ </p>+ </article>- <article className="rounded-xl border border-border/70 bg-card p-6">- <h3 className="text-sm font-medium">Privacy first</h3>- <p className="mt-2 text-muted-foreground text-sm leading-relaxed">- Minimal analytics and transparent architecture for teams that- care about control.- </p>- </article>+ <article className="rounded-xl border border-border/70 bg-card p-6 sm:col-span-2">+ <h3 className="text-sm font-medium">+ Native GitHub integration+ </h3>+ <p className="mt-2 text-muted-foreground text-sm leading-relaxed">+ Sync issues and keep product planning aligned with+ development execution.+ </p>+ </article>- <article className="rounded-xl border border-border/70 bg-card p-6">- <h3 className="text-sm font-medium">Self-hosted by default</h3>- <p className="mt-2 text-muted-foreground text-sm leading-relaxed">- Deploy with Docker and keep full ownership of your- infrastructure and data.- </p>- </article>+ <article className="rounded-xl border border-border/70 bg-card p-6">+ <h3 className="text-sm font-medium">Privacy first</h3>+ <p className="mt-2 text-muted-foreground text-sm leading-relaxed">+ Minimal analytics and transparent architecture for teams+ that care about control.+ </p>+ </article>++ <article className="rounded-xl border border-border/70 bg-card p-6">+ <h3 className="text-sm font-medium">+ Self-hosted by default+ </h3>+ <p className="mt-2 text-muted-foreground text-sm leading-relaxed">+ Deploy with Docker and keep full ownership of your+ infrastructure and data.+ </p>+ </article>+ </div></div></div>- </div>+ </FadeIn></div></section>);diff --git a/apps/site/components/landing/founder-statement.tsx b/apps/site/components/landing/founder-statement.tsxindex 9feaa3a2b..ebe03ea7b 100644--- a/apps/site/components/landing/founder-statement.tsx+++ b/apps/site/components/landing/founder-statement.tsx@@ -1,45 +1,53 @@+import { FadeIn } from "@/components/landing/fade-in";+export function FounderStatement() {return (<section id="why" className="px-6 py-16 md:py-20"><div className="mx-auto w-full max-w-6xl">- <h2 className="text-3xl font-semibold md:text-4xl">Why Kaneo exists</h2>- <div className="mt-6 space-y-6 text-lg leading-relaxed text-muted-foreground">- <p>- I'm{" "}- <strong className="font-medium text-foreground">Andrej</strong>, and- I created Kaneo because I was tired of project management tools that- got in the way more than they helped. After years of using bloated,- overcomplicated platforms that- <strong className="font-medium text-foreground">- {" "}- distracted from actual work- </strong>- , I knew there had to be a better way.- </p>- <p>- The problem wasn't that these tools lacked features - it was- that they had- <strong className="font-medium text-foreground"> too many</strong>.- Every notification, every unnecessary button, every complex workflow- was pulling my team away from what mattered:{" "}- <strong className="font-medium text-foreground">- building great products- </strong>- .- </p>- <p>- I believe the best tools are{" "}- <strong className="font-medium text-foreground">invisible</strong>.- They should amplify your team's natural workflow, not force you- to adapt to theirs. Kaneo is built on the principle that- <strong className="font-medium text-foreground">- {" "}- less is more- </strong>{" "}- - every feature exists because it solves a real problem, not because- it looks impressive in a demo.- </p>- </div>+ <FadeIn>+ <h2 className="text-3xl font-semibold md:text-4xl">+ Why Kaneo exists+ </h2>+ </FadeIn>+ <FadeIn delay={80}>+ <div className="mt-6 space-y-6 text-lg leading-relaxed text-muted-foreground">+ <p>+ I'm{" "}+ <strong className="font-medium text-foreground">Andrej</strong>,+ and I created Kaneo because I was tired of project management+ tools that got in the way more than they helped. After years of+ using bloated, overcomplicated platforms that+ <strong className="font-medium text-foreground">+ {" "}+ distracted from actual work+ </strong>+ , I knew there had to be a better way.+ </p>+ <p>+ The problem wasn't that these tools lacked features - it was+ that they had+ <strong className="font-medium text-foreground"> too many</strong>+ . Every notification, every unnecessary button, every complex+ workflow was pulling my team away from what mattered:{" "}+ <strong className="font-medium text-foreground">+ building great products+ </strong>+ .+ </p>+ <p>+ I believe the best tools are{" "}+ <strong className="font-medium text-foreground">invisible</strong>+ . They should amplify your team's natural workflow, not force+ you to adapt to theirs. Kaneo is built on the principle that+ <strong className="font-medium text-foreground">+ {" "}+ less is more+ </strong>{" "}+ - every feature exists because it solves a real problem, not+ because it looks impressive in a demo.+ </p>+ </div>+ </FadeIn></div></section>);diff --git a/apps/site/components/landing/hero.tsx b/apps/site/components/landing/hero.tsxindex 609a212d7..ac16cf745 100644--- a/apps/site/components/landing/hero.tsx+++ b/apps/site/components/landing/hero.tsx@@ -2,6 +2,7 @@import { Github } from "lucide-react";import { AppPreview } from "@/components/landing/app-preview";+import { FadeIn } from "@/components/landing/fade-in";import { Button } from "@/components/ui/button";export function Hero() {@@ -10,51 +11,59 @@ export function Hero() {<div className="mx-auto w-full max-w-6xl">{/* ── Heading + description + buttons ── */}<div className="mb-10 max-w-2xl">- <h1 className="text-balance text-4xl font-medium leading-[1.06] md:text-5xl lg:text-6xl">- All you <span className="text-primary">need</span>. Nothing you- don't.- </h1>- <p className="mt-5 text-balance text-lg text-muted-foreground leading-relaxed md:text-xl">- Kaneo gives you clean planning, focused execution, and full- ownership of your workflow from backlog to release.- </p>+ <FadeIn delay={0}>+ <h1 className="text-balance text-4xl font-medium leading-[1.06] md:text-5xl lg:text-6xl">+ All you <span className="text-primary">need</span>. Nothing you+ don't.+ </h1>+ </FadeIn>+ <FadeIn delay={80}>+ <p className="mt-5 text-balance text-lg text-muted-foreground leading-relaxed md:text-xl">+ Kaneo gives you clean planning, focused execution, and full+ ownership of your workflow from backlog to release.+ </p>+ </FadeIn>- <div className="mt-8 flex flex-wrap items-center gap-3">- <Button- size="lg"- className="gap-2"- onClick={() => {- window.location.href = "https://cloud.kaneo.app";- }}- >- Cloud- </Button>- <Button- variant="outline"- size="lg"- className="gap-2"- onClick={() => {- window.location.href = "/docs/core";- }}- >- Get Started- </Button>- <Button- variant="outline"- size="lg"- className="gap-2"- onClick={() => {- window.location.href = "https://github.com/usekaneo/kaneo";- }}- >- <Github className="h-4 w-4" />- GitHub- </Button>- </div>+ <FadeIn delay={160}>+ <div className="mt-8 flex flex-wrap items-center gap-3">+ <Button+ size="lg"+ className="gap-2"+ onClick={() => {+ window.location.href = "https://cloud.kaneo.app";+ }}+ >+ Cloud+ </Button>+ <Button+ variant="outline"+ size="lg"+ className="gap-2"+ onClick={() => {+ window.location.href = "/docs/core";+ }}+ >+ Get Started+ </Button>+ <Button+ variant="outline"+ size="lg"+ className="gap-2"+ onClick={() => {+ window.location.href = "https://github.com/usekaneo/kaneo";+ }}+ >+ <Github className="h-4 w-4" />+ GitHub+ </Button>+ </div>+ </FadeIn></div>{/* ── App preview — interactive mock of the real Kaneo UI ── */}- <AppPreview />+ <FadeIn delay={240} distance={32}>+ <AppPreview />+ </FadeIn></div></section>);