🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Update UI elements and enhance pricing page layout
Bill Yang191e4c27e446
diff --git a/docs/src/app/page.jsx b/docs/src/app/page.jsxindex 68c091a1f..701a477ef 100644--- a/docs/src/app/page.jsx+++ b/docs/src/app/page.jsx@@ -250,7 +250,7 @@ export default function IndexPage() {<div className="flex flex-col sm:flex-row items-center justify-center gap-4 md:gap-6 mb-6 md:mb-8 w-full sm:w-auto"><Link href="https://demo.rybbit.io/signup" className="w-full sm:w-auto"><button className="w-full sm:w-auto bg-emerald-600 hover:bg-emerald-500 text-white font-medium px-6 md:px-8 py-3 md:py-4 rounded-lg shadow-lg shadow-emerald-900/20 transform hover:-translate-y-0.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-opacity-50">- Get Started for Free+ Start 14 day free trial</button></Link><Link href="https://docs.tomato.gg" className="w-full sm:w-auto">@@ -264,7 +264,7 @@ export default function IndexPage() {<svg className="w-3 h-3 md:w-4 md:h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>- No credit card required. Free plan available for small projects.+ No credit card required.</p></div></div>diff --git a/docs/src/app/pricing/page.jsx b/docs/src/app/pricing/page.jsxindex 421c6223f..7d340bd47 100644--- a/docs/src/app/pricing/page.jsx+++ b/docs/src/app/pricing/page.jsx@@ -53,7 +53,7 @@ export default function Pricing() {}return (- <div className="flex flex-col items-center justify-center">+ <div className="flex flex-col items-center justify-center overflow-x-hidden"><div className="container mx-auto py-12 px-4"><div className="mb-10 text-center max-w-3xl mx-auto"><h1 className="text-4xl md:text-5xl font-bold tracking-tight pb-4 text-transparent bg-clip-text bg-gradient-to-b from-white via-gray-200 to-gray-400">@@ -64,9 +64,23 @@ export default function Pricing() {</p></div>- {/* Pricing card */}- <div className="max-w-lg mx-auto">- <div className="bg-neutral-800/50 rounded-xl border border-neutral-700 overflow-hidden">+ {/* Pricing card with background gradients */}+ <div className="relative max-w-lg mx-auto mb-10">+ {/* Background gradients - overlapping circles for organic feel */}+ <div className="absolute top-0 left-0 w-[400px] h-[400px] bg-emerald-500/30 rounded-full blur-[80px] opacity-60"></div>+ <div className="absolute top-20 left-20 w-[300px] h-[300px] bg-emerald-600/20 rounded-full blur-[70px] opacity-40"></div>++ <div className="absolute bottom-0 right-0 w-[350px] h-[350px] bg-blue-500/30 rounded-full blur-[80px] opacity-50"></div>+ <div className="absolute bottom-40 right-20 w-[250px] h-[250px] bg-indigo-500/20 rounded-full blur-[75px] opacity-40"></div>++ <div className="absolute top-1/4 right-0 w-[200px] h-[200px] bg-purple-500/30 rounded-full blur-[70px] opacity-40"></div>++ <div className="absolute bottom-1/3 left-0 w-[220px] h-[220px] bg-emerald-400/20 rounded-full blur-[70px] opacity-50"></div>++ <div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[350px] h-[350px] bg-indigo-400/20 rounded-full blur-[80px] opacity-40"></div>++ {/* Card with relative positioning and higher z-index */}+ <div className="relative z-10 bg-neutral-800/50 rounded-xl border border-neutral-700 overflow-hidden backdrop-blur-sm shadow-xl"><div className="p-6">{/* Slider section */}<div className="mb-6">@@ -162,8 +176,10 @@ export default function Pricing() {</p></div></div>+ </div>- {/* FAQ section */}+ {/* FAQ section */}+ <div className="max-w-lg mx-auto"><div className="mt-10 space-y-6"><h3 className="text-xl font-semibold mb-4">Frequently Asked Questions</h3>diff --git a/docs/src/components/ui/slider.tsx b/docs/src/components/ui/slider.tsxindex 09391e86b..65ee663c8 100644--- a/docs/src/components/ui/slider.tsx+++ b/docs/src/components/ui/slider.tsx@@ -1,9 +1,9 @@-"use client"+"use client";-import * as React from "react"-import * as SliderPrimitive from "@radix-ui/react-slider"+import * as React from "react";+import * as SliderPrimitive from "@radix-ui/react-slider";-import { cn } from "@/lib/utils"+import { cn } from "@/lib/utils";function Slider({className,@@ -18,10 +18,10 @@ function Slider({Array.isArray(value)? value: Array.isArray(defaultValue)- ? defaultValue- : [min, max],+ ? defaultValue+ : [min, max],[value, defaultValue, min, max]- )+ );return (<SliderPrimitive.Root@@ -39,13 +39,13 @@ function Slider({<SliderPrimitive.Trackdata-slot="slider-track"className={cn(- "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"+ "bg-neutral-700/60 relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5")}><SliderPrimitive.Rangedata-slot="slider-range"className={cn(- "bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"+ "bg-emerald-500 absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")}/></SliderPrimitive.Track>@@ -53,11 +53,11 @@ function Slider({<SliderPrimitive.Thumbdata-slot="slider-thumb"key={index}- className="border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"+ className="bg-white border-emerald-500 ring-emerald-500/50 block size-5 shrink-0 rounded-full border-2 shadow-md transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"/>))}</SliderPrimitive.Root>- )+ );}-export { Slider }+export { Slider };diff --git a/server/src/api/stripe/getSubscription.ts b/server/src/api/stripe/getSubscription.tsindex 44159ee6a..712b518e8 100644--- a/server/src/api/stripe/getSubscription.ts+++ b/server/src/api/stripe/getSubscription.ts@@ -115,7 +115,6 @@ export async function getSubscriptionInner(userId: string) {}// User has no subscription and trial has ended - return null- // No free plan fallbackreturn null;}