mas mejoras de ui, cambie el css a mano por purecss

This commit is contained in:
Daniel Cortés
2019-10-14 01:32:21 -03:00
parent bf36de150d
commit 59054f1d55
13 changed files with 388 additions and 55 deletions

14
resources/js/admin.js vendored Normal file
View File

@@ -0,0 +1,14 @@
switch(window.location.pathname){
case "/admin/posts":
document.getElementById("posts-link").classList.add("pure-menu-highlight");
break;
case "/admin/now":
document.getElementById("now-link").classList.add("pure-menu-highlight");
break;
case "/admin/projects":
document.getElementById("proyectos-link").classList.add("pure-menu-highlight");
break;
case "/admin/setup":
document.getElementById("setup-link").classList.add("pure-menu-highlight");
break;
}

18
resources/js/app.js vendored
View File

@@ -0,0 +1,18 @@
switch(window.location.pathname){
case "/":
document.getElementById("title-link").classList.add("pure-menu-highlight");
break;
case "/blog":
case "/blog/archive":
document.getElementById("blog-link").classList.add("pure-menu-highlight");
break;
case "/now":
document.getElementById("now-link").classList.add("pure-menu-highlight");
break;
case "/projects":
document.getElementById("proyectos-link").classList.add("pure-menu-highlight");
break;
case "/setup":
document.getElementById("setup-link").classList.add("pure-menu-highlight");
break;
}