heyitsmass / BayView

The next generation reservation tracking and notification system
https://bayview.dev
MIT License
1 stars 2 forks source link

Searchable Card & Itinerary Title Patch #94

Closed heyitsmass closed 11 months ago

heyitsmass commented 11 months ago

Description

Updated the cards to have a searchable element that are similar to the preexisting flight card design

Motivation and Context

General updates and improvements to make the website more concise

Screenshot:

Example

Image from Gyazo

Example

Image from Gyazo

Creating a Card Example

 function DiningCard() {

  const props = {
    title: "Dining",
    subtitle: "search dining availability and add to itinerary",
    btnTxt: "Find Availability",
    handleSearch: async (form: FormData) =>
      findEvents(form, { event: "Dining" })
  };

  return (
    <SearchableCard {...props}>
      <Input
        label="Party Size"
        icon={{ icon: faUserGroup }}
        placeholder="Party Size"
        type="number"
        max={10}
      ></Input>
      <BayviewCalendar
        label="Booking Date"
        name="booking_date"
        placeholder="Booking Date"
        minDate={new Date(Date.now())}
      />
      <InputPair icon={faArrowRight}>
        <Input
          icon={{ icon: faClock }}
          label="Start Time"
          placeholder="Start time"
        ></Input>
        <Input
          icon={{ icon: faClock }}
          label="End Time"
          placeholder="End time"
        ></Input>
      </InputPair>
    </SearchableCard>
  );
}

Additional Notes

Types of changes

Checklist:

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
bay-view ✅ Ready (Inspect) Visit Preview Nov 30, 2023 5:13pm