Skip to content

Commit

Permalink
Changed the margins of the item rows for aesthetic purposes. Also add…
Browse files Browse the repository at this point in the history
…ressed issue #5 by restructuring image queries, resizing and realigning the image to make it look pretty.
  • Loading branch information
Jay-Peterson committed Sep 6, 2017
1 parent c40bc44 commit 25556b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def retrieve_cover_art(instance):
result = requests.get(cover_url)
#print(cover_url, result.status_code)
if len(result.content) > 100:
return """<img src="{}" alt="{} Cover Art" />""".format(cover_url,
return """<img src="{}" alt="{} Cover Art" align="right" />""".format(cover_url,
instance.name)
return ''

Expand Down
4 changes: 4 additions & 0 deletions static/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ body { margin-top: 30px; }
border-width: 4px;
border-color: #FAEBD7;
margin:5px;
}
img{
max-width:200px;
max-height:300px;
}
2 changes: 1 addition & 1 deletion templates/instance.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h3>{% if instance.datePublished|is_list %}
{% for row in instance.workExample %}
{% set loc = row.provider %}
{% set items = [row,] %}
<div class="col-12 card">
<div class="col-12 card" style="margin-top:1em">
<div class="row">
<div class="col-lg-auto">
<iframe
Expand Down

0 comments on commit 25556b5

Please sign in to comment.