Skip to content

Frontend Routes and Components

DavidWoolner edited this page Sep 3, 2021 · 13 revisions

Frontend Routes and Components

Routes Accessible Without SignUp/LogIn

  • /

    • NavBar
      • Login/LogOut
    • LandingPage
    • SearchBar
      • LocationComponent
      • CalendarComponent
      • GuestsDropdownComponent
  • /listings

    • ListingIndexComponent
      • ListingIndexItemComponent
    • MapListingsComponent
  • /listings/:listingId

    • BookingFormComponent
    • ReviewsIndexComponent
    • ReviewIndexItemComponent

/users/userId

  • CurrentBookingsIndexComponent
  • PreviousBookingsIndexComponent
  • ListingsIndexComponent
    • ReviewsIndexComponent

Routes Accessible With SignUp/LogIn

  • /listings/:listingId/edit

    • EditListingFormComponent
  • /bookings

    • BookingsIndexComponent
      • BookingIndexItemComponent
    • ReviewsIndexComponent
      • ReviewsIndexItemComponent
  • /bookings/:bookingId/edit

    • EditBookingFormComponent

/signup

  • SignUpComponent

Modals

  • Login / Logout / Signup -- User can navigate through site viewing listings. However, if they attempt to create a booking or a leave a review, this modal will appear requesting the user to log in. Option to sign up will be presented as well.