To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 6267c14b authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Add loading icon on index.html (Resolves #21)

parent 171c4d2a
......@@ -102,7 +102,7 @@
"selector-list-comma-newline-before": "never-multi-line",
"selector-list-comma-space-after": "never",
"selector-list-comma-space-before": "never",
"rule-empty-line-before": ["always", {
"rule-empty-line-before": ["always-multi-line", {
"except": ["after-single-line-comment", "first-nested"]
}],
"media-feature-colon-space-after": "always",
......
......@@ -11,7 +11,7 @@
"build": "webpack -p --config webpack.config.prod.js",
"server": "webpack-dev-server --hot --inline",
"lint": "npm run eslint && npm run stylelint",
"eslint": "eslint src/**",
"eslint": "eslint src/*.js src/**/*.js",
"stylelint": "stylelint 'src/**/*.less' --synthax less",
"format": "prettier --write '**/*.{js,jsx}'"
},
......@@ -51,6 +51,7 @@
"eslint-plugin-prettier": "^2.6.0",
"favicons-webpack-plugin": "0.0.9",
"file-loader": "^1.1.11",
"html-webpack-inline-svg-plugin": "^1.2.4",
"html-webpack-plugin": "^3.2.0",
"less": "^3.0.4",
"less-loader": "^4.1.0",
......
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes popup {
from { opacity: 0; }
90% { opacity: 0; }
to { opacity: 100%; }
}
html,body {
height: 100%;
margin: 0;
padding: 0;
}
.loader {
position: relative;
height: 100%;
width: 100%;
animation-name: popup;
animation-duration: 1000ms;
}
.loader img {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
animation-name: spin;
animation-duration: 2500ms;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
</style>
</head>
<body>
<div class="loader">
<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wI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DEwLjk1NyA4LjM3OSwyMi4yMDcgMTAuOTI5LDMzLjY0NCBsIDU3LjM0LDguODk1IiAvPjwvZz48L2c+PC9nPjwvc3ZnPg==" />
</div>
</body>
</html>
const HtmlWebpackPlugin = require('html-webpack-plugin');
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
const HtmlWebpackInlineSVGPlugin = require('html-webpack-inline-svg-plugin');
const config = {
context: `${__dirname}/src`, // `__dirname` is root of project and `src` is source
......@@ -158,8 +159,10 @@ const config = {
new HtmlWebpackPlugin({
title: 'AMIV an der ETH',
filename: 'index.html',
template: 'index.html',
hash: true,
}),
new HtmlWebpackInlineSVGPlugin(),
],
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment