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
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />

<link rel="icon" type="image/svg+xml" href="./public/logo.svg" />
<link rel="icon" type="image/svg+xml" href="./public/top.png" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PASO</title>
Expand Down
Binary file added frontend/public/top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
243 changes: 243 additions & 0 deletions frontend/src/components/landing/CTASection.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
import { useState } from "react";
import { motion, useReducedMotion } from "framer-motion";
import {
ArrowRight,
Bot,
Hash,
MessageSquare,
Mic,
Video,
} from "lucide-react";
import { Link } from "react-router-dom";

const EASE = [0.22, 1, 0.36, 1];

const ORBIT_NODES = [
{
id: "dm",
label: "Direct messages",
icon: MessageSquare,
angle: -90,
},
{
id: "voice",
label: "Voice channels",
icon: Mic,
angle: -18,
},
{
id: "video",
label: "Video rooms",
icon: Video,
angle: 54,
},
{
id: "ai",
label: "Workspace assistant",
icon: Bot,
angle: 126,
},
{
id: "rooms",
label: "Group threads",
icon: Hash,
angle: 198,
},
];

const MEMBERS = [
{
name: "Alex Rivera",
initials: "AR",
src: "https://randomuser.me/api/portraits/men/32.jpg",
sizeClass: "h-10 w-10 sm:h-11 sm:w-11 z-0",
},
{
name: "Maya Kulkarni",
initials: "MK",
src: "https://randomuser.me/api/portraits/women/44.jpg",
sizeClass: "h-13 w-13 sm:h-14 sm:w-14 z-10",
},
{
name: "Samir Patel",
initials: "SP",
src: "https://randomuser.me/api/portraits/men/75.jpg",
sizeClass: "h-10 w-10 sm:h-11 sm:w-11 z-0",
},
];

function MemberAvatar({ member }) {
const [imgError, setImgError] = useState(false);

return (
<div
title={member.name}
className={`relative overflow-hidden rounded-full border-2 border-white bg-zinc-200 shadow-sm dark:border-[#141313] dark:bg-zinc-800 ${member.sizeClass}`}
>
{!imgError ? (
<img
src={member.src}
alt={member.name}
onError={() => setImgError(true)}
className="h-full w-full object-cover"
loading="lazy"
/>
) : (
<span className="flex h-full w-full items-center justify-center text-xs font-medium text-zinc-700 dark:text-zinc-200">
{member.initials}
</span>
)}
</div>
);
}

const CTASection = () => {
const prefersReducedMotion = useReducedMotion();
const [hoveredNode, setHoveredNode] = useState(null);

return (
<section
id="about"
className="relative border-b border-zinc-900/12 bg-[#FAFAFA] px-4 py-16 sm:px-6 sm:py-24 lg:px-8 dark:border-white/12 dark:bg-[#100F0F]"
>
{/* Architectural Side Rails */}
<div aria-hidden="true" className="pointer-events-none absolute inset-0">
<div className="mx-auto h-full max-w-6xl border-x border-zinc-900/[0.08] dark:border-white/[0.08]" />
</div>

<div className="relative z-10 mx-auto max-w-6xl">
<motion.div
initial={prefersReducedMotion ? false : { opacity: 0, y: 14 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, amount: "some" }}
transition={{ duration: 0.45, ease: EASE }}
className="relative overflow-hidden rounded-2xl border border-zinc-900/12 bg-white px-6 py-12 shadow-[0_20px_50px_-24px_rgba(0,0,0,0.08)] sm:px-10 lg:px-14 lg:py-16 dark:border-white/12 dark:bg-[#141313] dark:shadow-[0_24px_60px_-24px_rgba(0,0,0,0.7)]"
>
{/* Subtle Top Hairline & Ambient Wash */}
<div
aria-hidden="true"
className="pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-zinc-900/15 to-transparent dark:via-white/15"
/>
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_60%_45%_at_50%_0%,rgba(24,24,27,0.035),transparent_70%)] dark:bg-[radial-gradient(ellipse_60%_45%_at_50%_0%,rgba(255,255,255,0.04),transparent_70%)]"
/>

<div className="relative grid items-center gap-12 lg:grid-cols-12 lg:gap-8">
{/* Left Column: Copy & Actions */}
<div className="text-center lg:col-span-6 lg:text-left">
<h2 className="text-3xl font-medium tracking-[-0.038em] text-zinc-950 sm:text-5xl dark:text-zinc-50">
Start talking{" "}
<span className="text-zinc-400 dark:text-zinc-500">
without the noise.
</span>
</h2>

