From 1d8168218323d7c60b36d5ea5626ea5d5ad0e649 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 2 Apr 2026 13:20:07 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 4697c79..d87f1f4 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -11,8 +11,18 @@ import MediaAbout from '@/components/sections/about/MediaAbout'; import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen'; import { Lightbulb, Monitor, PenTool, ShieldCheck, Zap } from "lucide-react"; import CardStack from '@/components/cardStack/CardStack'; +import { useState } from 'react'; export default function LandingPage() { + const [grokApiKey, setGrokApiKey] = useState(""); + + const handleContactSubmit = (data: Record) => { + if (data.apiKey) { + setGrokApiKey(data.apiKey); + console.log("API Key secured in memory"); + } + }; + return (
-
Grok: Comment puis-je vous aider aujourd'hui ?
+
{grokApiKey ? "Grok: Système en ligne. Quelle équation souhaitez-vous résoudre ?" : "Grok: En attente de clé API..."}
User: Explique-moi le calcul intégral.
@@ -125,6 +135,7 @@ export default function LandingPage() { { name: "email", type: "email", placeholder: "Email", required: true }, { name: "apiKey", type: "password", placeholder: "Clé API Grok", required: true }, ]} + onSubmit={handleContactSubmit} imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BiavO3dCn02likxwS7upWoCIlU/futuristic-digital-aesthetic-background--1775133773550-69c25a60.png" mediaAnimation="blur-reveal" />