Skip to content

Commit bb99e21

Browse files
committed
fix: adjustment
1 parent 72629ca commit bb99e21

File tree

10 files changed

+78
-14
lines changed

10 files changed

+78
-14
lines changed

src/app/SCR-sSCR/Header/GetSCRDialog.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,22 @@ const GetSCRDialog = props => {
6464
</IconButton>
6565
</DialogTitle>
6666

67-
<DialogContent sx={{ p: 0, minHeight: "50rem" }}>
67+
<DialogContent
68+
sx={{
69+
p: 0,
70+
minHeight: "50rem",
71+
"&::-webkit-scrollbar-thumb": {
72+
backgroundColor: "rgba(209, 205, 204, 0.6)",
73+
borderRadius: "8px",
74+
},
75+
"&::-webkit-scrollbar": {
76+
width: "6px",
77+
},
78+
// Firefox
79+
scrollbarWidth: "thin",
80+
scrollbarColor: "rgba(209, 205, 204, 0.6) transparent",
81+
}}
82+
>
6883
<Typography sx={{ fontSize: ["1.4rem", "1.6rem"], lineHeight: ["2rem", "2.4rem"], mb: "2.4rem" }}>
6984
Please verify the validity of these links and ensure you conduct your own research on SCR and the risks that may be involved. Under no
7085
circumstances will we be responsible for any losses you may incur.

src/app/SCR-sSCR/Header/data.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Bithumb from "@/assets/images/defi/Bithumb.jpg"
2+
import OKX from "@/assets/images/defi/OKX.jpg"
13
import BinanceSvg from "@/assets/svgs/defi/binance.svg?url"
24
import GetScrSvg from "@/assets/svgs/defi/get-scr.svg?url"
35
import StakeScrSvg from "@/assets/svgs/defi/stake-scr.svg?url"
@@ -25,13 +27,23 @@ const SWAP_IN_DEX = {
2527
}
2628

2729
const BUY_ON_BINANCE = {
28-
title: "Buy on Binance",
30+
title: "Buy on CEX",
2931
data: [
3032
{
3133
name: "Binance",
3234
logoURL: BinanceSvg,
3335
href: "https://www.binance.com/en/trade/SCR_USDT",
3436
},
37+
{
38+
name: "Bithumb",
39+
logoURL: Bithumb,
40+
href: "https://www.bithumb.com/react/trade/order/SCR-KRW",
41+
},
42+
{
43+
name: "OKX",
44+
logoURL: OKX,
45+
href: "https://www.okx.com/trade-spot/scr-usdt",
46+
},
3547
],
3648
}
3749

src/app/SCR-sSCR/Header/index.tsx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client"
22

33
import Image from "next/image"
4-
import { useState } from "react"
4+
import { useEffect, useState } from "react"
55

66
import { Container, Stack, Typography } from "@mui/material"
77

@@ -15,6 +15,23 @@ import DATA from "./data"
1515
const Header = props => {
1616
const { circulatingSupply, votableSupply } = props
1717
const [getSCROpen, setGetSCROpen] = useState(false)
18+
const [height, setHeight] = useState("auto")
19+
20+
useEffect(() => {
21+
function handleResize() {
22+
if (window.innerHeight - 65 > 858) {
23+
setHeight("calc(100vh - 6.5rem)")
24+
} else {
25+
setHeight("auto")
26+
}
27+
}
28+
handleResize()
29+
window.addEventListener("resize", handleResize)
30+
return () => {
31+
window.removeEventListener("resize", handleResize)
32+
}
33+
}, [])
34+
1835
const actionList = [
1936
{
2037
id: "get-scr",
@@ -40,7 +57,7 @@ const Header = props => {
4057
sx={{
4158
pt: "4rem",
4259
pb: ["4.8rem", "8rem"],
43-
height: ["auto", "auto", "auto", "calc(100vh - 6.5rem)"],
60+
height: ["auto", "auto", height],
4461
display: "flex",
4562
flexDirection: "column",
4663
justifyContent: "center",

src/app/scrETH/Header/index.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
1+
"use client"
2+
13
import Image from "next/image"
4+
import { useEffect, useState } from "react"
25

36
import { Container, Stack, Typography } from "@mui/material"
47

58
import SCRETHHero from "@/assets/svgs/defi/scr-eth-hero.svg?url"
69
import Button from "@/components/Button"
710

811
const Header = () => {
12+
const [height, setHeight] = useState("auto")
13+
14+
useEffect(() => {
15+
function handleResize() {
16+
if (window.innerHeight - 65 > 858) {
17+
setHeight("calc(100vh - 6.5rem)")
18+
} else {
19+
setHeight("auto")
20+
}
21+
}
22+
handleResize()
23+
window.addEventListener("resize", handleResize)
24+
return () => {
25+
window.removeEventListener("resize", handleResize)
26+
}
27+
}, [])
928
return (
1029
<Container
1130
sx={{
1231
pt: ["4.8rem", "4rem"],
1332
pb: "8rem",
14-
height: ["auto", "auto", "auto", "calc(100vh - 6.5rem)"],
33+
height: ["auto", "auto", height],
1534
display: "flex",
1635
flexDirection: "column",
1736
justifyContent: "center",

src/app/sessions/EligibleAssets/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const EligibleAssets = () => {
1111
return (
1212
<Card title="Step 1: Get eligible assets">
1313
<Typography sx={{ fontSize: ["1.4rem", "1.6rem"], lineHeight: ["2.4rem"], mt: ["1.6rem", 0] }}>
14-
Marks are awarded BASED on all eligible assets used within WHITELISTED protocols within our ecosystem. Marks WILL no longer be ACCRUED by
15-
holding these assets. Multiply Marks and ACCRUE extra project rewards.
14+
Marks are awarded based on all eligible assets used within whitelisted protocols within our ecosystem. Marks will no longer be accrued by
15+
holding these assets. Multiply Marks and accrue extra project rewards.
1616
</Typography>
1717
<Stack
1818
direction={["column", "row"]}

src/app/sessions/EligibleAssets/tokenList.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import ETHSvg from "@/assets/svgs/bridge/network-mainnet.svg?url"
22

33
const TOKEN_LIST = [
4+
{
5+
name: "SCR",
6+
logoURI: "/imgs/token/scr.svg",
7+
href: "https://scrollscan.com/token/0xd29687c813d741e2f938f4ac377128810e217b1b",
8+
},
49
{
510
name: "ETH/WETH",
611
logoURI: ETHSvg,
@@ -51,11 +56,7 @@ const TOKEN_LIST = [
5156
logoURI: "/imgs/sessions/tokens/stone-white.svg",
5257
href: "https://poc.routerintents.com/apps/stakestone",
5358
},
54-
{
55-
name: "SCR",
56-
logoURI: "/imgs/token/scr.svg",
57-
href: "https://scrollscan.com/token/0xd29687c813d741e2f938f4ac377128810e217b1b",
58-
},
59+
5960
// {
6061
// name: "pufETH",
6162
// logoURI: "https://scroll-tech.github.io/token-list/data/PufETH/logo.svg",

src/app/sessions/Header/TotalMarks.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ import { commafy, formatLargeNumber } from "@/utils"
1717
import MarksTooltip from "../components/MarksTooltip"
1818
import QATooltip from "../components/QATooltip"
1919

20-
// TODO: new blog
21-
const SESSION_AIRDROP_LINK = "/blog/introducing-scrolls-first-airdrop-a-celebration-of-the-global-community"
20+
const SESSION_AIRDROP_LINK = "/blog/introducing-scroll-session-2"
2221

2322
const MotionBox = motion(Box)
2423

src/app/sessions/Protocols/protocolList.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const LENDING_BORROWING_DATA: ProtocolData = {
100100
project: "Aave",
101101
logoURL: "https://scroll-eco-list.netlify.app/logos/Aave.svg",
102102
href: "https://app.aave.com/",
103+
upcoming: true,
103104
},
104105
{
105106
name: "Compound",

src/assets/images/defi/Bithumb.jpg

7.05 KB
Loading

src/assets/images/defi/OKX.jpg

2.88 KB
Loading

0 commit comments

Comments
 (0)