From 351a0902b2c32821bf5e22f6dae378ae14242a76 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Fri, 19 Mar 2021 10:23:46 +0100 Subject: [PATCH] improve page design --- public/css/style.css | 129 ++++---------- public/explore.html | 40 ++--- public/index.html | 8 +- public/partials/anonymize.htm | 5 +- public/partials/claim.htm | 5 +- public/partials/dashboard.htm | 5 +- public/partials/explore.htm | 6 +- public/partials/faq.htm | 5 +- public/partials/header.htm | 203 +++++++++++----------- public/partials/home.htm | 1 - public/robots.txt | 2 +- public/script/exploreApp.js | 127 +++++++------- public/script/homeApp.js | 28 ++- public/script/langColors.js | 316 ++++++++++++++++++++++++++++++++++ 14 files changed, 564 insertions(+), 316 deletions(-) create mode 100644 public/script/langColors.js diff --git a/public/css/style.css b/public/css/style.css index 68e14ee..9380b96 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -31,19 +31,12 @@ body { position: relative; height: 100%; } -header { - position: relative; -} -.view { - color: #ffffff; -} -.top-nav-collapse { +.navbar { background: #4a507b !important; } .navbar { - box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); font-weight: 300; transition: background-color 0.5s ease; } @@ -54,18 +47,16 @@ header { font-size: 30px; line-height: 40px; } -.navbar:not(.top-nav-collapse) { - /* background: transparent !important; */ -} + .navbar-brand { width: 280px; text-align: center; } -@media (max-width: 991px) { - .navbar:not(.top-nav-collapse) { - background: #4a507b !important; - } +.generalMessage { + display: block; + text-align: center; + color: #ffffff; } .rgba-gradient { @@ -138,20 +129,6 @@ a.black_border:hover { opacity: 1; /* Firefox */ } -.active .container { - transition: height 1s ease; -} -.add_form { - display: none; -} -.active .add_form { - display: block; -} -.main { - width: 100%; - margin: auto; - height: 100%; -} .leftCol { position: relative; height: 100%; @@ -164,12 +141,7 @@ a.black_border:hover { position: relative; display: block; overflow: scroll; - height: calc(100% - 168px); -} -.stats { - height: 120px; - overflow: scroll; - border-top: 1px solid #ddd; + height: 100%; } .files a { @@ -215,9 +187,7 @@ a.black_border:hover { padding-left: 1px; color: #858b90; } -.ace_editor { - height: 100%; -} + .files .folder::before { content: "\f07b"; color: #3ba3f8; @@ -226,14 +196,21 @@ a.black_border:hover { content: "\f07c"; } +.stats { + height: 120px; + overflow: scroll; + border-top: 1px solid #ddd; +} + +.ace_editor { + height: 100%; +} + .paths { background-color: #ffffff; padding: 8px 6px; - position: absolute; - top: 0; - right: 0; - left: 0; - z-index: 0; + margin: 0; + border-bottom: 1px solid #dddddd ; border-radius: 0; } @@ -246,53 +223,6 @@ a.black_border:hover { .paths .breadcrumb-item::before { padding-right: 3px; } -@media (max-width: 640px) { - .main { - width: 100%; - } - .container-fluid { - padding: 0; - } - .files { - margin: 0; - border-left: 0; - border-right: 0; - border-radius: 0; - } -} -.repos { - margin: 0; - padding: 0; -} -.repo { - list-style: none; - margin: 0; - padding: 3px 7px; - background: #fdfdfd; - border: 1px solid #ddd; - border-top: 0; -} -.repo .options { - float: right; -} -.main > .container-fluid { - height: 100%; - position: relative; -} -.row.top { - padding-left: 0; - color: #ffffff; - background-color: #4a507b; -} -.row.center { - position: relative; - height: calc(100% - 56px); -} -.body { - position: relative; - height: 100%; - overflow: scroll; -} .content { height: 100%; @@ -317,7 +247,6 @@ a.black_border:hover { font-weight: bold; font-size: 50px; text-align: center; - padding-top: 100px; } .preview { @@ -355,16 +284,11 @@ notebook { right: 10px !important; } -#navbar { - padding-right: 150px; -} - .accordion-section .panel-default .panel-title a:after { font-family: "FontAwesome"; font-style: normal; font-size: 3rem; content: "\f106"; - color: #1f7de2; float: right; margin-top: -12px; } @@ -377,4 +301,15 @@ notebook { .table.repositories td { word-break: break-word; -} \ No newline at end of file +} + +loc { + display: block; + position: relative; + width: 100%; + height: 5px; +} +loc .lang { + float: left; + height: 100%; +} diff --git a/public/explore.html b/public/explore.html index 1109f77..b70bb9d 100644 --- a/public/explore.html +++ b/public/explore.html @@ -3,7 +3,7 @@ - {{title || "anonymous Github"}} + Anonymous Github - -
-
- -
-
- - -
-
Code Statistics (LOC)
-
- -
-
+ + +
+
+
+
+
-
+
-
+ +
-
+ + + diff --git a/public/index.html b/public/index.html index 1e5627f..297aa0a 100644 --- a/public/index.html +++ b/public/index.html @@ -3,7 +3,7 @@ - {{title || "Anonymous Github"}} + Anonymous Github @@ -16,6 +16,7 @@ + @@ -27,8 +28,9 @@ - - + + +