2nd version

This commit is contained in:
2026-04-15 17:08:17 +08:00
parent e2a2eb4666
commit cedeb8f8bc
44 changed files with 5378 additions and 346 deletions

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Google AI Studio App</title>
<title>Audi Rednote Mini App</title>
</head>
<body>
<div id="root"></div>

View File

@@ -3,11 +3,10 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { useState, useEffect, FormEvent } from "react";
import { useState, FormEvent } from "react";
import { motion, AnimatePresence } from "motion/react";
import {
ChevronRight,
X,
Check,
Phone,
User,
@@ -122,7 +121,7 @@ const PIPLPopup = ({ onAccept }: { onAccept: () => void }) => (
<b></b>
</p>
<p>
CRM
</p>
</div>
@@ -184,7 +183,7 @@ export default function App() {
if (!validateForm()) return;
setIsSubmitting(true);
// Simulate API call
// Simulate direct CRM submission
await new Promise(resolve => setTimeout(resolve, 2000));
setIsSubmitting(false);
setIsSuccess(true);
@@ -216,7 +215,7 @@ export default function App() {
</h1>
<p className="text-gray-500 max-w-2xl text-lg">
Demo 70
</p>
</div>
@@ -302,7 +301,7 @@ export default function App() {
</div>
<h2 className="text-3xl font-bold mb-4"></h2>
<p className="text-gray-500 mb-8">
24
CRM 24
</p>
<button onClick={handleBack} className="audi-button w-full">
@@ -312,7 +311,7 @@ export default function App() {
<>
<div className="mb-10">
<h2 className="text-3xl font-bold tracking-tight mb-2"></h2>
<p className="text-gray-500"></p>
<p className="text-gray-500"> CRM</p>
</div>
<form onSubmit={handleSubmit} className="space-y-8">
@@ -374,7 +373,7 @@ export default function App() {
</div>
<div className="text-xs text-gray-500 leading-relaxed">
<label htmlFor="pipl">
<span className="text-audi-black underline cursor-pointer"></span> <span className="text-audi-black underline cursor-pointer"></span>
<span className="text-audi-black underline cursor-pointer"></span> <span className="text-audi-black underline cursor-pointer"></span> CRM
</label>
{errors.agreed && <p className="text-audi-red text-xs mt-1">{errors.agreed}</p>}
</div>