-rw-r--r-- templates/index.html
1 {% extends "base.html" %} 2 3 4 {% block extra_meta %} 5 <style> 6 #home { /* this flex is only used on small screens */ 7 display: flex; 8 height: 100%; 9 width: 100%; 10 justify-content: space-evenly; 11 align-items: center; 12 } 13 14 .win { 15 position: absolute; 16 border-color: #000; 17 margin: 10px 0; 18 width: 428px; 19 height: 238px; 20 box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.3); 21 border: 6px solid; 22 background-clip: padding-box; 23 overflow: hidden; 24 display: flex; 25 flex-direction: column; 26 flex: 0 0 auto; 27 } 28 29 .win:hover 30 { 31 border-color: var(--trim); 32 } 33 34 @keyframes blink{50%{opacity:0;}} 35 #c{ 36 color: var(--trim); 37 animation: blink 2s step-start infinite; 38 } 39 40 #home2 { 41 top: calc(50% + 22px); 42 left: calc(50% - 352px); 43 } 44 45 #home1 { 46 top: calc(50% - 260px); 47 left: calc(50% - 88px); 48 } 49 50 .bar { 51 border-top-style: solid; 52 border-width: 18px; 53 border-color: inherit; 54 } 55 56 .wc { 57 font-size: 1.1em; 58 display: flex; 59 flex: 1 1 auto; 60 align-items: center; 61 justify-content: center; 62 align-self: center; 63 width: 75%; 64 line-height: 1.4em; 65 padding-bottom: 0.5em; 66 } 67 68 @media (max-height: 580px) { 69 .win { 70 position: initial; 71 } 72 } 73 74 @media (min-width: 491px) and (max-width: 780px) { 75 #home1 { 76 right: 5%; 77 margin-left: auto; 78 } 79 #home2 { 80 left: 5%; 81 margin-right: auto; 82 } 83 } 84 85 @media (max-width: 490px) { 86 .win { 87 width: 88%; 88 position: initial; 89 } 90 } 91 92 @media (max-width: 960px) { 93 #home { 94 flex-direction: column; 95 } 96 } 97 </style> 98 {% endblock %} 99 100 101 {% block content %} 102 <div id=home> 103 <div id=home1 class=win> 104 <div class=bar></div> 105 <div class=wc> 106 <div>{{ HOME1 }}<span id=c>_</span></li></div> 107 </div> 108 </div> 109 110 <div id=home2 class=win> 111 <div class=bar></div> 112 <div class=wc> 113 <div><a href=/posts.html>{{ HOME2 }}</a></div> 114 </div> 115 </div> 116 </div> 117 {% endblock %} 118