Fix AI Coach typo, fix bulk register UI, and update exam tiers
This commit is contained in:
@@ -33,9 +33,9 @@ const AI_COACH_FEATURES = [
|
||||
|
||||
export default function OnboardingPage() {
|
||||
const router = useRouter();
|
||||
const [selecting, setSelecting] = useState<"Pro" | "Al_Coach" | null>(null);
|
||||
const [selecting, setSelecting] = useState<"Pro" | "AI Coach" | null>(null);
|
||||
|
||||
const handleSelect = async (plan: "Pro" | "Al_Coach") => {
|
||||
const handleSelect = async (plan: "Pro" | "AI Coach") => {
|
||||
setSelecting(plan);
|
||||
// Save chosen plan preference to localStorage so dashboard can read it
|
||||
if (typeof window !== "undefined") {
|
||||
@@ -165,7 +165,7 @@ export default function OnboardingPage() {
|
||||
background:
|
||||
"linear-gradient(135deg, rgba(12,96,96,0.5) 0%, rgba(12,96,96,0.08) 100%)",
|
||||
}}
|
||||
onClick={() => !selecting && handleSelect("Al_Coach")}
|
||||
onClick={() => !selecting && handleSelect("AI Coach")}
|
||||
>
|
||||
{/* Most Popular Badge */}
|
||||
<div className="absolute -top-4 left-1/2 -translate-x-1/2 z-10 inline-flex items-center gap-1.5 px-4 py-1.5 rounded-full bg-[var(--cyan-ai)] text-black text-xs font-black uppercase tracking-wider shadow-[0_0_20px_-3px_var(--cyan-ai)]">
|
||||
@@ -201,12 +201,12 @@ export default function OnboardingPage() {
|
||||
<button
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
if (!selecting) handleSelect("Al_Coach");
|
||||
if (!selecting) handleSelect("AI Coach");
|
||||
}}
|
||||
disabled={!!selecting}
|
||||
className="w-full h-12 rounded-xl bg-[var(--cyan-ai)] text-black font-bold text-base hover:bg-[var(--cyan-ai-80)] transition-all duration-300 shadow-[0_0_20px_-5px_rgba(12,96,96,0.5)] hover:shadow-[0_0_30px_-3px_rgba(12,96,96,0.8)] hover:-translate-y-0.5 disabled:opacity-70 disabled:cursor-not-allowed flex items-center justify-center gap-2"
|
||||
>
|
||||
{selecting === "Al_Coach" ? (
|
||||
{selecting === "AI Coach" ? (
|
||||
<>
|
||||
<span className="size-4 border-2 border-black/30 border-t-black rounded-full animate-spin" />
|
||||
Starting Trial…
|
||||
|
||||
Reference in New Issue
Block a user