From 2cf2bdf8ad87b45418798a3e0d2378f080183b17 Mon Sep 17 00:00:00 2001 From: len0rd Date: Fri, 3 Aug 2018 23:37:28 -0400 Subject: [PATCH] got a basic side nav bar for documentation formatted the way i want. now need to figure out how to autogenerate --- assets/css/projects.css | 4 ++++ assets/css/site.css | 5 +++-- assets/script/app.js | 2 +- views/pages/index.ejs | 12 ++++++------ views/pages/projects/project_template.ejs | 7 ++++--- views/partials/nav.ejs | 4 ++-- 6 files changed, 20 insertions(+), 14 deletions(-) diff --git a/assets/css/projects.css b/assets/css/projects.css index 3435fff..136b927 100644 --- a/assets/css/projects.css +++ b/assets/css/projects.css @@ -30,4 +30,8 @@ ol { li p { padding-left: 0; +} + +.sticky-offset { + top: 56px !important; } \ No newline at end of file diff --git a/assets/css/site.css b/assets/css/site.css index e3f45e0..e42cc58 100644 --- a/assets/css/site.css +++ b/assets/css/site.css @@ -51,8 +51,9 @@ background-color: #161038; } -.text-yellow { - text-emphasis-color: yellow; +.card-soft-link { + color: #5AB2DA; + padding-right: 2%; } .card { diff --git a/assets/script/app.js b/assets/script/app.js index a47e946..6313f26 100644 --- a/assets/script/app.js +++ b/assets/script/app.js @@ -1,5 +1,5 @@ var $document = $(document), - $nav = $('.navbar'), + $nav = $('.navbar-top'), navbarDef = 'bg-dark', effect = 'fadeInDown'; diff --git a/views/pages/index.ejs b/views/pages/index.ejs index 23165c8..9c8b9cb 100644 --- a/views/pages/index.ejs +++ b/views/pages/index.ejs @@ -36,36 +36,36 @@
-
+
Yama Crawler
Selenium-Based Web Crawler

Yama is a powerful developer-friendly web crawler/scraper built with Selenium and Java. Built from the ground up by yours truly.

-
+
Repley
The Tomcat - ChartJS crossover nobody asked for

If you only have a hammer, everything looks like a nail. Repley combines Apache Tomcat and ChartJS to make dynamic database chart generation as easy as editing a JSON file.

-
+
Darkstar
Why buy a quad when you can build it

Tbh, idk what other project to put here, we'll have to figure it our later

diff --git a/views/pages/projects/project_template.ejs b/views/pages/projects/project_template.ejs index 33e1ef8..632af3f 100644 --- a/views/pages/projects/project_template.ejs +++ b/views/pages/projects/project_template.ejs @@ -1,4 +1,5 @@ <% var rootPath = '../../'; %> +<% var navExt = '-nav' %> @@ -14,10 +15,10 @@
-
- +
+ <%- include(rootPath + page + navExt) %>
-
+
<%- include(rootPath + page) %>
diff --git a/views/partials/nav.ejs b/views/partials/nav.ejs index 9246944..4300333 100644 --- a/views/partials/nav.ejs +++ b/views/partials/nav.ejs @@ -1,5 +1,5 @@ -