Activities in Amman

Activities for You

Log in

Design system

The existing Activities in Amman components, demonstrated with interface controls only. No example activities or organizers are created.

Design tokens

Colors: royal-50 #f4f5fa through royal-950 #10142b; primary royal-700 #23336c; cream #f5f1e6. Typography: Beaufort headings, Instrument Sans body, IBM Plex Sans Arabic for Arabic. Spacing: Tailwind 4px scale (1–8: 4–32px). Radius: xl 16px, 2xl 20px, 3xl 28px; full for action pills. Icons: Lucide, consistent 16/20px, 2px stroke; direction icons mirror, logos/maps do not. Fields use ds-control and visible focus outlines.

Button

Actions

Variants and states
primary, secondary, outline, ghost; brand/admin tones; sm/md; disabled/loading
Accessibility
Use type="submit" inside forms. Disabled/loading prevent duplicate actions. Keep a visible accessible name.
Application usage
AccountForm, map/detail links
<Button variant="primary" tone="brand" onClick={handleAction}>Open</Button>

Input

Text entry

Variants and states
email, password, text; normal, error, disabled
Accessibility
Pair with a label; aria-invalid and aria-describedby associate errors. Native input preserves editing and mobile keyboards.
Application usage
AccountForm
<label htmlFor="email">Email</label>
<Input id="email" type="email" placeholder="you@example.com" />

Select

Choose one option

Variants and states
Native options; selected, disabled
Accessibility
Use a label and a native select for keyboard, mobile picker and screen reader support.
Application usage
Public sort/page size controls
<label htmlFor="sort">Sort</label>
<Select id="sort" value={value} onChange={handleChange}>…</Select>

Badge

Status and metadata tags

CanceledPostponedPending reviewUnder reviewApprovedRejectedWithdrawnPublishedDraftUnpublishedArchived
SportsFreeJOD 12.50Age
Variants and states
Pending: amber; under review: blue; approved/published: green; rejected: red; draft: indigo; withdrawn/archived: slate. Category, free, price and age variants.
Accessibility
Visible labels preserve meaning without color. Theme-specific opaque backgrounds maintain text contrast. Noninteractive; never use as a button.
Application usage
Organizer dashboards and details, admin moderation, feedback, activity cards, map popups and accessibility summaries.
<Badge variant="warning">Pending review</Badge>
<Badge variant="success">Approved</Badge>
<Badge variant="danger">Rejected</Badge>

Card

Group related content

Group related content
Variants and states
Shared surface, optional padding classes
Accessibility
A semantic section groups a named content region. Avoid nested cards.
Application usage
ProviderCard
<Card className="p-4">…</Card>

Dialog

Focused task

Focused task

The request could not be completed. Check the fields and try again.

Variants and states
Open/closed; native modal
Accessibility
showModal traps focus; Escape and the close control dismiss; native focus returns to the trigger.
Application usage
ActivityDetail registration
<Dialog open={open} onClose={close} title={title}>…</Dialog>

DatePicker

Pick a date

Variants and states
Empty/selected, minimum date, disabled past dates
Accessibility
Label the trigger. Native buttons support Tab, Enter and Escape; previous/next icons mirror in RTL.
Application usage
SubmissionForm (start/end dates)
<label htmlFor="date">Date</label>
<DatePicker id="date" value={date} onChange={setDate} />

NumberField

Whole and decimal numbers

Variants and states
Empty/value, min/max, disabled/error
Accessibility
Label the input and increment/decrement buttons. Keep min/max within the real domain.
Application usage
Ages, prices and numeric administrator fields.
<NumberField id="amount" label="Amount" value={amount} onChange={setAmount} min={0} step={0.01} />

Toast

Transient feedback

Variants and states
Success, error, warning and info; dismissible; up to five visible; duplicate messages are combined.
Accessibility
Polite status and assertive error announcements; pause on hover or focus; keyboard dismiss; respects reduced motion. Do not rely on toast alone for persistent form errors.
Application usage
Admin actions and activity favorites
const {showToast} = useToast();
showToast(message, 'info');

SettingsMenu

Settings

Variants and states
Appearance, display language, Help and feedback in one nested popover.
Accessibility
Menu keyboard navigation, Escape and focus restoration; respects reduced motion.
Application usage
Desktop and mobile header
<SettingsMenu user={user} />

FeedbackLauncher

Send feedback

