simple-dash-fork

A simple, fully responsive dashboard - fork with some customisations
git clone https://git.ortlepp.eu/simple-dash-fork.git/
Log | Files | Refs | README | LICENSE

commit e6476d577f237844af45156313ff76dc3f6abd49
parent 4fa25fda8f69ce6b1f40b9d3144dff9ff3849549
Author: Kukielka <kukielka58@gmail.com>
Date:   Fri, 20 Apr 2018 12:42:53 +0200

Cleanup

Diffstat:
Rhp_assets/css/bootstrap.min.css -> common/css/bootstrap.min.css | 0
Rhp_assets/css/fontawesome-all.min.css -> common/css/fontawesome-all.min.css | 0
Acommon/css/main.css | 66++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Rhp_assets/js/jquery.min.js -> common/js/jquery.min.js | 0
Rhp_assets/js/trianglify.min.js -> common/js/trianglify.min.js | 0
Rhp_assets/webfonts/fa-brands-400.eot -> common/webfonts/fa-brands-400.eot | 0
Rhp_assets/webfonts/fa-brands-400.svg -> common/webfonts/fa-brands-400.svg | 0
Rhp_assets/webfonts/fa-brands-400.ttf -> common/webfonts/fa-brands-400.ttf | 0
Rhp_assets/webfonts/fa-brands-400.woff -> common/webfonts/fa-brands-400.woff | 0
Rhp_assets/webfonts/fa-brands-400.woff2 -> common/webfonts/fa-brands-400.woff2 | 0
Rhp_assets/webfonts/fa-regular-400.eot -> common/webfonts/fa-regular-400.eot | 0
Rhp_assets/webfonts/fa-regular-400.svg -> common/webfonts/fa-regular-400.svg | 0
Rhp_assets/webfonts/fa-regular-400.ttf -> common/webfonts/fa-regular-400.ttf | 0
Rhp_assets/webfonts/fa-regular-400.woff -> common/webfonts/fa-regular-400.woff | 0
Rhp_assets/webfonts/fa-regular-400.woff2 -> common/webfonts/fa-regular-400.woff2 | 0
Rhp_assets/webfonts/fa-solid-900.eot -> common/webfonts/fa-solid-900.eot | 0
Rhp_assets/webfonts/fa-solid-900.svg -> common/webfonts/fa-solid-900.svg | 0
Rhp_assets/webfonts/fa-solid-900.ttf -> common/webfonts/fa-solid-900.ttf | 0
Rhp_assets/webfonts/fa-solid-900.woff -> common/webfonts/fa-solid-900.woff | 0
Rhp_assets/webfonts/fa-solid-900.woff2 -> common/webfonts/fa-solid-900.woff2 | 0
Dhp_assets/css/main.css | 66------------------------------------------------------------------
Mindex.php | 39++++++++++++++-------------------------
22 files changed, 80 insertions(+), 91 deletions(-)

