seattlejs / seattlejs.com

The code for seattlejs.com
http://seattlejs.com
16 stars 12 forks source link

Create pages for events and to render HTML for upcoming meetup emails #112

Open crtr0 opened 1 year ago

crtr0 commented 1 year ago

Two weeks out from a meetup, we send an email to our mailing list in the format below.

We would like to create a 3 new routes on the website:

  1. /events - display list of meetup events (in reverse chronological order)
  2. /events/$slug - display event (same format/content as index page of website)
  3. `/events/$slug?email - display the raw html below, preferably escaped so it can easily be copy/pasted
<p>GREETING TEXT</p>
<!-- sponsor -->
<p><a href="URL"><img width="200" alt="SPONSOR logo" src="https://seattlejs.com/_public/images/sponsors/SPONSOR.png" title="SPONSOR logo"></a></p>
<p>Special thanks to our friends at <a href="URL">SPONSOR</a> for sponsoring snacks for this month's event! 😎</p>
<ul>
<li>🗓 DAY, MONTH DATE</li>
<li>⏰ 5:30pm - 8:30pm</li>
<li>📍 LOCATION</li>
<li>🎟 <a href="https://ti.to/event-loop/">Buy Tickets</a></li>
</ul>
<! -- loop through talks -->
<h4>TALK TITLE by SPEAKER</h4>
<p><img width="200" alt="SPEAKER" src="https://seattlejs.com/_public/images/speakers/SPEAKER.jpg" title="SPEAKER"></p>
<p>TALK ABSTRACT</p>
<!-- end loop -->
<p>See you all on MONTH DATE!</p>