<p className="mx-auto mt-4 max-w-md text-[13.5px] leading-[1.68] text-zinc-600 sm:text-sm lg:mx-0 dark:text-zinc-400">
Direct chats, group rooms, voice and video calls, and AI help
inside one calm workspace.
</p>

<div className="mt-8 flex flex-wrap items-center justify-center gap-3 lg:justify-start">
<Link
to="/signup"
className="group relative inline-flex h-10 items-center justify-center gap-2 rounded-lg bg-zinc-950 px-5 text-[13px] font-medium text-white shadow-[0_2px_6px_-1px_rgba(0,0,0,0.22),inset_0_1px_0_rgba(255,255,255,0.2)] transition-all duration-150 hover:bg-zinc-800 active:scale-[0.98] dark:bg-zinc-100 dark:text-zinc-950 dark:hover:bg-white"
>
<span>Create account</span>
<ArrowRight className="h-3.5 w-3.5 stroke-[2] transition-transform duration-150 group-hover:translate-x-0.5" />
</Link>

<Link
to="/login"
className="inline-flex h-10 items-center justify-center rounded-lg border border-zinc-900/14 bg-white px-5 text-[13px] font-medium text-zinc-800 shadow-2xs transition-all duration-150 hover:border-zinc-900/30 hover:bg-[#FAFAFA] active:scale-[0.98] dark:border-white/14 dark:bg-[#100F0F] dark:text-zinc-200 dark:hover:border-white/28 dark:hover:bg-white/[0.04]"
>
Log in
</Link>
</div>
</div>

{/* Right Column: Boxless Orbital Stage */}
<div className="relative flex items-center justify-center py-2 lg:col-span-6 lg:py-0">
<div className="relative flex h-[280px] w-[280px] items-center justify-center sm:h-[310px] sm:w-[310px]">
{/* Dashed Orbit Track */}
<div
aria-hidden="true"
className="pointer-events-none absolute h-[204px] w-[204px] rounded-full border border-dashed border-zinc-900/15 sm:h-[232px] sm:w-[232px] dark:border-white/15"
/>

{/* Slow Continuous Orbit */}
<motion.div
animate={
prefersReducedMotion || hoveredNode
? undefined
: { rotate: 360 }
}
transition={{
duration: 48,
repeat: Infinity,
ease: "linear",
}}
className="relative h-[204px] w-[204px] [--orbit-r:102px] sm:h-[232px] sm:w-[232px] sm:[--orbit-r:116px]"
>
{ORBIT_NODES.map((node) => {
const Icon = node.icon;
const rad = (node.angle * Math.PI) / 180;
const cos = Math.cos(rad).toFixed(4);
const sin = Math.sin(rad).toFixed(4);
const isHovered = hoveredNode === node.id;

return (
<div
key={node.id}
style={{
transform: `translate(calc(${cos} * var(--orbit-r)), calc(${sin} * var(--orbit-r)))`,
}}
className="absolute top-1/2 left-1/2 -ml-5 -mt-5 sm:-ml-[22px] sm:-mt-[22px]"
>
<motion.button
type="button"
onMouseEnter={() => setHoveredNode(node.id)}
onMouseLeave={() => setHoveredNode(null)}
onFocus={() => setHoveredNode(node.id)}
onBlur={() => setHoveredNode(null)}
animate={
prefersReducedMotion || hoveredNode
? undefined
: { rotate: -360 }
}
transition={{
duration: 48,
repeat: Infinity,
ease: "linear",
}}
title={node.label}
aria-label={node.label}
className={`flex h-10 w-10 items-center justify-center rounded-xl border transition-all duration-150 sm:h-11 sm:w-11 ${
isHovered
? "scale-105 border-zinc-900/25 bg-zinc-950 text-white shadow-md dark:border-white/30 dark:bg-zinc-100 dark:text-zinc-950"
: "border-zinc-900/12 bg-white text-zinc-700 shadow-[0_8px_20px_-8px_rgba(0,0,0,0.12)] hover:border-zinc-900/25 dark:border-white/12 dark:bg-[#1A1919] dark:text-zinc-200 dark:shadow-[0_10px_24px_-8px_rgba(0,0,0,0.75)]"
}`}
>
<Icon className="h-4 w-4 stroke-[1.8]" />
</motion.button>
</div>
);
})}
</motion.div>

{/* Center Member Stack */}
<div className="pointer-events-none absolute flex items-center -space-x-2.5">
{MEMBERS.map((member) => (
<MemberAvatar key={member.initials} member={member} />
))}
</div>
</div>
</div>
</div>
</motion.div>
</div>
</section>
);
};

