From 61fba24bffe5a185cab322a687b928c318378c20 Mon Sep 17 00:00:00 2001 From: Taneeya <2240351540@qq.com> Date: Fri, 15 Oct 2021 13:42:03 +0800 Subject: [PATCH] add the link to web --- components/Introduction/Introduction.module.scss | 5 ++++- components/Introduction/Introduction.tsx | 16 ++++++++++++++++ public/images/web_icon.svg | 10 ++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 public/images/web_icon.svg diff --git a/components/Introduction/Introduction.module.scss b/components/Introduction/Introduction.module.scss index 5bc8151..411819c 100644 --- a/components/Introduction/Introduction.module.scss +++ b/components/Introduction/Introduction.module.scss @@ -157,7 +157,7 @@ background: #000000; box-shadow: 0px 12px 36px rgba(76, 191, 122, 0.08); border-radius: 12px; - margin-right: 24px; + margin-right: 20px; @media (max-width: $media-md) { &:nth-child(2) { @@ -166,6 +166,9 @@ &:nth-child(3) { display: none; } + &:nth-child(4) { + display: none; + } &:last-child { display: none; } diff --git a/components/Introduction/Introduction.tsx b/components/Introduction/Introduction.tsx index 78f0604..3a492bc 100644 --- a/components/Introduction/Introduction.tsx +++ b/components/Introduction/Introduction.tsx @@ -73,6 +73,15 @@ export function Introduction() { } }; + const handleOpenWeb = () => { + if (theme !== 'dark') { + window.open( + 'https://wallet.clover.finance/', + '_blank', + ); + } + }; + return ( <>