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
1 change: 1 addition & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ body {
color: var(--text-primary);
font-family: var(--font-sora), sans-serif;
min-height: 100vh;
overflow-x: clip;
}

/* Custom scrollbar */
Expand Down
26 changes: 17 additions & 9 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default async function LandingPage() {
{/* ─── Node: Hero (Initial) ─── */}
<FlowNode label="initial_marking" isInitial className="pt-20 pb-8">
<div
className="absolute top-0 left-1/2 -translate-x-1/2 w-150 h-100 pointer-events-none"
className="absolute top-0 left-1/2 -translate-x-1/2 w-[min(600px,100vw)] h-100 pointer-events-none"
style={{
background:
"radial-gradient(ellipse at center, rgba(124,111,247,0.12) 0%, transparent 70%)",
Expand Down Expand Up @@ -146,9 +146,12 @@ export default async function LandingPage() {
production-ready YAML.
</p>

<div className="flex items-center gap-3 mt-2">
<Link href="/editor">
<Button size="lg" className="gap-2 text-sm">
<div className="flex flex-col sm:flex-row sm:items-center justify-center gap-3 mt-2 w-full sm:w-auto">
<Link href="/editor" className="w-full sm:w-auto">
<Button
size="lg"
className="gap-2 text-sm w-full sm:w-auto"
>
Start Building
<ArrowRight className="w-4 h-4" />
</Button>
Expand All @@ -157,11 +160,12 @@ export default async function LandingPage() {
href="https://github.com/vandetho/symflowbuilder"
target="_blank"
rel="noopener noreferrer"
className="w-full sm:w-auto"
>
<Button
variant="outline"
size="lg"
className="gap-2 text-sm"
className="gap-2 text-sm w-full sm:w-auto"
>
<GitHubIcon className="w-4 h-4" />
Star on GitHub
Expand Down Expand Up @@ -468,9 +472,12 @@ export default async function LandingPage() {
Sign in to unlock cloud save, versioning, and
shareable links.
</p>
<div className="flex items-center gap-3 mt-2">
<Link href="/editor">
<Button size="lg" className="gap-2">
<div className="flex flex-col sm:flex-row sm:items-center justify-center gap-3 mt-2 w-full sm:w-auto">
<Link href="/editor" className="w-full sm:w-auto">
<Button
size="lg"
className="gap-2 w-full sm:w-auto"
>
Start Building
<ArrowRight className="w-4 h-4" />
</Button>
Expand All @@ -479,11 +486,12 @@ export default async function LandingPage() {
href="https://github.com/vandetho/symflowbuilder"
target="_blank"
rel="noopener noreferrer"
className="w-full sm:w-auto"
>
<Button
variant="outline"
size="lg"
className="gap-2"
className="gap-2 w-full sm:w-auto"
>
<GitHubIcon className="w-4 h-4" />
View Source
Expand Down
6 changes: 4 additions & 2 deletions components/landing/HeroGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,13 @@ export function HeroGraph() {
const mounted = useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);

if (!mounted) {
return <div className="w-full h-[540px] rounded-[18px] glass animate-pulse" />;
return (
<div className="w-full h-[320px] sm:h-[420px] lg:h-[540px] rounded-[18px] glass animate-pulse" />
);
}

return (
<div className="w-full h-[540px] rounded-[18px] glass overflow-hidden shadow-[0_16px_64px_rgba(124,111,247,0.08)]">
<div className="w-full h-[320px] sm:h-[420px] lg:h-[540px] rounded-[18px] glass overflow-hidden shadow-[0_16px_64px_rgba(124,111,247,0.08)]">
<ReactFlowProvider>
<ReactFlow
nodes={DEMO_NODES}
Expand Down
Loading