diff --git a/hp_assets/css/bootstrap.min.css b/common/css/bootstrap.min.css diff --git a/hp_assets/css/fontawesome-all.min.css b/common/css/fontawesome-all.min.css diff --git a/common/css/main.css b/common/css/main.css @@ -0,0 +1,65 @@ +html { + height: 100%; + width: 100%; +} + +body { + z-index: 1; + height: 100%; + width: 100%; + background-position: center; + background-attachment: fixed; +} + +.itemlist { + border-radius: 6px; + background-color: rgba(0, 0, 0, .4); + padding: 20px; + box-sizing: border-box; +} + +.itemlist a { + color: #fff; +} + +#wrapper { + font-size: 80px; + position: fixed; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + padding-bottom: 3px; + width: fit-content; + height: auto; + max-width: 80%; + max-height: 85%; + overflow: auto; + display: flex; + overflow-y: scroll; +} + +#wrapper a { + transition: .3s all; +} + +#wrapper a:hover { + color: #c4c4c4; +} + +#wrapper .link { + display: inline-block; + width: 33%; + float: left; + text-align: center; +} + +#wrapper::-webkit-scrollbar { + width: 10px; + background-color: transparent; +} + +#wrapper::-webkit-scrollbar-thumb { + border-radius: 6px; + -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,.4); + background-color: rgba(255,255,255,.2); +}+ \ No newline at end of file diff --git a/hp_assets/js/jquery.min.js b/common/js/jquery.min.js diff --git a/hp_assets/js/trianglify.min.js b/common/js/trianglify.min.js diff --git a/hp_assets/webfonts/fa-brands-400.eot b/common/webfonts/fa-brands-400.eot Binary files differ. diff --git a/hp_assets/webfonts/fa-brands-400.svg b/common/webfonts/fa-brands-400.svg diff --git a/hp_assets/webfonts/fa-brands-400.ttf b/common/webfonts/fa-brands-400.ttf Binary files differ. diff --git a/hp_assets/webfonts/fa-brands-400.woff b/common/webfonts/fa-brands-400.woff Binary files differ. diff --git a/hp_assets/webfonts/fa-brands-400.woff2 b/common/webfonts/fa-brands-400.woff2 Binary files differ. diff --git a/hp_assets/webfonts/fa-regular-400.eot b/common/webfonts/fa-regular-400.eot Binary files differ. diff --git a/hp_assets/webfonts/fa-regular-400.svg b/common/webfonts/fa-regular-400.svg diff --git a/hp_assets/webfonts/fa-regular-400.ttf b/common/webfonts/fa-regular-400.ttf Binary files differ. diff --git a/hp_assets/webfonts/fa-regular-400.woff b/common/webfonts/fa-regular-400.woff Binary files differ. diff --git a/hp_assets/webfonts/fa-regular-400.woff2 b/common/webfonts/fa-regular-400.woff2 Binary files differ. diff --git a/hp_assets/webfonts/fa-solid-900.eot b/common/webfonts/fa-solid-900.eot Binary files differ. diff --git a/hp_assets/webfonts/fa-solid-900.svg b/common/webfonts/fa-solid-900.svg diff --git a/hp_assets/webfonts/fa-solid-900.ttf b/common/webfonts/fa-solid-900.ttf Binary files differ. diff --git a/hp_assets/webfonts/fa-solid-900.woff b/common/webfonts/fa-solid-900.woff Binary files differ. diff --git a/hp_assets/webfonts/fa-solid-900.woff2 b/common/webfonts/fa-solid-900.woff2 Binary files differ. diff --git a/hp_assets/css/main.css b/hp_assets/css/main.css @@ -1,65 +0,0 @@ -html { - height: 100%; - width: 100%; -} - -body { - font-family: sans-serif; - z-index: 1; - height: 100%; - width: 100%; - background-position: center; - background-attachment: fixed; -} - -.bg { - border-radius: 6px; - background-color: rgba(0, 0, 0, .4); - padding: 20px; -} - -.bg a { - color: #fff; -} - -#links-wrap { - font-size: 80px; - position: fixed; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - padding-bottom: 3px; - width: fit-content; - height: auto; - max-width: 80%; - max-height: 85%; - overflow: auto; - display: flex; - overflow-y: scroll; -} - -#links-wrap a { - transition: .3s all; -} - -#links-wrap a:hover { - color: #c4c4c4; -} - -#links-wrap .link { - display: inline-block; - width: 33%; - float: left; - text-align: center; -} - -#links-wrap::-webkit-scrollbar { - width: 10px; - background-color: transparent; -} - -#links-wrap::-webkit-scrollbar-thumb { - border-radius: 6px; - -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,.4); - background-color: rgba(255,255,255,.2); -}- \ No newline at end of file diff --git a/index.php b/index.php @@ -1,46 +1,35 @@ <?php session_start(); - $config = json_decode(file_get_contents("config.json"), true); - - function get_current_url() { - $protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; - $domainName = $_SERVER['SERVER_NAME']; - return $protocol . $domainName; - } ?> -<!DOCTYPE HTML> +<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?= $config['title']; ?></title> - <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> - <link rel="stylesheet" type="text/css" href="hp_assets/css/fontawesome-all.min.css" /> - <link rel="stylesheet" type="text/css" href="hp_assets/css/bootstrap.min.css" /> - <link rel="stylesheet" type="text/css" href="hp_assets/css/main.css" /> - - <link href="favicon.ico" rel="shortcut icon" type="image/x-icon" /> + <link rel="stylesheet" type="text/css" href="common/css/fontawesome-all.min.css" /> + <link rel="stylesheet" type="text/css" href="common/css/bootstrap.min.css" /> + <link rel="stylesheet" type="text/css" href="common/css/main.css" /> + <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> </head> <body id="homepage"> <span class="fa fa-asterisk" style="opacity: 0;"></span> - <div id="links-wrap" class="menu-item bg"> + <div id="wrapper" class="itemlist"> <center><p> <?php foreach ($config['items'] as $i => $item) { - $icon = $item['icon']; - $link = str_replace("{{cur}}", get_current_url(), $item['link']); - - echo '<a href="' . $link . '" title="' . $item['alt'] . '"><i class="' . $icon . ' fa-fw"></i></a>'; + echo '<a href="'.$item['link'].'" title="'.$item['alt'].'"><i class="'.$item['icon'].' fa-fw"></i></a>'; } ?> </p></center> </div> - <script type="text/javascript" src="hp_assets/js/jquery.min.js"></script> - <script src="hp_assets/js/trianglify.min.js"></script> + <script type="text/javascript" src="common/js/jquery.min.js"></script> + <script src="common/js/trianglify.min.js"></script> <script> function addTriangleTo(target) { var dimensions = target.getClientRects()[0]; @@ -58,10 +47,10 @@ var resizeTimer; $(window).on('resize', function(e) { - clearTimeout(resizeTimer); - resizeTimer = setTimeout(function() { - <?php echo 'addTriangleTo(homepage)'; ?> - }, 400); + clearTimeout(resizeTimer); + resizeTimer = setTimeout(function() { + addTriangleTo(homepage); + }, 400); }); addTriangleTo(homepage);