Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions config/seed_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ INSERT OR IGNORE INTO list_members (list_id, user_id) VALUES
(2, 5),
(3, 1);

INSERT OR IGNORE INTO events (id, title, slug, description_html, description_updated_at, start, end, capacity, unlisted) VALUES
(1, 'An upcoming person will Present Sounds', 'upcoming-present-sounds', 'An upcoming person will present sounds.', '2024-01-01 00:00:00', '2026-07-31 23:00:00', '2026-08-01 03:00:00', 2, 0),
(4, 'Another upcoming person will Present Sounds', 'upcoming-present-sounds-2', 'An upcoming person will present sounds.', '2024-01-01 00:00:00', '2026-08-31 23:00:00', '2026-09-01 03:00:00', 2, 0),
(3, 'A past person will Present Sounds', 'past-present-sounds', 'A past person will present sounds.', '2024-01-01 00:00:00', '2024-08-14 23:00:00', '2024-08-15 03:00:00', 2, 0),
(2, 'Another past person will Present Sounds', 'past-present-sounds-2', 'A past person will present sounds.', '2024-01-01 00:00:00', '2024-07-14 23:00:00', '2024-07-15 03:00:00', 2, 0);
INSERT OR IGNORE INTO events (id, token, kind, artist_share, title, slug, description_html, description_updated_at, start, end, capacity, unlisted) VALUES
(1, '00000000000000e1', 'internal', 70, 'An upcoming person will Present Sounds', 'upcoming-present-sounds', 'An upcoming person will present sounds.', '2024-01-01 00:00:00', '2027-07-31 23:00:00', '2027-08-01 03:00:00', 2, 0),
(4, '00000000000000e4', 'internal', 70, 'Another upcoming person will Present Sounds', 'upcoming-present-sounds-2', 'An upcoming person will present sounds.', '2024-01-01 00:00:00', '2027-08-31 23:00:00', '2027-09-01 03:00:00', 2, 0),
(3, '00000000000000e3', 'internal', 70, 'A past person will Present Sounds', 'past-present-sounds', 'A past person will present sounds.', '2024-01-01 00:00:00', '2024-08-14 23:00:00', '2024-08-15 03:00:00', 2, 0),
(2, '00000000000000e2', 'internal', 70, 'Another past person will Present Sounds', 'past-present-sounds-2', 'A past person will present sounds.', '2024-01-01 00:00:00', '2024-07-14 23:00:00', '2024-07-15 03:00:00', 2, 0);
INSERT OR IGNORE INTO spots (id, name, description, qty_total, qty_per_person, kind, sort, required_contribution, min_contribution, max_contribution, suggested_contribution, required_notice_hours) VALUES
(1, 'Free!', 'Brand new cherry red ferrarri!', 1, 1, 'free', 0, NULL, NULL, NULL, NULL, NULL),
(2, 'Accessibility Contribution', 'When I pay less, I know I am letting my community hold me and support me.', 2, 1, 'fixed', 1, 20, NULL, NULL, NULL, NULL),
Expand Down
34 changes: 34 additions & 0 deletions frontend/styles/events/rsvp_manage.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
p {
@apply text-lsd-gray text-sm leading-tight;
}
.when {
@apply text-lsd-white mt-3 text-sm uppercase;
letter-spacing: 0.2px;
}
}

.buttons {
Expand All @@ -58,5 +62,35 @@
@apply border-lsd-red/30 bg-lsd-red/20;
}
}

.calendar {
summary {
@apply bg-lsd-charcoal cursor-pointer rounded-lg py-4 text-center;
list-style: none;
&::-webkit-details-marker {
display: none;
}
&::after {
@apply text-lsd-gray ml-2 inline-block;
content: "\25be";
}
}
&[open] summary {
@apply rounded-b-none;
&::after {
transform: rotate(180deg);
}
}

.options {
@apply border-lsd-charcoal flex flex-col rounded-b-lg border border-t-0;
a {
@apply text-lsd-gray hover:text-lsd-white rounded-none py-3 text-sm;
}
a + a {
@apply border-lsd-charcoal border-t;
}
}
}
}
}
43 changes: 43 additions & 0 deletions frontend/templates/emails/event_confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,26 @@ <h1 class="title">
>View your confirmation</a
>
</div>
<table class="calendar" role="presentation" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<p class="label">Add to calendar</p>
<p class="links">
<a href="{{ "" | url }}/e/{{ event.slug }}/event.ics">Apple</a>
<span>&middot;</span>
<a href="{{ event | calendar_url("google") }}">Google</a>
<span>&middot;</span>
<a href="{{ event | calendar_url("outlook") }}">Outlook</a>
<span>&middot;</span>
<a href="{{ event | calendar_url("office") }}">Microsoft 365</a>
<span>&middot;</span>
<a href="{{ event | calendar_url("yahoo") }}">Yahoo</a>
<span>&middot;</span>
<a href="{{ "" | url }}/e/{{ event.slug }}/event.ics">.ics</a>
</p>
</td>
</tr>
</table>
</article>
{% endblock %}

Expand Down Expand Up @@ -71,5 +91,28 @@ <h1 class="title">
margin-top: 32px;
background-color: #1e1b19;
}
.calendar {
width: 100%;
margin-top: 24px;
}
.calendar .label {
color: #878787;
font-size: 12px;
letter-spacing: 0.2px;
text-transform: uppercase;
margin: 0 0 8px;
}
.calendar .links {
margin: 0;
font-size: 14px;
line-height: 24px;
}
.calendar .links span {
color: #878787;
padding: 0 4px;
}
.calendar .links a {
white-space: nowrap;
}
</style>
{% endblock %}
20 changes: 20 additions & 0 deletions frontend/templates/events/rsvp_manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ <h1>Thank you.</h1>
Your contribution has been received. A confirmation email will be sent
to you{% if rsvps.len() > 1 %}and your guests{% endif %} shortly.
</p>
<p class="when">
<time datetime="{{ event.start }}">{{ event.start | format_datetime("%a %m.%d.%Y") }}</time>
&middot;
<time datetime="{{ event.start }}">{{ event.start | format_datetime("%-I:%M%p") }}</time>
{% if let Some(end) = event.end %}
&ndash;
<time datetime="{{ end }}">{{ end | format_datetime("%-I:%M%p") }}</time>
{% endif %}
</p>
</header>
<div id="events/rsvp/summary">
<div class="info">
Expand Down Expand Up @@ -93,6 +102,17 @@ <h1>Thank you.</h1>
<button class="add-guests">Add guests</button>
</form>
{% endif %}
<details class="calendar">
<summary>Add to calendar</summary>
<div class="options">
<a href="/e/{{ event.slug }}/event.ics">Apple</a>
<a href="{{ event | calendar_url("google") }}" target="_blank" rel="noopener">Google</a>
<a href="{{ event | calendar_url("outlook") }}" target="_blank" rel="noopener">Outlook</a>
<a href="{{ event | calendar_url("office") }}" target="_blank" rel="noopener">Microsoft 365</a>
<a href="{{ event | calendar_url("yahoo") }}" target="_blank" rel="noopener">Yahoo</a>
<a href="/e/{{ event.slug }}/event.ics">Other (.ics)</a>
</div>
</details>
<a
class="contact"
href="{{ "" | mailto }}?subject=Help%20with%20reservation%20{{ session.token }}%20for%20{{ event.title | urlencode }}"
Expand Down
Loading
Loading