From cc9f74c106e2d231bc899732bb96ef61f5d18207 Mon Sep 17 00:00:00 2001 From: janis Date: Thu, 5 Jan 2023 21:59:33 +0100 Subject: [PATCH] optimised UI --- server.js | 9 +- ui/404.html | 4 +- ui/about.html | 4 +- ui/aboutPage.html | 4 +- ui/css/mainstyle.css | 9 +- ui/css/menustyle.css | 211 +++++++++++++++++--------------- ui/index.html | 4 +- ui/menu.html | 61 ++++----- ui/privacypolicy.html | 4 +- ui/projects.html | 4 +- ui/projects/bgac.html | 4 +- ui/projects/imagescaler.html | 4 +- ui/projects/musiplayer.html | 4 +- ui/projects/qrinsight.html | 4 +- ui/projects/storagemanager.html | 4 +- ui/services.html | 4 +- 16 files changed, 173 insertions(+), 165 deletions(-) diff --git a/server.js b/server.js index a9a3dc7..8ed66cb 100755 --- a/server.js +++ b/server.js @@ -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 ); \ No newline at end of file +http.createServer( app ).listen( PORT ); \ No newline at end of file diff --git a/ui/404.html b/ui/404.html index 815f621..2f4e4af 100755 --- a/ui/404.html +++ b/ui/404.html @@ -3,8 +3,8 @@ 404 - Page not Found - janishutz.com - - + +