reworked structure

This commit is contained in:
neko 2020-01-25 20:23:41 +01:00
parent 7292149022
commit 5e70fd84bf
6 changed files with 79 additions and 74 deletions

View File

@ -2,9 +2,9 @@
<html lang="en">
{% include head.html %}
<body>
<div class="screen">
<div class="screen-image"></div>
<div class="screen-content crt">
<div class="screen-image">
<div class="crt crt-flicker">
<div class="screen-content crt-shadow">
<style>
.meta {
font-size: .7rem;
@ -25,5 +25,6 @@
{% include footer.html %}
</div>
</div>
</div>
</body>
</html>

View File

@ -1,7 +1,10 @@
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
<body class="crt">
<body>
<div class="screen-image">
<div class="screen-content crt">
<style>
.meta {
font-size: .7rem;
@ -22,5 +25,7 @@
<!-- footer -->
{% include footer.html %}
</div>
</div>
</body>
</html>

View File

@ -1,6 +1,6 @@
---
title: About
layout: page
layout: page-screen
---
Lorem ipsum.

View File

@ -2,35 +2,29 @@
layout: none
---
.screen{
margin-left: auto;
margin-right: auto;
align-content: center;
height: 700px;
width: 900px;
pointer-events: none;
}
.screen-image{
margin-left: auto;
margin-right: auto;
position: fixed;
align-content: center;
background-image: url({{site.baseurl}}/assets/images/crt2.png);
background-repeat: no-repeat;
background-size: contain;
background-position: center;
height: 700px;
width: 900px;
background-position: top;
pointer-events: none;
z-index: 1;
width: 1000px;
height: 830px;
}
.screen-content{
position: relative;
top: 121px;
left: 128px;
height: 492px;
width: 645px;
top: 141px;
left: 117px;
overflow-y: auto;
overflow-x: hidden;
pointer-events: all !important;
}
/*z-index: -1;*/
width: 768px;
height: 584px;
pointer-events: auto !important;
background: #241c11 !important;
;

View File

@ -139,22 +139,18 @@ http://aleclownes.com/2017/02/01/crt-display.html
text-shadow: 2.6208764473832513px 0 1px rgba(0,30,255,0.1), -2.6208764473832513px 0 1px rgba(255,0,80,0.2), 0 0 3px;
}
}
.crt::after {
.crt-flicker {
content: " ";
display: block;
position: absolute;
top: auto;
left: auto;
bottom: auto;
right: auto;
pointer-events: none;
animation: flicker 3s infinite;
background: rgba(18, 16, 16, 0.1);
opacity: 0;
z-index: 2;
pointer-events: none;
animation: flicker 3s infinite;
width: 640px;
height: 480px;
}
/*
.crt::before {
content: " ";
display: block;
@ -168,6 +164,15 @@ http://aleclownes.com/2017/02/01/crt-display.html
width: 640px;
height: 480px;
}
.crt {
*/
.crt{
position: relative;
overflow: hidden;
height: 100%;
width: 100%;
}
.crt-shadow {
animation: textShadow 5s infinite;
}

View File

@ -12,10 +12,10 @@
body {
font-size: 12px;
background: #241c11 !important;
display: flex;
flex-flow: column;
height: 100%;
background-color: black;
}