optimised UI
This commit is contained in:
@@ -82,12 +82,9 @@ app.get( '/assets/:filename', ( request, response ) => {
|
|||||||
|
|
||||||
// Serve 404 pages
|
// Serve 404 pages
|
||||||
app.use( ( req, res, next ) => {
|
app.use( ( req, res, next ) => {
|
||||||
if ( req.query.lang == 'en' ) {
|
res.status( 404 ).sendFile( path.join( __dirname + '/ui/404.html' ) );
|
||||||
res.status( 404 ).sendFile( path.join( __dirname + '/ui/en/errorResponses/404.html' ) );
|
|
||||||
} else {
|
|
||||||
res.status( 404 ).sendFile( path.join( __dirname + '/ui/de/errorResponses/404.html' ) );
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const PORT = process.env.PORT || 8080;
|
||||||
|
|
||||||
http.createServer( app ).listen( 8080 );
|
http.createServer( app ).listen( PORT );
|
||||||
@@ -3,8 +3,8 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>404 - Page not Found - janishutz.com</title>
|
<title>404 - Page not Found - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<script src="/js/jquery.js"></script>
|
<script defer src="/js/jquery.js"></script>
|
||||||
<script src="/js/basicanimations.js"></script>
|
<script defer src="/js/basicanimations.js"></script>
|
||||||
<link rel="stylesheet" href="/css/mainstyle.css">
|
<link rel="stylesheet" href="/css/mainstyle.css">
|
||||||
<style>
|
<style>
|
||||||
.errorpage {
|
.errorpage {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<title>About - janishutz.com</title>
|
<title>About - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="./css/mainstyle.css">
|
<link rel="stylesheet" href="./css/mainstyle.css">
|
||||||
<script src="./js/jquery.js"></script>
|
<script defer src="./js/jquery.js"></script>
|
||||||
<script src="./js/basicanimations.js"></script>
|
<script defer src="./js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<title>About - janishutz.com</title>
|
<title>About - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="./css/mainstyle.css">
|
<link rel="stylesheet" href="./css/mainstyle.css">
|
||||||
<script src="./js/jquery.js"></script>
|
<script defer src="./js/jquery.js"></script>
|
||||||
<script src="./js/basicanimations.js"></script>
|
<script defer src="./js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="ContentToInclude"></div>
|
<div id="ContentToInclude"></div>
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ html, body {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
background-color: rgba(70, 72, 167, 0.5);
|
background-color: rgba(70, 72, 167, 0.5);
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
@@ -42,9 +45,9 @@ html, body {
|
|||||||
padding-top: 5%;
|
padding-top: 5%;
|
||||||
padding-bottom: 5%;
|
padding-bottom: 5%;
|
||||||
border-color: black;
|
border-color: black;
|
||||||
border-style: inset;
|
border-style: none;
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
background-color:dimgray;
|
background-color: rgba(195, 195, 229, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -66,7 +69,7 @@ html, body {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
color: white;
|
color: white;
|
||||||
background-color:blue;
|
background-color:rgba(0, 40, 131, 1);
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,58 +1,66 @@
|
|||||||
.logo {
|
/*
|
||||||
width: 5%;
|
*
|
||||||
display: inline-block;
|
* janishutz.com - menustyle.css
|
||||||
margin-left: 2%;
|
*
|
||||||
position: relative;
|
*
|
||||||
vertical-align: middle;
|
* Created 2023 by Janis Hutz
|
||||||
}
|
*/
|
||||||
|
|
||||||
.menu-container {
|
.Menu {
|
||||||
display: inline-flex;
|
|
||||||
width: 80%;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stickybox {
|
|
||||||
display: inline;
|
|
||||||
position: sticky;
|
|
||||||
position: -webkit-sticky;
|
|
||||||
top: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Menu {
|
|
||||||
margin-top: -1%;
|
margin-top: -1%;
|
||||||
padding: 2%;
|
padding: 2%;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
list-style-type: none;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: #38444d;
|
background-color: #38444d;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menubutton {
|
.logo {
|
||||||
|
width: 5%;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 2%;
|
||||||
|
position: relative;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-container {
|
||||||
|
display: inline-flex;
|
||||||
|
list-style-type: none;
|
||||||
|
width: 80%;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stickybox {
|
||||||
|
display: inline;
|
||||||
|
position: sticky;
|
||||||
|
position: -webkit-sticky;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubutton {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
color: white;
|
color: white;
|
||||||
border-radius: 0%;
|
border-radius: 0%;
|
||||||
background-color: rgba(0,0,0,0);
|
background-color: rgba(0,0,0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menubutton:hover {
|
.menubutton:hover {
|
||||||
border-radius: 0%;
|
border-radius: 0%;
|
||||||
animation-name: fadein;
|
animation-name: fadein;
|
||||||
animation-duration: 300ms;
|
animation-duration: 300ms;
|
||||||
background-color: darkblue;
|
background-color: darkblue;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subitems:hover {
|
.subitems:hover {
|
||||||
animation-name: fadein;
|
animation-name: fadein;
|
||||||
animation-duration: 300ms;
|
animation-duration: 300ms;
|
||||||
background-color: darkblue;
|
background-color: darkblue;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: lightseagreen;
|
background-color: lightseagreen;
|
||||||
@@ -60,14 +68,14 @@
|
|||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadein {
|
@keyframes fadein {
|
||||||
0% {opacity: 0;}
|
0% {opacity: 0;}
|
||||||
100% {opacity: 1;}
|
100% {opacity: 1;}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes growDown {
|
@keyframes growDown {
|
||||||
0% {
|
0% {
|
||||||
transform: scaleY(0)
|
transform: scaleY(0)
|
||||||
}
|
}
|
||||||
@@ -77,9 +85,9 @@
|
|||||||
100% {
|
100% {
|
||||||
transform: scaleY(1)
|
transform: scaleY(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes rotateMenu {
|
@keyframes rotateMenu {
|
||||||
0% {
|
0% {
|
||||||
transform: rotateX(-90deg)
|
transform: rotateX(-90deg)
|
||||||
}
|
}
|
||||||
@@ -89,14 +97,13 @@
|
|||||||
100% {
|
100% {
|
||||||
transform: rotateX(0deg)
|
transform: rotateX(0deg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown:hover .dropdown-menu {
|
.dropdown:hover .dropdown-menu {
|
||||||
display: block;
|
display: block;
|
||||||
animation: rotateMenu 300ms ease-in-out forwards;
|
animation: rotateMenu 300ms ease-in-out forwards;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainitems {
|
.mainitems {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
<meta name="description" content="Discover my Software projects and services, and get support if you encounter problems.">
|
<meta name="description" content="Discover my Software projects and services, and get support if you encounter problems.">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="/css/mainstyle.css">
|
<link rel="stylesheet" href="/css/mainstyle.css">
|
||||||
<script src="/js/jquery.js"></script>
|
<script defer src="/js/jquery.js"></script>
|
||||||
<script src="/js/basicanimations.js"></script>
|
<script defer src="/js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
<title>Navmenu - janishutz.com</title>
|
<title>Navmenu - janishutz.com</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<ul class="Menu">
|
<div class="Menu">
|
||||||
<a href="/"><img src="/assets/Logo.png" class="logo"></a>
|
<a href="/"><img src="/assets/Logo.png" class="logo"></a>
|
||||||
<div class="menu-container">
|
<ul class="menu-container">
|
||||||
<li class="mainitems"><a class="menubutton" id="home" href="/">Home</a></li>
|
<li class="mainitems"><a class="menubutton" id="home" href="/">Home</a></li>
|
||||||
<li class="dropdown mainitems">
|
<li class="dropdown mainitems">
|
||||||
<a class="menubutton" id="projects" href="/projects">Projects</a>
|
<a class="menubutton" id="projects" href="/projects">Projects</a>
|
||||||
@@ -35,6 +35,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="mainitems"><a class="menubutton" id="support" href="/support">Support</a></li>
|
<li class="mainitems"><a class="menubutton" id="support" href="/support">Support</a></li>
|
||||||
</div>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
<h3 style="text-align: center;">Note: This page is not yet optimised for mobile devices / vertical aspect ratios!</h3>
|
||||||
</body>
|
</body>
|
||||||
@@ -4,8 +4,8 @@
|
|||||||
<title>Privacy Policy - janishutz.com</title>
|
<title>Privacy Policy - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="/css/mainstyle.css">
|
<link rel="stylesheet" href="/css/mainstyle.css">
|
||||||
<script src="/js/jquery.js"></script>
|
<script defer src="/js/jquery.js"></script>
|
||||||
<script src="/js/basicanimations.js"></script>
|
<script defer src="/js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="ContentToInclude"></div>
|
<div id="ContentToInclude"></div>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<title>Projects - janishutz.com</title>
|
<title>Projects - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="./css/mainstyle.css">
|
<link rel="stylesheet" href="./css/mainstyle.css">
|
||||||
<script src="./js/jquery.js"></script>
|
<script defer src="./js/jquery.js"></script>
|
||||||
<script src="./js/basicanimations.js"></script>
|
<script defer src="./js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="ContentToInclude"></div>
|
<div id="ContentToInclude"></div>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<title>BiogasControllerApp - janishutz.com</title>
|
<title>BiogasControllerApp - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="/css/mainstyle.css">
|
<link rel="stylesheet" href="/css/mainstyle.css">
|
||||||
<script src="/js/jquery.js"></script>
|
<script defer src="/js/jquery.js"></script>
|
||||||
<script src="/js/basicanimations.js"></script>
|
<script defer src="/js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<title>FSR Image & Video Upscaler Frontend - janishutz.com</title>
|
<title>FSR Image & Video Upscaler Frontend - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="/css/mainstyle.css">
|
<link rel="stylesheet" href="/css/mainstyle.css">
|
||||||
<script src="/js/jquery.js"></script>
|
<script defer src="/js/jquery.js"></script>
|
||||||
<script src="/js/basicanimations.js"></script>
|
<script defer src="/js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="ContentToInclude"></div>
|
<div id="ContentToInclude"></div>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<title>MusicPlayer - janishutz.com</title>
|
<title>MusicPlayer - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="/css/mainstyle.css">
|
<link rel="stylesheet" href="/css/mainstyle.css">
|
||||||
<script src="/js/jquery.js"></script>
|
<script defer src="/js/jquery.js"></script>
|
||||||
<script src="/js/basicanimations.js"></script>
|
<script defer src="/js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<title>QR & Barcode Insight - janishutz.com</title>
|
<title>QR & Barcode Insight - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="/css/mainstyle.css">
|
<link rel="stylesheet" href="/css/mainstyle.css">
|
||||||
<script src="/js/jquery.js"></script>
|
<script defer src="/js/jquery.js"></script>
|
||||||
<script src="/js/basicanimations.js"></script>
|
<script defer src="/js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="ContentToInclude"></div>
|
<div id="ContentToInclude"></div>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<title>StorageManager - janishutz.com</title>
|
<title>StorageManager - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="/css/mainstyle.css">
|
<link rel="stylesheet" href="/css/mainstyle.css">
|
||||||
<script src="/js/jquery.js"></script>
|
<script defer src="/js/jquery.js"></script>
|
||||||
<script src="/js/basicanimations.js"></script>
|
<script defer src="/js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<title>Services - janishutz.com</title>
|
<title>Services - janishutz.com</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="./css/mainstyle.css">
|
<link rel="stylesheet" href="./css/mainstyle.css">
|
||||||
<script src="./js/jquery.js"></script>
|
<script defer src="./js/jquery.js"></script>
|
||||||
<script src="./js/basicanimations.js"></script>
|
<script defer src="./js/basicanimations.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="ContentToInclude"></div>
|
<div id="ContentToInclude"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user