Initial commit

This commit is contained in:
Alexander Polynomdivision 2018-08-15 21:15:12 +02:00
commit f5b2483b1b
6 changed files with 2301 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules/

2194
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

14
package.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "seminarfach",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"lite-server": "^2.4.0"
}
}

BIN
public/assets/stock.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

44
public/index.css Normal file
View File

@ -0,0 +1,44 @@
body {
background-image: ;
background-size: cover;
}
.content:before {
content: "";
position: fixed;
left: 0;
right: 0;
z-index: -1;
display: block;
background-image: url("assets/stock.jpg");
background-size: cover;
width: 1920px;
height: 1080px;
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
-ms-filter: blur(5px);
filter: blur(5px);
}
.content {
position: fixed;
left: 0;
right: 0;
z-index: 0;
margin-left: 20px;
margin-right: 20px;
}
.card-body {
margin: 10px;
text-align: center;
}
.center {
display: flex;
justify-content: center;
align-items: center;
}

48
public/index.html Normal file
View File

@ -0,0 +1,48 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{Arbeitstitel}</title>
<link rel="stylesheet" href="./index.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
</head>
<body>
<script>
// Just show a happy little snackbar
function showSnackbar() {
const sb = document.querySelector("#info-sb");
const data = {
message: 'Coming (hopefully) soon!'
};
sb.MaterialSnackbar.showSnackbar(data);
}
</script>
<!-- Flexbox needs a height to be set -->
<div class="center content" style="height: 100%">
<div class="demo-card-wide mdl-card mdl-shadow--2dp">
<div class="card-body">
<h1>{Arbeitstitel}</h1>
<h2>A fun way to studying Latin</h2>
A project for the Seminarfach of year 12.
</div>
<div class="mdl-card__actions mdl-card--border">
<button id="start-btn" onClick="showSnackbar()" class="mdl-button mdl-js-button mdl-button--primary">
Start learning
</button>
<div class="mdl-tooltip" data-mdl-for="start-btn">
Coming (hopefully) soon!
</div>
</div>
</div>
</div>
<div id="info-sb" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
</body>
</html>