Skip to content
Open
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

- **HTTP Tunnels** - Expose web servers with custom subdomains
- **TCP Tunnels** - Tunnel any TCP service (databases, game servers, etc.)
- **UDP Tunnels** - Tunnel UDP traffic (DNS, VoIP,TFTP etc.)
- **UDP Tunnels** - Tunnel UDP traffic (DNS, VoIP, TFTP etc.)
- **Custom Domains** - Bring your own domain with automatic TLS
- **Dashboard** - Monitor traffic, view analytics, manage tunnels
- **Team Support** - Collaborate with organizations and role-based access
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/landing/developer-experience.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const DeveloperExperience = () => {
<p className="text-white/40 mb-6">
Use our SDKs to embed OutRay directly into your app.
</p>
<div className="bg-black/40 rounded-2xl border border-white/5 p-4 font-mono text-sm overflow-x-auto mt-auto">
<div className="bg-black/40 rounded-2xl border border-white/5 p-4 font-mono text-sm overflow-x-auto mt-auto whitespace-pre-wrap">
<span className="text-accent">import</span> outray{" "}
<span className="text-accent">from</span>{" "}
<span className="text-white/60">"outray"</span>;{"\n"}
Expand Down
32 changes: 25 additions & 7 deletions apps/web/src/components/landing/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { useState } from "react";
import { Canvas } from "@react-three/fiber";
import { ArrowRight, Copy, Check } from "lucide-react";
import { ArrowRight, Copy, Check, LayoutDashboard } from "lucide-react";
import { Link } from "@tanstack/react-router";
import { authClient } from "@/lib/auth-client";
import { usePostHog } from "posthog-js/react";
import { Terminal } from "./Terminal";
import { BeamGroup } from "./beam-group";

export const Hero = () => {
const [copied, setCopied] = useState(false);
const posthog = usePostHog();
const { data: session } = authClient.useSession();
const { data: organizations } = authClient.useListOrganizations();

const copyCommand = () => {
navigator.clipboard.writeText("npm install -g outray");
Expand Down Expand Up @@ -54,12 +57,27 @@ export const Hero = () => {
</div>

<div className="flex flex-col sm:flex-row items-center gap-4 w-full justify-center">
<Link
to="/signup"
className="w-full sm:w-auto px-8 py-4 bg-white text-black hover:bg-gray-200 rounded-full font-bold text-lg transition-all hover:scale-105 flex items-center justify-center gap-2"
>
Get Started Free <ArrowRight size={20} />
</Link>
{session ? (
<Link
to={organizations?.length ? "/$orgSlug" : "/select"}
params={{
orgSlug:
organizations && organizations.length
? organizations[0].slug
: "",
}}
className="w-full sm:w-auto px-8 py-4 bg-white text-black hover:bg-gray-200 rounded-full font-bold text-lg transition-all hover:scale-105 flex items-center justify-center gap-2"
>
Dashboard <LayoutDashboard size={20} />
</Link>
) : (
<Link
to="/signup"
className="w-full sm:w-auto px-8 py-4 bg-white text-black hover:bg-gray-200 rounded-full font-bold text-lg transition-all hover:scale-105 flex items-center justify-center gap-2"
>
Get Started Free <ArrowRight size={20} />
</Link>
)}
<button
onClick={copyCommand}
className="w-full sm:w-auto flex items-center gap-3 text-white/60 px-8 py-4 bg-white/5 hover:bg-white/10 rounded-full border border-white/10 font-mono text-sm backdrop-blur-sm transition-all group cursor-pointer"
Expand Down
5 changes: 5 additions & 0 deletions apps/web/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@ body {
.safe-area-pb {
padding-bottom: env(safe-area-inset-bottom, 0);
}


button{
cursor: pointer;
}
94 changes: 72 additions & 22 deletions apps/web/src/routes/pricing.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createFileRoute, Link } from "@tanstack/react-router";
import { Navbar } from "@/components/landing/navbar";
import { SUBSCRIPTION_PLANS } from "@/lib/subscription-plans";
import { Check, X } from "lucide-react";
import { Check, X, Zap, Globe, Cpu } from "lucide-react";

export const Route = createFileRoute("/pricing")({
component: PricingPage,
Expand Down Expand Up @@ -51,16 +51,15 @@ function PricingPage() {
return (
<div
key={plan.id}
className={`relative flex flex-col p-8 rounded-3xl border transition-all duration-300 ${
plan.id === "beam"
? "bg-linear-to-br from-accent/10 via-white/5 to-purple-500/10 border-accent shadow-[0_0_60px_rgba(255,255,255,0.15)] ring-2 ring-accent/30 scale-[1.02]"
: "bg-[#0c0c0c] border-white/10 hover:border-white/20"
}`}
className={`relative flex flex-col p-8 rounded-3xl border transition-all duration-300 ${plan.id === "beam"
? "bg-accent/10 border-accent shadow-[0_0_60px_rgba(255,255,255,0.15)] ring-2 ring-accent/30 scale-[1.02]"
: "bg-[#0c0c0c] border-white/10 hover:border-white/20"
}`}
>
{plan.id === "beam" && (
<>
<div className="absolute inset-0 rounded-3xl bg-linear-to-br from-accent/5 via-transparent to-purple-500/5 pointer-events-none" />
<div className="absolute -top-4 left-1/2 -translate-x-1/2 px-5 py-1.5 bg-linear-to-r from-accent to-yellow-400 text-black text-xs font-bold rounded-full uppercase tracking-wider shadow-lg shadow-accent/30 flex items-center gap-1.5">
<div className="absolute inset-0 rounded-3xl bg-white/5 pointer-events-none" />
<div className="absolute -top-4 left-1/2 -translate-x-1/2 px-5 py-1.5 bg-accent text-black text-xs font-bold rounded-full uppercase tracking-wider shadow-lg shadow-accent/30 flex items-center gap-1.5">
<span className="animate-pulse">✨</span>
Recommended
<span className="animate-pulse">✨</span>
Expand All @@ -82,20 +81,17 @@ function PricingPage() {

<div className="flex-1 space-y-4 mb-8">
<FeatureItem
label={`${
f.maxTunnels === -1 ? "Unlimited" : f.maxTunnels
} Tunnel${f.maxTunnels === 1 ? "" : "s"}`}
label={`${f.maxTunnels === -1 ? "Unlimited" : f.maxTunnels
} Tunnel${f.maxTunnels === 1 ? "" : "s"}`}
/>
<FeatureItem
label={`${
f.maxDomains === -1 ? "Unlimited" : f.maxDomains
} Custom Domain${f.maxDomains === 1 ? "" : "s"}`}
label={`${f.maxDomains === -1 ? "Unlimited" : f.maxDomains
} Custom Domain${f.maxDomains === 1 ? "" : "s"}`}
included={f.maxDomains !== 0}
/>
<FeatureItem
label={`${
f.maxSubdomains === -1 ? "Unlimited" : f.maxSubdomains
} Subdomain${f.maxSubdomains === 1 ? "" : "s"}`}
label={`${f.maxSubdomains === -1 ? "Unlimited" : f.maxSubdomains
} Subdomain${f.maxSubdomains === 1 ? "" : "s"}`}
/>
<FeatureItem
label={`${formatBandwidth(f.bandwidthPerMonth)} Bandwidth`}
Expand All @@ -111,18 +107,72 @@ function PricingPage() {

<Link
to="/login"
className={`w-full py-3 rounded-full font-bold text-center transition-all ${
plan.id === "beam"
? "bg-white text-black hover:bg-gray-200"
: "bg-white/10 text-white hover:bg-white/20"
}`}
className={`w-full py-3 rounded-full font-bold text-center transition-all ${plan.id === "beam"
? "bg-white text-black hover:bg-gray-200"
: "bg-white/10 text-white hover:bg-white/20"
}`}
>
{plan.price === 0 ? "Get Started" : "Subscribe"}
</Link>
</div>
);
})}
</div>

<div className="mt-20 bg-[#0c0c0c] border border-white/10 p-8 md:p-12">
<div className="overflow-x-auto">
<table className="w-full text-left border-collapse">
<thead>
<tr className="border-b border-white/10">
<th className="pb-6 px-4 text-white/40 font-medium">Feature</th>
<th className="pb-6 px-4 text-white font-bold">OutRay</th>
<th className="pb-6 px-4 text-white/40 font-medium">ngrok</th>
<th className="pb-6 px-4 text-white/40 font-medium">zrok</th>
<th className="pb-6 px-4 text-white/40 font-medium">Cloudflare Tunnel</th>
</tr>
</thead>
<tbody className="divide-y divide-white/5">
<tr>
<td className="py-6 px-4 text-white/80">Stay online forever (free)</td>
<td className="py-6 px-4 text-white font-bold">YES</td>
<td className="py-6 px-4 text-white/40">No (1hr timeout)</td>
<td className="py-6 px-4 text-white/40">Limited</td>
<td className="py-6 px-4 text-white/40">Yes</td>
</tr>
<tr>
<td className="py-6 px-4 text-white/80">Free custom subdomains</td>
<td className="py-6 px-4 text-white font-bold">YES</td>
<td className="py-6 px-4 text-white/40">Paid only</td>
<td className="py-6 px-4 text-white/40">No</td>
<td className="py-6 px-4 text-white/40">No</td>
</tr>
<tr>
<td className="py-6 px-4 text-white/80">HTTP/HTTPS Tunnels</td>
<td className="py-6 px-4 text-white font-bold">YES</td>
<td className="py-6 px-4 text-white/40">Yes</td>
<td className="py-6 px-4 text-white/40">Yes</td>
<td className="py-6 px-4 text-white/40">Yes</td>
</tr>
<tr>
<td className="py-6 px-4 text-white/80">TCP Tunnels</td>
<td className="py-6 px-4 text-white font-bold">YES</td>
<td className="py-6 px-4 text-white/40">Paid only</td>
<td className="py-6 px-4 text-white/40">Yes</td>
<td className="py-6 px-4 text-white/40">Limited</td>
</tr>
<tr>
<td className="py-6 px-4 text-white/80">UDP Tunnels</td>
<td className="py-6 px-4 text-white font-bold">YES</td>
<td className="py-6 px-4 text-white/40">No</td>
<td className="py-6 px-4 text-white/40">No</td>
<td className="py-6 px-4 text-white/40">No</td>
</tr>
</tbody>
</table>
</div>
</div>


</div>
</div>

Expand Down
Loading