codeandtalk.com icon indicating copy to clipboard operation
codeandtalk.com copied to clipboard

Include logo of each event

Open szabgab opened this issue 7 years ago • 5 comments

szabgab avatar Aug 26 '17 09:08 szabgab

Would you like to create an imgs folder? I could start gathering as many event logos as possible and place them there.

studiozandra avatar Oct 21 '19 19:10 studiozandra

I've added html/imgs.

szabgab avatar Oct 25 '19 05:10 szabgab

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.

studiozandra avatar Oct 26 '19 17:10 studiozandra

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.

szabgab avatar Oct 26 '19 17:10 szabgab

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!

studiozandra avatar Oct 26 '19 18:10 studiozandra