Skip to content

Commit

Permalink
Merge pull request #502 from artoonie/better-embed-footer
Browse files Browse the repository at this point in the history
improve embed header
  • Loading branch information
artoonie authored Jul 27, 2024
2 parents 3499791 + 3790404 commit dfc88af
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
Binary file added static/visualizer/icon_popout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions static/visualizer/visualize-common.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,19 @@ svg {
text-align: center;
padding-top: 5px;
padding-bottom: 5px;
vertical-align: center;
vertical-align: top;
}
#embedded-footer a {
color: white;
}
#embedded-footer img {
vertical-align: top;
}

.btn {
font-size: 0.8rem;
}
.sendfeedback {
.popout {
position: fixed;
right: 5px;
font-size: .75em;
Expand Down
15 changes: 9 additions & 6 deletions templates/visualizer/visualize-ballotpedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@
</div>
</div>
<div id="embedded-footer">
<a href="{% url 'visualize' config.slug %}" target="_blank">
<img src="{% static 'visualizer/logo-white.png' %}" width="100px"/>
</a>
<div class="sendfeedback">
<a href="https://docs.google.com/forms/d/e/1FAIpQLSdwMw6xYNyxbZiEtuB0G9F7avQhkLY_jmlXjNOBPA01qR4y3g/viewform?usp=sf_link" target="_blank">Send Feedback</a>
</div>
Visualizations by
<a href="{% url 'visualize' config.slug %}" target="_blank">
<img src="{% static 'visualizer/logo-white.png' %}" width="100px"/>
</a>
<div class="popout">
<a href="{% url 'visualize' config.slug %}" target="_blank">
<img src="{% static 'visualizer/icon_popout.png' %}" width="15px"/>
</a>
</div>
</div>
</div>

Expand Down
15 changes: 9 additions & 6 deletions templates/visualizer/visualize-embedded.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@
{% endif %}
</div>
<div id="embedded-footer">
<a href="{% url 'visualize' config.slug %}" target="_blank">
<img src="{% static 'visualizer/logo-white.png' %}" width="100px"/>
</a>
<div class="sendfeedback">
<a href="https://docs.google.com/forms/d/e/1FAIpQLSdwMw6xYNyxbZiEtuB0G9F7avQhkLY_jmlXjNOBPA01qR4y3g/viewform?usp=sf_link" target="_blank">Send Feedback</a>
</div>
Visualizations by
<a href="{% url 'visualize' config.slug %}" target="_blank">
<img src="{% static 'visualizer/logo-white.png' %}" width="100px"/>
</a>
<div class="popout">
<a href="{% url 'visualize' config.slug %}" target="_blank">
<img src="{% static 'visualizer/icon_popout.png' %}" width="15px"/>
</a>
</div>
</div>
</div>

Expand Down

0 comments on commit dfc88af

Please sign in to comment.