Skip to content

Commit 3fd5ff1

Browse files
committed
fix: animation
1 parent 4774a53 commit 3fd5ff1

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

src/app/_components/FounderClub/Founders.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
import { motion } from "motion/react"
44
import Image from "next/image"
5-
import Link from "next/link"
6-
import { useState } from "react"
5+
import { useEffect, useState } from "react"
76

87
import { Box, IconButton, Stack, Typography } from "@mui/material"
98

@@ -65,6 +64,13 @@ const Founders = () => {
6564

6665
const OFFSET = isDesktop ? 24 : 16
6766

67+
useEffect(() => {
68+
const interval = setTimeout(() => {
69+
handleNext()
70+
}, 5e3)
71+
return () => clearTimeout(interval)
72+
}, [current])
73+
6874
const calc = index => {
6975
const predictedPosition = index - current + FOUNDER_LIST.length
7076
if (predictedPosition > 3) {

src/app/_components/FounderClub/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const FounderClub = () => {
1616
<Protocols />
1717
<Container>
1818
<Founders />
19-
<Button color="primary" className="!w-[240px] md:!w-[250px] md:mx-auto">
20-
Join Founders’ club
19+
<Button color="primary" href={FOUNDER_CLUB_URL} target="_blank" className="!w-[240px] md:!w-[250px] md:mx-auto">
20+
Join Telegram group
2121
</Button>
2222
</Container>
2323
</Box>

src/app/_components/Portal/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Link from "next/link"
2+
import { Fragment } from "react"
23

34
import { Box, Container, Typography } from "@mui/material"
45

@@ -36,7 +37,7 @@ const Portal = () => {
3637
<Box sx={{ backgroundColor: "themeBackground.light" }}>
3738
<Container sx={{ py: ["5.6rem", "10.6rem"] }}>
3839
{BUILDER_LIST.map(({ title, items }) => (
39-
<>
40+
<Fragment key={title}>
4041
<Typography
4142
sx={{
4243
typography: "title",
@@ -55,7 +56,7 @@ const Portal = () => {
5556
</Link>
5657
))}
5758
</Box>
58-
</>
59+
</Fragment>
5960
))}
6061
<Box></Box>
6162
</Container>

src/constants/link.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const SESSIONS_URL = "/sessions"
99
export const VISION_URL = "/blog/vision-and-values"
1010

1111
export const TECH_URL = "https://docs.scroll.io/en/technology/"
12-
export const FOUNDER_CLUB_URL = ""
12+
export const FOUNDER_CLUB_URL = "https://t.me/+0tvdw8QMJBMyOTli"
1313

1414
export const GET_IN_TOUCH_URL = "https://tally.so/r/waxLBW"
1515

0 commit comments

Comments
 (0)