Browse Source

style & formatting

graphics
Cailean Finn 4 weeks ago
parent
commit
b6d95f6064
  1. 11
      app.py
  2. 31
      public/css/styles.css
  3. 2
      templates/list.html

11
app.py

@ -57,10 +57,11 @@ def get_content_by_title(title, pre_type):
def process_content(entries, type):
content_list = []
times = []
dates = []
exh_type = None
for entry in entries:
times = []
dates = []
if type == 'event':
times = getattr(entry, f'{type}_times')
dates = getattr(entry, f'{type}_dates')
@ -102,9 +103,9 @@ def process_content(entries, type):
}
content_list.append(content)
# Sort the content list by the 'title' key alphabetically
content_list.sort(key=lambda x: x['title'].lower())
print(dates)
# Sort the content list by the 'title' key alphabetically
content_list.sort(key=lambda x: x['title'].lower())
return content_list

31
public/css/styles.css

@ -3,6 +3,8 @@ html {
margin: 0;
}
body {
font-family: 'Inter', sans-serif;
margin: 0;
@ -572,8 +574,19 @@ hr {
font-size: 18px;
text-align: justify;
text-indent: 2rem;
line-height: 20px;
}
#article-information li {
text-indent: 0%;
}
#article-information ul {
text-indent: 0%;
text-align: left;
}
#article-information em {
font-size: 14px;
font-weight: 400;
@ -785,7 +798,17 @@ animation: 2s fadeInUp;
/* Mobile breakpoint (less than 768px) */
@media (max-width: 768px) {
.page-info-cont {
font-size: 18px;
}
.list-info-text {
font-size: 16px;
line-height: 18px;
}
#index-support {
order: -2;
}
@ -994,11 +1017,11 @@ animation: 2s fadeInUp;
}
#article-artists {
font-size: 18px;
font-size: 16px;
}
#article-information {
font-size: 18px;
font-size: 16px;
padding-bottom: 100px;
}
@ -1018,11 +1041,11 @@ animation: 2s fadeInUp;
}
.page-info-title {
font-size: 20px;
font-size: 16px;
}
.page-info-entry {
font-size: 20px;
font-size: 16px;
}
#container-article {

2
templates/list.html

@ -14,7 +14,7 @@
<div id="main-container">
<div id="list-info-container">
{% if title == 'Conferences'%}
<p id="list-info-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ornare quis mauris consequat molestie. Cras porta porta dignissim.</p>
<p id="list-info-text">Beta’s conference of discussions and workshops will return this year including keynotes from Abeba Birhane and Kay Watson with the full programme due to be announced and tickets available from mid September.</p>
{% endif %}
{% if title == 'Exhibitions'%}
<p class="list-info-text"><u>This year Beta Festival will have two main exhibitions:</u></p>

Loading…
Cancel
Save