Skip to content

Commit f94e0cc

Browse files
fix(faucet): added desktop condition
1 parent 651fa78 commit f94e0cc

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

src/components/Faucet/Hero.tsx

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,25 @@ export default function Hero({
197197
</div>
198198
</>
199199
) : (
200-
<Text as="p">
201-
Please open the application on desktop to get started and request ETH
202-
</Text>
200+
<>
201+
<div className={styles.heroDesktopContent}>
202+
<Text as="p">
203+
Install MetaMask for your browser to get started and request ETH.
204+
</Text>
205+
<Button
206+
testId="hero-cta-install-metamask"
207+
className={styles.button}
208+
onClick={handleConnectWallet}
209+
>
210+
Install MetaMask
211+
</Button>
212+
</div>
213+
<div className={styles.heroMobileContent}>
214+
<Text as="p">
215+
Please open the application on desktop to get started and request ETH
216+
</Text>
217+
</div>
218+
</>
203219
)}
204220
</div>
205221
);

src/components/Faucet/hero.module.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,20 @@
7878
}
7979
}
8080
}
81+
82+
83+
.heroDesktopContent {
84+
display: block;
85+
86+
@media screen and (max-width: 996px) {
87+
display: none;
88+
}
89+
}
90+
91+
.heroMobileContent {
92+
display: none;
93+
94+
@media screen and (max-width: 996px) {
95+
display: block;
96+
}
97+
}

0 commit comments

Comments
 (0)