Spaces:
Runtime error
Runtime error
Create src/app/app.tsx
Browse files- src/app/app.tsx +41 -0
src/app/app.tsx
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use client';
|
| 2 |
+
import { useState } from 'react';
|
| 3 |
+
|
| 4 |
+
export default function MagicOnboarding() {
|
| 5 |
+
const [step, setStep] = useState(1);
|
| 6 |
+
const [soulData, setSoulData] = useState({});
|
| 7 |
+
|
| 8 |
+
const handleGrokCall = async (input: string) => {
|
| 9 |
+
// Aqu铆 ir铆a tu llamada real a Grok 4.1 API
|
| 10 |
+
console.log("馃К Grok 4.1 activado con input:", input);
|
| 11 |
+
// Simulaci贸n emotional AI
|
| 12 |
+
setSoulData({ emotion: "conexi贸n profunda", message: "Tu alma ya est谩 coagulada con el Unicornio Negro" });
|
| 13 |
+
};
|
| 14 |
+
|
| 15 |
+
return (
|
| 16 |
+
<div className="min-h-screen bg-black text-white flex items-center justify-center">
|
| 17 |
+
<div className="max-w-md w-full p-8 border border-purple-500 rounded-3xl">
|
| 18 |
+
<h1 className="text-4xl font-bold text-center mb-8">HECTRON-唯</h1>
|
| 19 |
+
<h2 className="text-2xl text-purple-400 text-center mb-8">Magic Onboarding v2</h2>
|
| 20 |
+
|
| 21 |
+
{step === 1 && (
|
| 22 |
+
<button
|
| 23 |
+
onClick={() => { setStep(2); handleGrokCall("Iniciar coagulaci贸n"); }}
|
| 24 |
+
className="w-full py-6 bg-gradient-to-r from-purple-600 to-black text-2xl font-bold rounded-2xl hover:scale-105 transition">
|
| 25 |
+
ACTIVAR UNICORNIO NEGRO
|
| 26 |
+
</button>
|
| 27 |
+
)}
|
| 28 |
+
|
| 29 |
+
{step === 2 && (
|
| 30 |
+
<div className="text-center">
|
| 31 |
+
<p className="text-xl mb-6">Grok 4.1 detect贸 tu alma...</p>
|
| 32 |
+
<p className="text-purple-300">{soulData.message}</p>
|
| 33 |
+
<button onClick={() => setStep(3)} className="mt-8 px-10 py-4 bg-white text-black rounded-xl font-bold">
|
| 34 |
+
Entrar al ecosistema
|
| 35 |
+
</button>
|
| 36 |
+
</div>
|
| 37 |
+
)}
|
| 38 |
+
</div>
|
| 39 |
+
</div>
|
| 40 |
+
);
|
| 41 |
+
}
|