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