updated index based on xpub1 feedback
parent
d320f23bb6
commit
a2c7987159
@ -1,7 +1,48 @@
|
|||||||
{% extends "call/base.html" %}
|
{% extends "call/base.html" %}
|
||||||
|
{% load static %}
|
||||||
|
{% block extrahead %}
|
||||||
|
<link rel="stylesheet" href="{% static 'call/guestbook.css'%}">
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
background: hsl({{bg_hue|default:"0"}}deg {{bg_sat|default:"0"}}% {{bg_lightness|default:"66"}}%);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
@page {
|
||||||
|
/* size: 2160px 3840px; */
|
||||||
|
size: 432px 768px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.flex-container {
|
||||||
|
height: 100%;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
#page {
|
||||||
|
position: absolute;
|
||||||
|
left: 0; right: 0;
|
||||||
|
top: 0; bottom: 0;
|
||||||
|
}
|
||||||
|
div.caption div.captiontext {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
div.caption {
|
||||||
|
/* border: 1px solid black; */
|
||||||
|
position: absolute;
|
||||||
|
/* left: -480px;
|
||||||
|
width: 960px; */
|
||||||
|
left: -120px;
|
||||||
|
width: 240px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<img src="{{object.image.url}}">
|
<div id="page">
|
||||||
<img src="{% url 'creature_frame' object.id %}">
|
<div class="flex-container">
|
||||||
<p>{{object.caption}}</p>
|
<div class="creature"><img src="{% url 'creature_frame' creature.id %}?cell={{cell}}"><div class="centerbottom"><div class="caption"><div class="corner"></div><div class="captiontext">{{creature.caption}}</div></div></div></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue