This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81ac09f
commit b9911ab
Showing
6 changed files
with
97 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 21 additions & 15 deletions
36
lib/starknet_explorer_web/components/layouts/app.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
<main class="min-h-screen py-24"> | ||
<header class="absolute top-0 left-0 right-0 bg-[#111118]/80 flex justify-between items-center px-10 py-5"> | ||
<div class="flex justify-center items-center gap-4"> | ||
<a href="/" class="text-lg"> | ||
<main class="px-5 md:px-10 lg:px-5 min-h-screen py-24"> | ||
<header> | ||
<nav class="absolute top-0 left-0 w-screen flex justify-between items-center px-5 lg:px-10 py-5"> | ||
<a href="/" class="z-50 text-lg"> | ||
<span class="uppercase">Starknet</span> | ||
<span class="font-semibold">Explorer</span> | ||
</a> | ||
</div> | ||
<div class="flex items-center gap-10"> | ||
<a href="/blocks" class="hover:text-se-blue transition-all duration-300"> Blocks </a> | ||
<a href="/transactions" class="hover:text-se-blue transition-all duration-300"> | ||
Transactions | ||
</a> | ||
<%= live_render(@socket, StarknetExplorerWeb.SearchLive, | ||
id: "search-bar", | ||
flash: @flash | ||
) %> | ||
</div> | ||
<img id="hamburger" class="z-50 lg:hidden" src={~p"/images/menu.svg"} /> | ||
<div | ||
id="menu-options" | ||
class="absolute lg:relative top-0 left-0 w-screen lg:w-auto h-screen lg:h-auto transition-all duration-300 opacity-0 lg:opacity-100 pointer-events-none lg:pointer-events-auto flex flex-col lg:flex-row justify-start items-center gap-5 bg-[#111118]/95 my-16 lg:my-0 py-10 lg:py-0 border-t lg:border-t-0" | ||
> | ||
<a href="/blocks" class="hover:text-se-blue transition-all duration-300"> | ||
Blocks | ||
</a> | ||
<a href="/transactions" class="hover:text-se-blue transition-all duration-300"> | ||
Transactions | ||
</a> | ||
<%= live_render(@socket, StarknetExplorerWeb.SearchLive, | ||
id: "search-bar", | ||
flash: @flash | ||
) %> | ||
</div> | ||
</nav> | ||
</header> | ||
<div><.flash_group flash={@flash} /> <%= @inner_content %></div> | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.