Skip to content

Commit 51fec24

Browse files
committed
redeployment
1 parent 7054db8 commit 51fec24

8 files changed

Lines changed: 790 additions & 203 deletions

File tree

frontend/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ZeroRouter Frontend Environment Variables
22

33
# The public URL of your ZeroRouter Gateway
4-
NEXT_PUBLIC_ZEROROUTER_API_URL=https://zerorouter-gateway-508521387980.us-central1.run.app
4+
NEXT_PUBLIC_ZEROROUTER_API_URL=https://api.zerorouter.xyz
55

66
# The Solana Devnet Demo Wallet (used for unauthenticated sessions)
77
NEXT_PUBLIC_DEMO_WALLET=2gzjbVH1DN71s5Csf1fkxDpjJJLesB174Yr2xRkyGSgm

frontend/src/app/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,12 @@ export default function LandingPage() {
156156
Lightweight infrastructure for modern AI.
157157
</p>
158158
</div>
159-
<div className="grid md:grid-cols-3 gap-8">
159+
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-8">
160160
{[
161161
{ title: "Blazing Fast", desc: "Cold start < 10ms. No containers. Just WASM.", icon: <Zap size={32} />, color: "text-[#14F195]" },
162162
{ title: "Ultra Light", desc: "3.4MB binary. Runs anywhere. Edge compatible.", icon: <HardDrive size={32} />, color: "text-[#00C2FF]" },
163163
{ title: "Pluggable", desc: "Trait-based system. Hot-swappable modules.", icon: <Layers size={32} />, color: "text-[#9945FF]" },
164+
{ title: "Rust Powered", desc: "Built on the metal. Memory safe. Thread safe.", icon: <span className="text-4xl -mt-1 block">🦀</span>, color: "text-[#FF4D00]" },
164165
].map((item, i) => (
165166
<div key={item.title} className="bg-slate-900/20 border border-white/5 p-10 hover:bg-slate-900/40 transition-colors relative group overflow-hidden rounded-xl">
166167
<div className={`mb-6 ${item.color} group-hover:scale-110 transition-transform duration-300`}>

frontend/src/components/WormholeBackground.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function WormholeBackground() {
2929
for (let i = 0; i < lineCount; i++) {
3030
lines.push({
3131
angle: (i / lineCount) * Math.PI * 2,
32-
speed: 0.002 + Math.random() * 0.004,
32+
speed: 0.001 + Math.random() * 0.002, // Slower speed (50%)
3333
offset: Math.random() * 100
3434
});
3535
}
@@ -42,10 +42,10 @@ export function WormholeBackground() {
4242

4343
let time = 0;
4444
const render = () => {
45-
time += 0.01;
45+
time += 0.005; // Slower time (50%)
4646

47-
// Clear with slight alpha for motion blur
48-
ctx.fillStyle = "rgba(0, 0, 0, 0.2)";
47+
// Clear with less alpha for sharper motion (reduced motion blur)
48+
ctx.fillStyle = "rgba(0, 0, 0, 0.5)"; // Increased from 0.2 to 0.5
4949
ctx.fillRect(0, 0, w, h);
5050

5151
// CENTER SWAY LOGIC
@@ -59,18 +59,18 @@ export function WormholeBackground() {
5959
// 1. Draw ZOOMING Rings
6060
rings.forEach((ring, i) => {
6161
// Grow rings to simulate forward movement
62-
ring.r *= 1.02;
62+
ring.r *= 1.01; // Slower growth (50%)
6363
if (ring.r > maxRadius) {
6464
ring.r = 10; // Reset to center
6565
}
6666

6767
// Fade in/out based on distance from center
68-
const opacity = Math.min(0.2, (ring.r / maxRadius) * 0.5);
68+
const opacity = Math.min(0.8, (ring.r / maxRadius) * 0.8); // Increased opacity
6969

7070
ctx.beginPath();
7171
ctx.arc(cx, cy, ring.r, 0, Math.PI * 2);
7272
ctx.strokeStyle = `rgba(0, 194, 255, ${opacity})`;
73-
ctx.lineWidth = 1 + (ring.r / maxRadius) * 2;
73+
ctx.lineWidth = 2 + (ring.r / maxRadius) * 4; // Thicker lines
7474
ctx.stroke();
7575
});
7676

@@ -86,14 +86,14 @@ export function WormholeBackground() {
8686

8787
const gradient = ctx.createLinearGradient(x1, y1, x2, y2);
8888
gradient.addColorStop(0, "rgba(0, 194, 255, 0)");
89-
gradient.addColorStop(0.2, "rgba(0, 194, 255, 0.1)");
89+
gradient.addColorStop(0.2, "rgba(0, 194, 255, 0.4)"); // Increased opacity
9090
gradient.addColorStop(1, "rgba(0, 194, 255, 0)");
9191

9292
ctx.beginPath();
9393
ctx.moveTo(x1, y1);
9494
ctx.lineTo(x2, y2);
9595
ctx.strokeStyle = gradient;
96-
ctx.lineWidth = 0.5;
96+
ctx.lineWidth = 1.5; // Thicker lines
9797
ctx.stroke();
9898
});
9999

0 commit comments

Comments
 (0)