Variants and states
Private validated feedback form with persisted success and retry states.
Accessibility
Native modal with labeled fields, validation, Escape and focus restoration.
Application usage
Settings menu, Help and Contact
<FeedbackLauncher />

Pagination

Navigate results

Variants and states
Previous/next; current page; disabled boundaries
Accessibility
Named navigation and a live page label; directional arrows mirror in RTL.
Application usage
HomeExperience
<Pagination page={page} pages={pages} onChange={setPage} />

CheckboxField

Independent selection

Variants and states
Public/admin tones; checked, unchecked, disabled, partial selection; optional description or hidden label.
Accessibility
Uses a native checkbox with a 44px label target. Space toggles; partial selection exposes mixed state. Descriptions are linked without replacing the label.
Application usage
Activity options, filters, featured/publish controls, and admin row/select-all actions.
<CheckboxField label={label} description={hint} checked={checked} onChange={event => setChecked(event.target.checked)} />
<CheckboxField tone="admin" label={selectAllLabel} checked={all} indeterminate={some && !all} onChange={toggleAll} />

TimePicker

Pick a time

Variants and states
Empty/selected; every minute; required, disabled and error states.
Accessibility
Label the trigger. Arrow keys, Home/End and Escape support selection and cancellation; stored values stay HH:mm.
Application usage
Organizer activity start/end times.
<label htmlFor="time">Time</label>
<TimePicker id="time" value={time} onChange={setTime} />

Textarea

Multiline text entry

Variants and states
Normal, error, disabled; shared field styling.
Accessibility
Keep a persistent label and link validation messages with aria-describedby. Native editing and mobile keyboards are preserved.
Application usage
Activity descriptions, organizer submissions and feedback messages.
<label htmlFor="message">Message</label>
<Textarea id="message" value={message} onChange={handleChange} />

RequiredFieldsNote

Required-field guidance

Required field

Variants and states
A red RequiredFieldMark beside a label and one RequiredFieldsNote per form.
Accessibility
Keep the native required attribute. The decorative star is hidden from screen readers; the translated note explains the convention.
Application usage
Account, organizer, administrator and feedback forms.
<label htmlFor="email">Email <RequiredFieldMark /></label>
<Input id="email" required />
<RequiredFieldsNote />

Price

Localized prices

Price formatting examples

  • Free
  • JOD 12.50
  • Paid — contact organizer for price
Variants and states
Free, recorded JOD amount with two decimal places, or an unspecified paid price.
Accessibility
Always show text; missing amounts stay unspecified. Number/currency formatting follows the current locale.
Application usage
Activity cards, map popups, activity details and organizer submissions.
<Price price="free" />
<Price price="paid" amount={12.5} />
<Price price="paid" />

Twemoji

Consistent category illustrations

Art
Variants and states
Decorative or labeled; configurable size; shared Twemoji SVG source.
Accessibility
Use a label when the image conveys meaning alone. Keep alt empty when adjacent text already gives the category.
Application usage
Category filters, activity cards and map markers.
<Twemoji emoji="⚽" label={categoryLabel} size={24} />
<Twemoji emoji="🎨" />

LocationPicker

Choose an Amman location

Activity location in Amman

Click or tap to place a pin. You can also move the map with the arrow keys, then choose its center.

Enter location coordinates

Enter decimal latitude and longitude within Amman. You can also pan the map with arrow keys and choose its center.

Choose the activity location on the map.

Variants and states
Empty/selected, draggable pin, clear action; public/admin tones.
Accessibility
Click/tap to place the pin, or move the map with arrow keys and use its center. Status is announced; raw coordinates are not entered.
Application usage
Admin activity create/edit and submission approval; shared Amman service-area limits.
<LocationPicker value={location} onChange={setLocation} tone="admin" />

ActivityAccessibility

Summarize selected accommodations

Accessibility

  • Wheelchair Accessible
Variants and states
Wheelchair, sensory and family choices; translated empty state.
Accessibility
Text labels identify selected options without relying on color. This summary is not an editable control.
Application usage
Organizer submission details and administrator moderation.
<ActivityAccessibility wheelchair={wheelchair} sensory={sensory} family={family} />

Refresh this app?

A form on this page may contain unsaved changes. Save your work before refreshing.

Account Frozen

Your account has been frozen by the administration team. You can still browse. Ordinary account actions are temporarily unavailable, but data export, privacy review requests, account deletion, and logout remain available.

Contact support

support@example.com

This is a placeholder address. This mailbox is not configured to receive support requests.