Skip to content

Commit

Permalink
Adds header to privacy policy page (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Inaelise authored Apr 9, 2024
1 parent c2df995 commit 8d89a5f
Showing 1 changed file with 150 additions and 1 deletion.
151 changes: 150 additions & 1 deletion pages/privacy-policy.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,154 @@
referrerpolicy="no-referrer"
/>
</head>
<body></body>
<body>
<header class="flex h-24 items-center justify-between px-10 mt-6">
<div class="flex flex-row items-center gap-10 text-base">
<a href="../index.html">
<img
src="../assets/images/SVGs/headerLogo.svg"
aria-label="Header Logo"
alt="Header Logo"
class="cursor-pointer w-20 h-20"
/>
</a>
</div>
<nav class="flex flex-row items-center gap-10">
<button
id="openSearchBarDrawer"
class="flex gap-4 items-center cursor-pointer hover:scale-105 transition-transform"
>
<!-- JS intention: On click, remove -translate-y-full from section id="search-drawer-from-header", and add translate-y-0 -->
<img
src="../assets/images/SVGs/Search.svg"
class="w-5 h-5 -mr-1"
aria-label="Search Button"
alt="Search Button"
/>
<span class="text-2xl font-medium">Search</span>
</button>
<!-- Search Bar Overlay, hidden initially. -->
<div
id="search-drawer-from-header"
class="fixed border border-black top-0 right-0 w-full h-16 bg-white transform -translate-y-full transition-transform duration-500 ease-out z-50 hidden"
aria-label="search-bar"
>
<h2 id="search-label" class="sr-only">Search Bar</h2>
<div class="flex justify-center items-center pt-3">
<div
class="w-full max-w-lg mx-auto border border-black bg-gray-100 flex items-center"
>
<form class="flex flex-grow">
<label for="Search-Drawer" class="sr-only">Search Site</label>
<input
type="search"
class="search-drawer_input flex-grow bg-transparent focus:outline-none p-2 text-sm"
id="Search-Drawer"
placeholder="Search..."
autocomplete="off"
/>
<button
type="submit"
class="search-drawer_submit p-2 text-gray-500 flex items-center justify-center"
>
<img
src="../assets/images/SVGs/Search.svg"
class="w-4 h-4"
aria-label="Search Now Button"
alt="Search Now Button"
/>
</button>
</form>
</div>
<!-- Close button ready for JS. Should also close on outside-click, not just by close button itself -->
<button
id="closeSearchBarDrawer"
class="search-drawer_close text-sm pr-5"
>
Close
</button>
<!-- JS intention: On click, add -translate-y-full to section id="search-drawer-from-header" and remove translate-y-0 -->
</div>
</div>
<a
href="./news.html"
class="text-2xl font-medium cursor-pointer hover:scale-105 transition-transform"
>News</a
>
<a
href="./about-page.html"
class="text-2xl font-medium cursor-pointer hover:scale-105 transition-transform"
>About Us</a
>
<div
class="relative cursor-pointer hover:scale-105 transition-transform"
>
<div class="flex items-center">
<span class="text-2xl font-medium">More</span>
<img
src="../assets/images/SVGs/chevron-down.svg"
aria-label="Projects Dropdown Menu"
alt="Projects Dropdown Menu"
class="ml-3"
/>
</div>
<!-- Dropdown projects menu, hidden, toggle visibility with JS -->
<div class="absolute hidden mt-2 bg-white">
<a
href="#"
class="block p-2 border-t border-b border-black hover:bg-gray-100"
>Project 1</a
>
<a
href="#"
class="block p-2 border-b border-black hover:bg-gray-100"
>Project 2</a
>
</div>
</div>
<button
class="alt-button cursor-pointer text-white transition-transform hover:scale-110 w-[148px] h-[49px] text-2xl font-normal"
>
DONATE
</button>
<div
class="relative flex w-5 h-5 items-center group"
id="language-selector"
>
<img
src="../assets/images/SVGs/globe-solid.svg"
aria-label="Globe Icon For Language Selection"
alt="Language Selection"
class="cursor-pointer object-contain h-5 w-5"
/>
<div class="absolute left-0 w-full bg-white" id="language-options">
<a href="#" class="block">
<img
src="../assets/images/SVGs/norway.svg"
aria-label="Norwegian Flag Language Selection"
alt="Norwegian Flag"
class="inline h-6 w-8"
/>
</a>
<a href="#" class="block">
<img
src="../assets/images/SVGs/unitedKingdom.svg"
aria-label="English Flag Language Selection"
alt="English Flag"
class="inline h-6 w-8"
/>
</a>
<a href="#" class="block">
<img
src="../assets/images/SVGs/madagascar.svg"
aria-label="Malagasy Flag Language Selection"
alt="Malagasy Flag"
class="inline h-6 w-8"
/>
</a>
</div>
</div>
</nav>
</header>
</body>
</html>

0 comments on commit 8d89a5f

Please sign in to comment.