codeandtalk.com
codeandtalk.com copied to clipboard
Include logo of each event
Would you like to create an imgs folder? I could start gathering as many event logos as possible and place them there.
I've added html/imgs.
Ok, I got a bunch of logos. I guess they should be small, maybe 100 x 100px. I'll try batch resizing them with a GIMP script. Also, some of the logos are white. So they will become invisible on white background. I'll think more about how to handle them.
Before you do a lot it might be a good idea to try one or a few and see how to integrate them in the site so events will look ok both with and without logo.
Yes, you are right. I only know a little Flask. I was thinking it must be something like this: in cat/templates/event.html
{% if event['logo'] %}
<div>
<a href="{{ event['website'] }}"><img src="{{ event['logo'] }}" alt="event logo"></a>
</div>
{% endif %}
But I am still studying!