@ -1,12 +1,176 @@ | |||||
.box { | |||||
z-index: 1000; | |||||
/* Test */ | |||||
/* only load with child template */ | |||||
.mobile_placeholder { | |||||
display: flex; | |||||
justify-content: center; | |||||
} | |||||
.open { | |||||
position: fixed; | |||||
height: 70vh; | |||||
width: 90vw; | |||||
background-color: #fff; | |||||
top: 25vh; | |||||
display: grid; | |||||
grid-template-rows: repeat(4, 1fr); | |||||
border-style: solid; | |||||
border-image: linear-gradient(#BDD4E7, #8693AB) 30; | |||||
} | |||||
.open .box { | |||||
/* background-image: url('/assets/img/spider_out_bw.webp'); */ | |||||
background-size: cover; | |||||
background-repeat: no-repeat; | |||||
height: inherit; | |||||
width: inherit; | |||||
opacity: 20%; | |||||
grid-row: 1/5; | |||||
} | |||||
.content { | |||||
height: inherit; | |||||
width: inherit; | |||||
display: grid; | |||||
grid-template-rows: .5fr .25fr 1fr .45fr; | |||||
} | |||||
.content h2 { | |||||
grid-row: 1; | |||||
display: grid; | |||||
justify-content: center; | |||||
align-items: center; | |||||
text-transform: uppercase; | |||||
font-size: 6.5vh; | |||||
margin: 6vh 0 4vh 0; | |||||
} | |||||
.content h3 { | |||||
grid-row: 2; | |||||
display: grid; | |||||
text-transform: uppercase; | |||||
font-size: 3vh; | |||||
margin: 0; | |||||
line-height: 5vh; | |||||
text-align: center; | |||||
} | |||||
.content p { | |||||
font-size: 1.5vh; | |||||
text-align: center; | |||||
line-height: 3.5vh; | |||||
margin-top: 2vh; | |||||
} | |||||
.content a { | |||||
grid-row: 4; | |||||
display: grid; | |||||
justify-items: center; | |||||
align-items: center; | |||||
height: 4vh; | |||||
width: 10vw; | |||||
width: 30vw; | |||||
border: .5vw solid #000; | |||||
justify-self: center; | |||||
align-self: center; | |||||
margin-top: 2vh; | |||||
color: #000; | |||||
font-size: 1.95vh; | |||||
cursor: pointer; | |||||
z-index: 2; | |||||
background-position: right bottom; | |||||
transition: all .75s ease-out; | |||||
} | |||||
.content a:hover { | |||||
background: linear-gradient(to right, #8693AB 5%, #BDD4E7 95%); | |||||
background-size: 200% 100%; | |||||
background-position: left bottom; | |||||
border: .5vw solid #8693AB; | |||||
} | |||||
.close { | |||||
height: 10vh; | |||||
width: auto; | |||||
align-self: flex-start; | |||||
color: #e5e7e6; | |||||
position: fixed; | |||||
top: 15vh; | |||||
left: 80vw; | |||||
} | |||||
input { | |||||
height: 20vw; | |||||
width: 20vh; | |||||
z-index: 200; | |||||
opacity: 0%; | |||||
cursor: pointer; | |||||
position: fixed; | position: fixed; | ||||
top: 15vh; | |||||
left: 80vw; | |||||
} | |||||
input:checked ~ .open { | |||||
display: none; | |||||
} | |||||
input:checked ~ .close { | |||||
display: none; | |||||
} | |||||
input:hover ~ .close { | |||||
animation: shine 4s ease-in forwards; | |||||
} | |||||
@keyframes shine { | |||||
0% { | |||||
stroke: url('#myGradient'); | |||||
} | |||||
50% { | |||||
stroke: url('#myGradient2'); | |||||
} | |||||
100% { | |||||
stroke: url('#myGradient'); | |||||
} | |||||
} | |||||
@media (min-height: 750px) { | |||||
.open { | |||||
max-height: 60vh; | max-height: 60vh; | ||||
max-width: 80vw; | |||||
top: 680px; | |||||
left: 155px; | |||||
display: flex; | |||||
margin: 0; | |||||
background-color: fuchsia; | |||||
opacity: 85%; | |||||
} | |||||
} | |||||
} | |||||
@media (min-height: 800px) { | |||||
.open { | |||||
max-height: 55vh; | |||||
} | |||||
} | |||||
@media (min-height: 880px) { | |||||
.open { | |||||
max-height: 45vh; | |||||
} | |||||
} | |||||
@media (min-height: 1000px) { | |||||
.open { | |||||
max-height: 40vh; | |||||
} | |||||
} | |||||
@media (min-height: 1070px) { | |||||
.open { | |||||
max-height: 35vh; | |||||
} | |||||
} | |||||
@ -1,8 +1,41 @@ | |||||
{% extends "index.html" %} | {% extends "index.html" %} | ||||
{% block head %} | |||||
{{ super() }} | |||||
<link rel="stylesheet" href="box.css"/> | |||||
{% endbock%} | |||||
<!-- load into index template --> | |||||
{% block child %} | {% block child %} | ||||
<h1>Hello from child template 1 !</h1> | |||||
<div class="mobile_placeholder"> | |||||
<form action="/" method="get"> | |||||
<input type="submit"> | |||||
<svg class="close" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> | |||||
<defs> | |||||
<linearGradient id="myGradient" gradientTransform="rotate(90)"> | |||||
<stop offset="5%" stop-color="#8693AB" /> | |||||
<stop offset="95%" stop-color="#BDD4E7" /> | |||||
</linearGradient> | |||||
<linearGradient id="myGradient2" gradientTransform="rotate(45)"> | |||||
<stop offset="5%" stop-color="#BDD4E7" /> | |||||
<stop offset="95%" stop-color="#8693AB" /> | |||||
</linearGradient> | |||||
</defs> | |||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"></path> | |||||
</svg> | |||||
</form> | |||||
<div class="open"> | |||||
{# Test - add language handling#} | |||||
<div class="box"> | |||||
</div> | |||||
<div class="content"> | |||||
<h2>Tekla</h2> | |||||
<h3>Automatic Biodynamic Gardening for Everyone</h3> | |||||
<p>Tekla is a garden robot that makes automatic and biodynamic farming accessible for everyone. | |||||
The low-tech robot gathers informational and relational data in natural environments. | |||||
Communicating with the TeklApp it determines which organisms work best together in any given environment. | |||||
All Spiders communicate trough the network the Kaos Cube spins. | |||||
Tekla monitors the plants and takes care of their needs until it's time for it to harvest the free organic and local crops. | |||||
</p> | |||||
<a href="/spider">MORE</a> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
{% endblock%} | {% endblock%} |