From 32d2695f88d0d26fedc37131dcc2d38409fc91d7 Mon Sep 17 00:00:00 2001 From: len0rd Date: Mon, 6 Aug 2018 07:06:39 -0400 Subject: [PATCH] added some stuff to homepage --- assets/css/site.css | 2 +- prestart.js | 1 + views/pages/index.ejs | 37 +++++++++++++++++++++++++++++-------- 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/assets/css/site.css b/assets/css/site.css index e42cc58..d16ca39 100644 --- a/assets/css/site.css +++ b/assets/css/site.css @@ -53,7 +53,7 @@ .card-soft-link { color: #5AB2DA; - padding-right: 2%; + padding-left: 2%; } .card { diff --git a/prestart.js b/prestart.js index 2615d49..ca3ea07 100644 --- a/prestart.js +++ b/prestart.js @@ -24,6 +24,7 @@ const addClass = { var regex = new RegExp(`<${key}(.*?)>`, 'g'); matcher = regex.exec(modifiedText); + // only proceed if we found a match, and the class we add isn't already on the tag somehow while (matcher != null && !matcher[0].includes(classMap[key])) { // add the class content WHILE preserving any other properties already in the tag! console.log("adding class content in: " + matcher[0]); diff --git a/views/pages/index.ejs b/views/pages/index.ejs index 004414f..00c986d 100644 --- a/views/pages/index.ejs +++ b/views/pages/index.ejs @@ -35,16 +35,16 @@
-
+
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.

-
@@ -53,24 +53,45 @@
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

+

Darkstar is my first foray into building my own drone. I used a mixture of open source software and some of my own stuff to get the hunk of junk into the air

- +
+
+
Pallet Desk
+
Reliable and cheap desk
+

Building my dream desk on a poor-college-student budget. The end result: a portable and rock solid desk with a couple of flaws

+
+
-
+
+
+
My Website
+
Is this meta?
+

A post on my website about how I built my website? Yep. Turns out things aren't quite plug 'n play when you're a stubborn engineer who wants something to function in a very specific way

+
+ +
+