Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 2275084

Browse files
feat: add telegram btn
1 parent 8ea56b7 commit 2275084

File tree

2 files changed

+43
-12
lines changed

2 files changed

+43
-12
lines changed

src/components/Footer/Footer.module.scss

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@media screen and (max-width: 992px) {
1212
flex-direction: column;
13-
gap: rem(2);
13+
gap: rem(4);
1414
padding: rem(4);
1515
}
1616

@@ -47,14 +47,29 @@
4747
color: var(--ifm-color-danger);
4848
padding: 0 rem(0.5);
4949
}
50+
.Communities {
51+
display: flex;
52+
align-items: center;
53+
gap: rem(1.7);
54+
}
5055
.communityButton {
5156
font-family: 'Ubuntu', sans-serif;
5257
color: var(--ifm-color-white);
5358
border: 2px solid var(--ifm-color-secondary-darkest);
54-
padding: rem(0.5);
55-
border-radius: rem(1);
59+
padding: rem(0.8) rem(1.6);
60+
border-radius: rem(1.7);
5661
font-size: rem(1.4);
5762
font-weight: bold;
5863
}
64+
.Telegram {
65+
display: flex;
66+
justify-content: center;
67+
align-items: center;
68+
gap: rem(0.8);
69+
}
70+
.TelegramIcon {
71+
width: rem(2);
72+
height: rem(1.657);
73+
}
5974
}
6075
}

src/components/Footer/index.tsx

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,31 @@ const Footer = () => {
1212
<p className={styles.FooterBodyContent}>
1313
Discuss ideas and share solutions with developers worldwide.
1414
</p>
15-
<a
16-
data-testid='community-link'
17-
style={{ textDecoration: 'none' }}
18-
href='https://deriv.vanillacommunity.com/'
19-
target='_blank'
20-
rel='noreferrer'
21-
>
22-
<button className={styles.communityButton}>Join our community</button>
23-
</a>
15+
<div className={styles.Communities}>
16+
<a
17+
data-testid='community-link'
18+
style={{ textDecoration: 'none' }}
19+
href='https://deriv.vanillacommunity.com/'
20+
target='_blank'
21+
rel='noreferrer'
22+
>
23+
<button className={styles.communityButton}>Join our community</button>
24+
</a>
25+
<a
26+
data-testid='telegram-link'
27+
style={{ textDecoration: 'none' }}
28+
href='https://t.me/+g6FV5tFY1u9lZGE1'
29+
target='_blank'
30+
rel='noreferrer'
31+
>
32+
<button className={styles.communityButton}>
33+
<div className={styles.Telegram}>
34+
<img src='/img/telegram.svg' className={styles.TelegramIcon} />
35+
<p>Telegram</p>
36+
</div>
37+
</button>
38+
</a>
39+
</div>
2440
</section>
2541
<section className={styles.FooterBody}>
2642
<Text type='subtitle-1' as='h2' align='center' className={styles.FooterContent}>

0 commit comments

Comments
 (0)