mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
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:
@ -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",
|
||||
|
@ -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 %}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user