From 32520aea63b8a1ae563cbe7cfde50c5b1c3f0c0f Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Sat, 7 Jul 2018 18:16:33 -0700 Subject: [PATCH] changing routing mechanism --- assets/css/blog.css | 10 +++++++--- assets/js/main.js | 28 +++++++++++++--------------- blog.html | 40 ++++++++++++++++++++++------------------ blogs/1.html | 8 +++++--- index.html | 4 +++- 5 files changed, 50 insertions(+), 40 deletions(-) diff --git a/assets/css/blog.css b/assets/css/blog.css index f6f1701..851f76b 100644 --- a/assets/css/blog.css +++ b/assets/css/blog.css @@ -91,16 +91,20 @@ margin: 2em; padding: .5em 3em; font-size: 2em; - color: white; + color: white !important; border: 3px solid white; cursor: pointer; transition: 0.7s; -webkit-transition: 0.7s; - z-index: 2; + display: block; + z-index: 3; } + #readBlog > p { + margin: 0; + } #readBlog:hover { background-color: white; - color: black; + color: black !important; box-shadow: inset 0 0 0 1px #ffffff; } diff --git a/assets/js/main.js b/assets/js/main.js index d193fc7..5cf1cb4 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -42,24 +42,22 @@ side: 'right' }); - $('#blog').load('blog.html'); - $('#readBlog').on("click", function() { window.location = "http://arjunpatel.me/blog.html"; }); - $('.readMore').on("click", function() { - var whichBlog = $(this).attr('id'); - console.log("Loading vlog: " + whichBlog); - window.location = "http://arjunpatel.me/blogs/" + whichBlog + ".html"; - }); - - $('#goToMain').on("click", function() { - window.location = "http://arjunpatel.me/index.html"; - }); - - $('#goToBlogs').on("click", function() { - window.location = "http://arjunpatel.me/blog.html"; - }); + // $('.readMore').on("click", function() { + // var whichBlog = $(this).attr('id'); + // console.log("Loading vlog: " + whichBlog); + // window.location = "http://arjunpatel.me/blogs/" + whichBlog + ".html"; + // }); + // + // $('#goToMain').on("click", function() { + // window.location = "http://arjunpatel.me/index.html"; + // }); + // + // $('#goToBlogs').on("click", function() { + // window.location = "http://arjunpatel.me/blog.html"; + // }); })(jQuery); diff --git a/blog.html b/blog.html index 665acf5..eec3bf4 100644 --- a/blog.html +++ b/blog.html @@ -25,28 +25,32 @@ --> -
- -
+ +
+ +
+
-
diff --git a/blogs/1.html b/blogs/1.html index d29c2dd..c529769 100644 --- a/blogs/1.html +++ b/blogs/1.html @@ -25,9 +25,11 @@ --> -
- -
+ +
+ +
+
diff --git a/index.html b/index.html index 1e5872e..9883491 100644 --- a/index.html +++ b/index.html @@ -51,7 +51,9 @@

Web Guru, Budding Entrepreneur, and Technology Enthusiast

-

Read Blog

+ +

Read Blog

+