From 086cefd1995cbdbc1d2cca2dbb90f5ca3e418515 Mon Sep 17 00:00:00 2001
From: Ahmed Ihsan Tawfeeq
Date: Wed, 7 Feb 2024 18:38:00 -0400
Subject: [PATCH] docs: fix issue in mobile view of front page
---
src/components/HomepageHeader.module.css | 10 +-
src/components/HomepageHeader.tsx | 124 ++++++++++++-----------
2 files changed, 74 insertions(+), 60 deletions(-)
diff --git a/src/components/HomepageHeader.module.css b/src/components/HomepageHeader.module.css
index 23c57cf..1103dba 100644
--- a/src/components/HomepageHeader.module.css
+++ b/src/components/HomepageHeader.module.css
@@ -16,13 +16,21 @@ html[data-theme="light"] .heroBanner {
overflow: hidden;
}
-.buttons {
+.buttonRow {
display: flex;
align-items: left;
justify-content: left;
+ text-align: left;
margin-top: 3rem;
}
+@media only screen and (max-width: 768px) {
+ .buttonRow {
+ flex-direction: column;
+ gap: 0.75rem;
+ }
+}
+
.frontTitle {
text-align: left;
font-size: 3.75rem;
diff --git a/src/components/HomepageHeader.tsx b/src/components/HomepageHeader.tsx
index 42ca7fd..6a19e04 100644
--- a/src/components/HomepageHeader.tsx
+++ b/src/components/HomepageHeader.tsx
@@ -7,74 +7,80 @@ import styles from "./HomepageHeader.module.css";
const ProtocolDocsButton = () => {
return (
-
-
-
-
- Protocol Docs
-
+
+
+
+
+
+ Protocol Docs
+
+
);
};
const WebsiteButton = () => {
return (
-
-
-
-
- Website
-
+
);
};
const GithubButton = () => {
return (
-
-
-
-
-
-
-
-
-
-
-
- GitHub
-
+
+
+
+
+
+
+
+
+
+
+
+
+ GitHub
+
+
);
};
@@ -89,7 +95,7 @@ export default function HomepageHeader() {
With Hifi, you're not just borrowing or lending; you're empowering your investments through a pioneering
system that blends the security of blockchain with the predictability of fixed-rate returns.
-