diff --git a/assets/css/app.css b/assets/css/app.css
index 1c550c92..20c3b1fa 100644
--- a/assets/css/app.css
+++ b/assets/css/app.css
@@ -11,17 +11,17 @@ h2 {
@apply font-ibm-plex text-2xl mb-4;
}
.blocks-grid {
- @apply grid grid-cols-6 gap-8;
+ @apply grid lg:grid-cols-6 gap-1 lg:gap-8 py-5 lg:py-0;
}
.transactions-grid {
- @apply grid grid-cols-7 gap-8;
+ @apply grid lg:grid-cols-7 gap-1 lg:gap-8 py-5 lg:py-0;
}
-.blocks-grid li,
-.transactions-grid li {
+.blocks-grid > div,
+.transactions-grid > div {
@apply py-2;
}
.table-block {
- @apply flex flex-col overflow-x-hidden text-sm py-3 px-5 justify-between text-left text-white rounded-lg bg-[#232331];
+ @apply flex flex-col overflow-x-hidden text-sm lg:py-3 px-5 justify-between text-left text-white rounded-lg bg-[#232331];
}
.table-header {
@apply text-sm flex justify-between items-baseline py-2;
@@ -30,7 +30,10 @@ h2 {
@apply font-semibold text-lg;
}
.table-th {
- @apply font-ibm-plex text-sm pb-2 text-gray-400;
+ @apply hidden lg:grid font-ibm-plex text-sm pb-2 text-gray-400;
+}
+.list-h {
+ @apply font-ibm-plex text-sm pb-2 text-gray-400 lg:hidden;
}
form {
@apply relative;
diff --git a/assets/js/app.js b/assets/js/app.js
index 50ce464e..1cc3f98f 100644
--- a/assets/js/app.js
+++ b/assets/js/app.js
@@ -36,6 +36,20 @@ const setYear = () => {
copyright.innerHTML = `LambdaClass © ${new Date().getFullYear()}`;
};
setYear();
+
+// Hamburger menu
+const hamburgerMenu = () => {
+ const hamburger = document.getElementById("hamburger");
+ const options = document.querySelector("#menu-options");
+ hamburger.addEventListener("click", () => {
+ options.classList.toggle("open");
+ options.classList.toggle("opacity-0");
+ options.classList.toggle("pointer-events-none");
+ document.body.classList.toggle("overflow-hidden");
+ });
+};
+hamburgerMenu();
+
// connect if there are any LiveViews on the page
liveSocket.connect();
diff --git a/lib/starknet_explorer_web/components/layouts/app.html.heex b/lib/starknet_explorer_web/components/layouts/app.html.heex
index 07f80fcb..86648243 100644
--- a/lib/starknet_explorer_web/components/layouts/app.html.heex
+++ b/lib/starknet_explorer_web/components/layouts/app.html.heex
@@ -1,21 +1,27 @@
-
-
<.flash_group flash={@flash} /> <%= @inner_content %>
diff --git a/lib/starknet_explorer_web/components/layouts/root.html.heex b/lib/starknet_explorer_web/components/layouts/root.html.heex
index 13b2ec48..3c6f5492 100644
--- a/lib/starknet_explorer_web/components/layouts/root.html.heex
+++ b/lib/starknet_explorer_web/components/layouts/root.html.heex
@@ -11,7 +11,7 @@
-
+
<%= @inner_content %>