1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 02:19:34 +05:30

(refactor): updated page navigation links with new routes

This commit is contained in:
2023-11-09 21:52:01 +05:30
parent 18753f116b
commit f272b062b6
2 changed files with 8 additions and 8 deletions

View File

@@ -8,10 +8,10 @@
</div> </div>
<div class="w-[50%] lg:w-[25%] flex flex-col justify-start items-start mb-10 lg:mb-0"> <div class="w-[50%] lg:w-[25%] flex flex-col justify-start items-start mb-10 lg:mb-0">
<h6 class="font-bold mb-8">Site Pages</h6> <h6 class="font-bold mb-8">Site Pages</h6>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="index.php">Home Page</a> <a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="<?php echo $basePath ?>">Home Page</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="projects.php">My Projects</a> <a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="<?php echo $basePath . '/projects' ?>">My Projects</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="blog.php">My Blog</a> <a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="<?php echo $basePath . '/blog' ?>">My Blog</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="contact.php">Contact Me</a> <a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="<?php echo $basePath . '/contact' ?>">Contact Me</a>
</div> </div>
<div class="w-[50%] lg:w-[25%] flex flex-col justify-start items-start mb-10 lg:mb-0"> <div class="w-[50%] lg:w-[25%] flex flex-col justify-start items-start mb-10 lg:mb-0">
<h6 class="font-bold mb-8">Featured</h6> <h6 class="font-bold mb-8">Featured</h6>

View File

@@ -10,18 +10,18 @@ function isPageActive($pageName) {
<nav class="w-full flex justify-between items-center py-5 lg:py-9 px-4 lg:px-[3.5rem]"> <nav class="w-full flex justify-between items-center py-5 lg:py-9 px-4 lg:px-[3.5rem]">
<div class="logo ml-2 lg:ml-4"> <div class="logo ml-2 lg:ml-4">
<a class="font-cormorant text-4xl font-bold" href="<?php echo $basePath?>">Subhamoy</a> <a class="font-cormorant text-4xl font-bold" href="<?php echo $basePath ?>">Subhamoy</a>
</div> </div>
<div class="widemenu mr-4 hidden lg:block"> <div class="widemenu mr-4 hidden lg:block">
<a class="mx-5 py-[0.30rem] relative group" href="projects.php"> <a class="mx-5 py-[0.30rem] relative group" href="<?php echo $basePath . '/projects' ?>">
Projects Projects
<span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('projects.php');?> group-hover:w-full"></span> <span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('projects.php');?> group-hover:w-full"></span>
</a> </a>
<a class="mx-5 py-[0.30rem] relative group" href="blog.php"> <a class="mx-5 py-[0.30rem] relative group" href="<?php echo $basePath . '/blog' ?>">
Blog Blog
<span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('blog.php');?> group-hover:w-full"></span> <span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('blog.php');?> group-hover:w-full"></span>
</a> </a>
<a class="mx-5 py-[0.30rem] relative group" href="contact.php"> <a class="mx-5 py-[0.30rem] relative group" href="<?php echo $basePath . '/contact' ?>">
Contact Contact
<span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('contact.php');?> group-hover:w-full"></span> <span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('contact.php');?> group-hover:w-full"></span>
</a> </a>