Archived
Public pages, auth, registration, payment, My Events and the kiosk: skip link, focus ring, labels tied to fields, named quantity buttons, announced errors, ModalOverlay popups (focus trap, Escape, focus return), contrast and underlined in-text links, reduced motion. Branding warns about a primary colour too light for white text and offers a darker shade. axe-core and keyboard checks in e2e/accessibility.spec.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
120 lines
5.8 KiB
TypeScript
120 lines
5.8 KiB
TypeScript
import React from "react";
|
||
import { Search, UserPlus, CreditCard, Calendar, Ticket, LogIn, KeyRound, MessageCircleQuestion, Phone, Keyboard } from "lucide-react";
|
||
import { GuideItem } from "@/components/shared/GuideItem";
|
||
import type { HelpContent } from "./types";
|
||
|
||
/**
|
||
* Baseline help content shown on any page without its own dedicated guide
|
||
* (all public pages, and the ultimate fallback everywhere else). Covers the
|
||
* things every visitor needs to know: how to register for an event
|
||
* (with or without an account), and how to find/manage a registration
|
||
* afterwards.
|
||
*/
|
||
export const generalHelpContent: HelpContent = {
|
||
title: "Need a hand?",
|
||
subtitle: "Here's how booking and managing your tickets works.",
|
||
quickLinks: [
|
||
{ label: "Browse events", href: "/events", icon: Calendar },
|
||
{ label: "Log in", href: "/login", icon: LogIn },
|
||
{ label: "Create an account", href: "/register", icon: UserPlus },
|
||
{ label: "View my tickets", href: "/dashboard/user", icon: Ticket },
|
||
{ label: "Contact us", href: "/contact", icon: Phone },
|
||
],
|
||
tabs: [
|
||
{
|
||
key: "register",
|
||
label: "Booking a ticket",
|
||
icon: Calendar,
|
||
content: (
|
||
<div className="space-y-4">
|
||
<p>Booking a spot at an event only takes a few minutes:</p>
|
||
<div className="space-y-4">
|
||
<GuideItem icon={Search} title="Browse events" tone="brand">
|
||
Head to the Events page to see what's coming up.
|
||
</GuideItem>
|
||
<GuideItem icon={UserPlus} title="Register" tone="green">
|
||
Open an event and tap Register to reserve your spot with your details. Some events let you register as a guest, others ask you to sign in first — see the "Accounts & login" tab for the difference.
|
||
</GuideItem>
|
||
<GuideItem icon={CreditCard} title="Pay if required" tone="amber">
|
||
Some events need payment to confirm your spot — pay securely online, or come back and pay later from your dashboard.
|
||
</GuideItem>
|
||
</div>
|
||
</div>
|
||
),
|
||
},
|
||
{
|
||
key: "accounts",
|
||
label: "Accounts & login",
|
||
icon: LogIn,
|
||
content: (
|
||
<div className="space-y-4">
|
||
<p>Whether you need an account depends on the event — the registration form always makes it clear which applies.</p>
|
||
<div className="space-y-4">
|
||
<GuideItem icon={Ticket} title="Guest registration" tone="green">
|
||
For some events you can register with just your name and email address — no password, no account. You'll get your tickets by email (or WhatsApp, if you provide a number).
|
||
</GuideItem>
|
||
<GuideItem icon={KeyRound} title="Account required" tone="amber">
|
||
Other events ask you to sign in or create a free account before you can register. If you see this, use the "Log in" or "Create an account" quick link above — it only takes a minute.
|
||
</GuideItem>
|
||
<GuideItem icon={LogIn} title="Why create an account?" tone="brand">
|
||
An account puts every registration and ticket you've ever booked in one place (your dashboard), and you won't need to retype your details next time. It's also required to view or manage a registration after you've made it, even if that specific event allowed guest booking.
|
||
</GuideItem>
|
||
</div>
|
||
</div>
|
||
),
|
||
},
|
||
{
|
||
key: "manage",
|
||
label: "Your tickets & registrations",
|
||
icon: Ticket,
|
||
content: (
|
||
<div className="space-y-4">
|
||
<p>Once you're registered, sign in and go to your dashboard to view and manage everything — you'll need to be logged in to see this, even if you registered as a guest.</p>
|
||
<div className="space-y-4">
|
||
<GuideItem icon={Calendar} title="My Events" tone="brand">
|
||
Your dashboard shows every registration and upcoming event in one place.
|
||
</GuideItem>
|
||
<GuideItem icon={Ticket} title="Tickets" tone="violet">
|
||
Each ticket has a QR code — print it, email it to yourself, or send it via WhatsApp.
|
||
</GuideItem>
|
||
<GuideItem icon={CreditCard} title="Payments" tone="green">
|
||
Check what you've paid and what's still outstanding right from your dashboard.
|
||
</GuideItem>
|
||
</div>
|
||
</div>
|
||
),
|
||
},
|
||
{
|
||
key: "accessibility",
|
||
label: "Keyboard & screen readers",
|
||
icon: Keyboard,
|
||
content: (
|
||
<div className="space-y-4">
|
||
<p>You can use the site without a mouse, and with a screen reader.</p>
|
||
<div className="space-y-4">
|
||
<GuideItem icon={Keyboard} title="Keyboard" tone="brand">
|
||
Press Tab to move through links, fields and buttons (Shift+Tab goes back); an outline shows where you are. The first Tab on any page offers "Skip to main content". Enter or Space presses a button, and Escape closes a popup.
|
||
</GuideItem>
|
||
<GuideItem icon={Ticket} title="Choosing tickets" tone="green">
|
||
The + and − buttons next to each ticket are read out as "Add one …" and "Remove one …", and the new number is announced.
|
||
</GuideItem>
|
||
<GuideItem icon={MessageCircleQuestion} title="Something hard to use?" tone="amber">
|
||
Let us know through the Contact page — we'll help you book and fix the problem.
|
||
</GuideItem>
|
||
</div>
|
||
</div>
|
||
),
|
||
},
|
||
{
|
||
key: "help",
|
||
label: "Still need help?",
|
||
icon: MessageCircleQuestion,
|
||
content: (
|
||
<div className="space-y-4">
|
||
<p>If you can't find what you're looking for, reach out — use the Contact link at the top of the site, or the Contact page linked above.</p>
|
||
</div>
|
||
),
|
||
},
|
||
],
|
||
};
|