add new logo
This commit is contained in:
12
poster.py
12
poster.py
@@ -36,18 +36,18 @@ def render_table(events:list[dict])-> str:
|
||||
return html
|
||||
|
||||
def render_page(table: str) -> str:
|
||||
head = "<head>\n\t<meta charset=\"UTF-8\">\n\t<link rel=\"stylesheet\"\
|
||||
href=\"styles/poster.css\">\n<head>"
|
||||
head = "<head><meta charset=\"UTF-8\"><link rel=\"stylesheet\"\
|
||||
href=\"styles/poster.css\"><head>"
|
||||
header = "<h1>DECENTRALA</h1>"
|
||||
subheader = f"<h2>Plan za {MONTHS_SR[NEXT_MONTH.month - 1]}</h2>"
|
||||
link = "<div id=link>dmz.rs</div>"
|
||||
link = "<div id=link><img src=\"/img/logo-light.svg\"> dmz.rs</div>"
|
||||
p1 = "<p>Radionice počinju u <strong>19h</strong> u Društvenom centru Krov\
|
||||
u <strong>Kraljice Marije 47</strong>.</p>"
|
||||
p2 = "<p>Ulaz u zgradu je u prolazu pored Štark prodavnice slatkiša, odmah\
|
||||
pored menjačnice. DC Krov je na poslednjem spratu.</p>"
|
||||
return f"<html>\n{head}\n<body>\n\t<main>\n\t\t{header}\n\t\t{subheader}\
|
||||
\n\t\t<table>\n{table}\t\t</table>\n\t\t{p1}\n\t\t{p2}\n\t\t{link}\n\t</main>\
|
||||
\n</body>\n</html>"
|
||||
footer = f"{p1}{p2}{link}"
|
||||
return f"<html>{head}<body><main>{header}{subheader}\
|
||||
<table>{table}</table>{footer}</main></body></html>"
|
||||
|
||||
def main():
|
||||
events = load_events(EVENTS_CSV_PATH)
|
||||
|
Reference in New Issue
Block a user