Rewrite open template to new style.
This commit is contained in:
@@ -1,94 +0,0 @@
|
|||||||
@-webkit-keyframes starrotation {
|
|
||||||
0% {
|
|
||||||
-webkit-transform: rotate(0deg);
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
25% {
|
|
||||||
-webkit-transform: rotate(90deg);
|
|
||||||
-moz-transform: rotate(90deg);
|
|
||||||
-ms-transform: rotate(90deg);
|
|
||||||
-o-transform: rotate(90deg);
|
|
||||||
transform: rotate(90deg);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
-webkit-transform: rotate(360deg);
|
|
||||||
-moz-transform: rotate(360deg);
|
|
||||||
-ms-transform: rotate(360deg);
|
|
||||||
-o-transform: rotate(360deg);
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@-moz-keyframes starrotation {
|
|
||||||
0% {
|
|
||||||
-moz-transform: rotate(0deg);
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
25% {
|
|
||||||
-moz-transform: rotate(90deg);
|
|
||||||
transform: rotate(90deg);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
-moz-transform: rotate(360deg);
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@-o-keyframes starrotation {
|
|
||||||
0% {
|
|
||||||
-o-transform: rotate(0deg);
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
25% {
|
|
||||||
-o-transform: rotate(90deg);
|
|
||||||
transform: rotate(90deg);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
-o-transform: rotate(360deg);
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes starrotation {
|
|
||||||
0% {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
25% {
|
|
||||||
transform: rotate(90deg);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
body.open {
|
|
||||||
height:100%;
|
|
||||||
background-color: #a3d165;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
font-family: verdana, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wrapper {
|
|
||||||
margin: auto;
|
|
||||||
width: 999px;
|
|
||||||
height:999px;
|
|
||||||
padding-top: 400px;
|
|
||||||
margin-top: -200px;
|
|
||||||
background-image: url(star.png);
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
animation:starrotation 10s;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
-moz-animation:starrotation 10s; /* Firefox */
|
|
||||||
-moz-animation-iteration-count: infinite;
|
|
||||||
-moz-animation-timing-function: linear;
|
|
||||||
-webkit-animation:starrotation 10s; /* Safari and Chrome */
|
|
||||||
-webkit-animation-iteration-count: infinite;
|
|
||||||
-webkit-animation-timing-function: linear;
|
|
||||||
-o-animation:starration 10s; /* Opera */
|
|
||||||
-o-animation-iteration-count: infinite;
|
|
||||||
-o-animation-timing-function: linear;
|
|
||||||
}
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
require_once '../vendor/autoload.php';
|
require_once '../vendor/autoload.php';
|
||||||
|
|
||||||
if (\FooBar\Configuration::loadConfig()->isOpen()) {
|
if (\FooBar\Configuration::loadConfig()->isOpen()) {
|
||||||
require 'isOpen.php';
|
require '../templates/open.html';
|
||||||
} else {
|
} else {
|
||||||
require '../templates/closed.html';
|
require '../templates/closed.html';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
<!DOCTYPE HTML>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="creator" value="Genetic Lifeform and Beer Operating System - GLaBOS">
|
|
||||||
<title>Nee... • IsDeFooBarOpen.nl</title>
|
|
||||||
<link rel="stylesheet" href="foobar.css" type="text/css">
|
|
||||||
</head>
|
|
||||||
<body class="closed">
|
|
||||||
<h1>Nee. De FooBar is niet open.</h1>
|
|
||||||
<h2>Ik weet het. Ik voel je pijn.</h2>
|
|
||||||
<strong id="greatest">Voor zover een website voelt natuurlijk.</strong>
|
|
||||||
<!-- This is not the greatest strong in the world, no no.
|
|
||||||
This is just attribute. -->
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<!DOCTYPE HTML>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="creator" value="Genetic Lifeform and Beer Operating System - GLaBOS">
|
|
||||||
<title>JA! • IsDeFooBarOpen.nl</title>
|
|
||||||
<link rel="stylesheet" href="foobar.css" type="text/css">
|
|
||||||
</head>
|
|
||||||
<body class="open">
|
|
||||||
<div id="wrapper">
|
|
||||||
<h1>JA! De FooBar is open.</h1>
|
|
||||||
<h2>Nu kun je weer rustig ademhalen.</h2>
|
|
||||||
<strong id="greatest">Kom gezellig even langs.</strong>
|
|
||||||
<!-- This is not the greatest strong in the world, no no.
|
|
||||||
This is just attribute. -->
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
3
src/base.scss
Normal file
3
src/base.scss
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
* {
|
||||||
|
font-family: verdana, sans-serif;
|
||||||
|
}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
@import "base";
|
||||||
@keyframes fadeOut {
|
@keyframes fadeOut {
|
||||||
0% {
|
0% {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import {startClosedAnimation} from "./closed";
|
import {startClosedAnimation} from "./closed";
|
||||||
|
import "./open"
|
||||||
|
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
if (document.body.classList.contains('open')) {
|
if (document.body.classList.contains('open')) {
|
||||||
|
|||||||
1
src/open.js
Normal file
1
src/open.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
import './open.scss';
|
||||||
32
src/open.scss
Normal file
32
src/open.scss
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
@import "base";
|
||||||
|
|
||||||
|
@keyframes starrotation {
|
||||||
|
0% {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
25% {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body.open {
|
||||||
|
height: 100%;
|
||||||
|
background-color: #a3d165;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrapper {
|
||||||
|
margin: auto;
|
||||||
|
width: 999px;
|
||||||
|
height: 999px;
|
||||||
|
padding-top: 400px;
|
||||||
|
margin-top: -200px;
|
||||||
|
background-image: url(star.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
animation: starrotation 10s;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
}
|
||||||
18
templates/open.html
Normal file
18
templates/open.html
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html lang="nl">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="creator" value="Genetic Lifeform and Beer Operating System - GLaBOS">
|
||||||
|
<title>JA! • IsDeFooBarOpen.nl</title>
|
||||||
|
<script src="bundle.js"></script>
|
||||||
|
</head>
|
||||||
|
<body class="open">
|
||||||
|
<div id="wrapper">
|
||||||
|
<h1>JA! De FooBar is open.</h1>
|
||||||
|
<h2>Nu kun je weer rustig ademhalen.</h2>
|
||||||
|
<strong id="greatest">Kom gezellig even langs.</strong>
|
||||||
|
<!-- This is not the greatest strong in the world, no no.
|
||||||
|
This is just attribute. -->
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user