mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 09:03:06 +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", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user