export default CTASection;
133 changes: 133 additions & 0 deletions frontend/src/components/landing/FeaturesSection.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
import { motion, useReducedMotion } from "framer-motion";
import {
ChartNoAxesColumnIncreasing,
Image,
MessageCircle,
Sparkles,
Users,
Video,
} from "lucide-react";

const FEATURES = [
{
index: "01",
icon: MessageCircle,
title: "Real-time Messaging",
description:
"1:1 and group messages with presence, typing indicators, and read receipts.",
},
{
index: "02",
icon: Users,
title: "Group Conversations",
description:
"Group rooms, pinned threads, and shared context in one place.",
},
{
index: "03",
icon: Video,
title: "Audio & Video Calls",
description:
"Voice and video rooms directly alongside your conversations.",
},
{
index: "04",
icon: Image,
title: "Media & File Sharing",
description:
"Upload and preview images, audio clips, and files cleanly.",
},
{
index: "05",
icon: ChartNoAxesColumnIncreasing,
title: "Interactive Polls",
description:
"Quick polls inside chats to make decisions without long threads.",
},
{
index: "06",
icon: Sparkles,
title: "AI Replies & Safety",
description:
"Drafts, summaries, and basic moderation checks built into the flow.",
},
];

const EASE = [0.22, 1, 0.36, 1];

const FeaturesSection = () => {
const prefersReducedMotion = useReducedMotion();

return (
<section
id="features"
className="relative border-b border-zinc-900/12 bg-[#FAFAFA] px-4 py-16 sm:px-6 sm:py-24 lg:px-8 dark:border-white/12 dark:bg-[#100F0F]"
>
<div aria-hidden="true" className="pointer-events-none absolute inset-0">
<div className="mx-auto h-full max-w-6xl border-x border-zinc-900/[0.08] dark:border-white/[0.08]" />
</div>

<div className="relative z-10 mx-auto max-w-5xl">
<motion.div
initial={prefersReducedMotion ? false : { opacity: 0, y: 10 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, amount: "some" }}
transition={{ duration: 0.4, ease: EASE }}
className="mb-10 flex flex-col justify-between gap-4 border-b border-zinc-900/[0.08] pb-6 sm:mb-12 md:flex-row md:items-end dark:border-white/[0.08]"
>
<div>
<p className="font-mono text-[10.5px] tracking-[0.16em] text-zinc-500 uppercase dark:text-zinc-400">
Features
</p>
<h2 className="mt-2 text-3xl font-medium tracking-[-0.038em] text-zinc-950 sm:text-[2.5rem] dark:text-zinc-50">
Everything in{" "}
<span className="text-zinc-400 dark:text-zinc-500">
one place.
</span>
</h2>
</div>

<p className="max-w-xs text-[13.5px] leading-[1.6] text-zinc-600 dark:text-zinc-400">
Rooms, calls, media, polls, and AI assistance inside one workspace.
</p>
</motion.div>

<div className="divide-y divide-zinc-900/[0.08] border-b border-zinc-900/[0.08] dark:divide-white/[0.08] dark:border-white/[0.08]">
{FEATURES.map((feature, idx) => {
const Icon = feature.icon;

return (
<motion.div
key={feature.index}
initial={prefersReducedMotion ? false : { opacity: 0, y: 8 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, amount: "some" }}
transition={{
duration: 0.35,
delay: idx * 0.03,
ease: EASE,
}}
className="group grid grid-cols-1 items-baseline gap-2 py-4 transition-colors duration-150 hover:bg-zinc-950/[0.015] sm:grid-cols-[64px_220px_1fr] sm:gap-4 sm:px-2 dark:hover:bg-white/[0.02]"
>
<div className="flex items-center gap-2.5 font-mono text-[11px] text-zinc-400 tabular-nums dark:text-zinc-500">
<span>{feature.index}</span>
<Icon className="h-3.5 w-3.5 stroke-[1.75] text-zinc-500 transition-colors duration-150 group-hover:text-zinc-900 dark:text-zinc-400 dark:group-hover:text-zinc-200" />
</div>

<h3 className="text-[14px] font-medium tracking-[-0.015em] text-zinc-900 dark:text-zinc-100">
{feature.title}
</h3>

<p className="text-[13px] leading-[1.55] text-zinc-600 dark:text-zinc-400">
{feature.description}
</p>
</motion.div>
);
})}
</div>
</div>
</section>
);
};

export default FeaturesSection;
Loading
Loading