|
| 1 | +const AppHeader = () => { |
| 2 | + return ( |
| 3 | + <div> |
| 4 | + <nav id="nav" class="sm:container sm:mx-auto"> |
| 5 | + {/* Header start */} |
| 6 | + <div class="z-10 max-w-screen-lg xl:max-w-screen-xl block sm:flex sm:justify-between sm:items-center my-6"> |
| 7 | + {/* Header menu links and small screen hamburger menu start */} |
| 8 | + <div class="flex justify-between items-center px-4 sm:px-0"> |
| 9 | + <div> |
| 10 | + <a href="/"> |
| 11 | + <img src="" class="w-36" alt="Dark Logo" /> |
| 12 | + <img src="" class="w-36" alt="Light Logo" /> |
| 13 | + </a> |
| 14 | + </div> |
| 15 | + |
| 16 | + {/* Theme switcher small screen end */} |
| 17 | + |
| 18 | + {/* Small screen hamburger menu start */} |
| 19 | + <div class="sm:hidden"> |
| 20 | + <button |
| 21 | + type="button" |
| 22 | + class="focus:outline-none" |
| 23 | + aria-label="Hamburger Menu" |
| 24 | + > |
| 25 | + <svg |
| 26 | + xmlns="http://www.w3.org/2000/svg" |
| 27 | + viewBox="0 0 24 24" |
| 28 | + class="h-7 w-7 fill-current text-secondary-dark dark:text-ternary-light" |
| 29 | + > |
| 30 | + <path |
| 31 | + v-if="isOpen" |
| 32 | + fill-rule="evenodd" |
| 33 | + d="M18.278 16.864a1 1 0 0 1-1.414 1.414l-4.829-4.828-4.828 4.828a1 1 0 0 1-1.414-1.414l4.828-4.829-4.828-4.828a1 1 0 0 1 1.414-1.414l4.829 4.828 4.828-4.828a1 1 0 1 1 1.414 1.414l-4.828 4.829 4.828 4.828z" |
| 34 | + clip-rule="evenodd" |
| 35 | + ></path> |
| 36 | + <path |
| 37 | + v-if="!isOpen" |
| 38 | + fill-rule="evenodd" |
| 39 | + d="M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z" |
| 40 | + ></path> |
| 41 | + </svg> |
| 42 | + </button> |
| 43 | + </div> |
| 44 | + {/* Small screen hamburger menu end */} |
| 45 | + </div> |
| 46 | + {/* Header menu links and small screen hamburger menu end */} |
| 47 | + |
| 48 | + {/* Header links start*/} |
| 49 | + <div class="m-0 sm:ml-4 mt-5 sm:mt-3 sm:flex p-5 sm:p-0 justify-center items-center shadow-lg sm:shadow-none"> |
| 50 | + <a |
| 51 | + href="/projects" |
| 52 | + class="block text-left text-lg font-medium text-primary-dark dark:text-ternary-light hover:text-secondary-dark dark:hover:text-secondary-light sm:mx-4 mb-2 sm:py-2" |
| 53 | + aria-label="Projects" |
| 54 | + > |
| 55 | + Projects |
| 56 | + </a> |
| 57 | + <a |
| 58 | + href="/about" |
| 59 | + class="block text-left text-lg font-medium text-primary-dark dark:text-ternary-light hover:text-secondary-dark dark:hover:text-secondary-light sm:mx-4 mb-2 sm:py-2 border-t-2 pt-3 sm:pt-2 sm:border-t-0 border-primary-light dark:border-secondary-dark" |
| 60 | + aria-label="About Me" |
| 61 | + > |
| 62 | + About Me |
| 63 | + </a> |
| 64 | + <a |
| 65 | + href="/contact" |
| 66 | + class="block text-left text-lg font-medium text-primary-dark dark:text-ternary-light hover:text-secondary-dark dark:hover:text-secondary-light sm:mx-4 mb-2 sm:py-2 border-t-2 pt-3 sm:pt-2 sm:border-t-0 border-primary-light dark:border-secondary-dark" |
| 67 | + aria-label="Contact" |
| 68 | + > |
| 69 | + Contact |
| 70 | + </a> |
| 71 | + <div class="border-t-2 pt-3 sm:pt-0 sm:border-t-0 border-primary-light dark:border-secondary-dark"> |
| 72 | + <button |
| 73 | + class="sm:hidden block text-left text-md font-medium bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-md px-4 py-2 mt-2" |
| 74 | + aria-label="Hire Me Button" |
| 75 | + > |
| 76 | + Hire Me |
| 77 | + </button> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + {/* Header links end */} |
| 81 | + |
| 82 | + {/* Header right section buttons start */} |
| 83 | + <div class="hidden sm:flex justify-between items-center flex-col md:flex-row"> |
| 84 | + {/* Hire me button start */} |
| 85 | + <div> |
| 86 | + <button |
| 87 | + class="text-md font-medium bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-lg px-5 py-2.5" |
| 88 | + aria-label="Hire Me Button" |
| 89 | + > |
| 90 | + Hire Me |
| 91 | + </button> |
| 92 | + </div> |
| 93 | + {/* Hire me button end */} |
| 94 | + |
| 95 | + {/* Theme switcher here */} |
| 96 | + </div> |
| 97 | + </div> |
| 98 | + </nav> |
| 99 | + </div> |
| 100 | + ); |
| 101 | +}; |
| 102 | + |
| 103 | +export default AppHeader; |
0 commit comments