Luma Events Calendar with Townie Authentication

This Val Town function creates a calendar-style page displaying upcoming Luma events with Farcaster authentication via Townie.

Features

  • Farcaster Authentication: Uses Townie to authenticate users via their Farcaster identity
  • Event Calendar: Displays upcoming events in a modern, responsive calendar layout
  • RSVP Integration: Provides direct links to RSVP on Luma, with user information pre-filled when available
  • Responsive Design: Looks great on both desktop and mobile devices

How It Works

  1. When a user visits the page, they are prompted to log in with their Farcaster account if not already authenticated
  2. After authentication, they see a calendar of upcoming Luma events
  3. Each event displays:
    • Title
    • Date and time
    • Description
    • RSVP button linking to the Luma event page
  4. The RSVP links are pre-filled with the user's name and email when available from their Farcaster profile

Technical Details

  • Built with vanilla TypeScript and HTML/CSS
  • Uses Townie for Farcaster authentication
  • Currently uses hardcoded event data (can be replaced with an API integration)
  • Responsive design that works on all device sizes

Future Improvements

  • Integrate with Luma API to fetch real events
  • Add filtering and search capabilities
  • Implement calendar view toggle (list/grid/month view)
  • Add notifications for upcoming events