Improve welcome page

* Improve code readability of calendar details
* Add link to AE Dev discord in useful links
* Add link to github at the bottom
This commit is contained in:
2025-01-05 16:42:26 +01:00
parent 7f4cc5fb0f
commit a8702d4f5e
6 changed files with 31 additions and 23 deletions

View File

@ -77,17 +77,14 @@ export class IcsCalendar extends inheritHtmlElement("div") {
const makePopupTitle = (event: EventImpl) => {
const row = document.createElement("div");
const title = document.createElement("h4");
const time = document.createElement("span");
title.setAttribute("class", "event-details-row-content");
title.textContent = event.title;
time.setAttribute("class", "event-details-row-content");
time.textContent = `${this.formatDate(event.start)} - ${this.formatDate(event.end)}`;
row.appendChild(title);
row.appendChild(time);
row.innerHTML = `
<h4 class="event-details-row-content">
${event.title}
</h4>
<span class="event-details-row-content">
${this.formatDate(event.start)} - ${this.formatDate(event.end)}
</span>
`;
return makePopupInfo(
row,
"fa-solid fa-calendar-days fa-xl event-detail-row-icon",

View File

@ -123,7 +123,10 @@
<ul>
<li>
<i class="fa-brands fa-discord fa-xl"></i>
<a rel="nofollow" target="#" href="https://discord.gg/QvTm3XJrHR">{% trans %}Discord{% endtrans %}</a>
<a rel="nofollow" target="#" href="https://discord.gg/QvTm3XJrHR">{% trans %}Discord AE{% endtrans %}</a>
{% if user.was_subscribed %}
- <a rel="nofollow" target="#" href="https://discord.gg/QvTm3XJrHR">{% trans %}Dev Team{% endtrans %}</a>
{% endif %}
</li>
<li>
<i class="fa-brands fa-facebook fa-xl"></i>
@ -164,6 +167,3 @@
</div>
{% endblock %}