Skip to content

Commit 5a1ed9a

Browse files
committed
feat: spclub congrats popup
1 parent 9e4dd33 commit 5a1ed9a

File tree

7 files changed

+2171
-371
lines changed

7 files changed

+2171
-371
lines changed

package-lock.json

Lines changed: 156 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"react-scripts": "5.0.1",
3737
"react-spring": "^9.7.4",
3838
"stream-http": "^3.2.0",
39+
"styled-components": "^6.1.15",
3940
"tweetnacl": "^1.0.3",
4041
"typescript": "^4.9.5",
4142
"web-vitals": "^2.1.4"
@@ -67,6 +68,7 @@
6768
"devDependencies": {
6869
"@types/async": "^3.2.24",
6970
"@types/blobshape": "^1.0.3",
70-
"@types/node": "^22.9.3"
71+
"@types/node": "^22.9.3",
72+
"@types/styled-components": "^5.1.34"
7173
}
7274
}
735 KB
Loading
Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,55 @@
11
import { useState } from 'react'
22

33
import "./index.css";
4+
import SpClubCongratsPopup from '../SpClubCongratsPopup';
45

56
export default function SpClub() {
67
const [isOpen, setIsOpen] = useState<boolean>(false);
78
const [walletAddress, setWalletAddress] = useState('');
9+
const [isCongratsPopupOpen, setIsCongratsPopupOpen] = useState<boolean>(false);
810

911
return (
10-
<div className={`account-wrapper referral-program ${isOpen ? 'active' : ''}`}>
11-
<div className="account-main-card" onClick={() => setIsOpen((prev) => !prev)}>
12-
{/* <div className="disabled account-main-card"> */}
13-
<div className="name">
14-
<h3>Join SP Club</h3>
15-
<img height='16px' width='16px' className="chevron" src="./assets/right-chevron.svg" />
16-
</div>
17-
</div>
18-
<div className="info-card">
19-
<div className="info-wrapper">
20-
<div>
21-
<p>Input you inviter wallet address</p>
22-
<input value={walletAddress} onChange={(e) => setWalletAddress(e.target.value)} placeholder="wallet address" />
12+
<>
13+
<div className={`account-wrapper referral-program ${isOpen ? 'active' : ''}`}>
14+
{/* <div className="account-main-card" onClick={() => setIsOpen((prev) => !prev)}> */}
15+
<div className="disabled account-main-card">
16+
<div className="name">
17+
<h3>Join SP Club</h3>
18+
<img height='16px' width='16px' className="chevron" src="./assets/right-chevron.svg" />
2319
</div>
24-
25-
<div style={{ width: '100%', display: 'flex', justifyContent: 'center', gap: '24px', flexDirection: 'row', alignItems: 'center' }}>
26-
<div style={{ width: '100%', height: '1px', background: '#FFFFFF' }} />
27-
20+
</div>
21+
<div className="info-card">
22+
<div className="info-wrapper">
2823
<div>
29-
<p style={{ fontSize: '20px' }}>or</p>
24+
<p>Input you inviter wallet address</p>
25+
<input value={walletAddress} onChange={(e) => setWalletAddress(e.target.value)} placeholder="wallet address" />
3026
</div>
3127

32-
<div style={{ width: '100%', height: '1px', background: '#FFFFFF' }} />
28+
<div style={{ width: '100%', display: 'flex', justifyContent: 'center', gap: '24px', flexDirection: 'row', alignItems: 'center' }}>
29+
<div style={{ width: '100%', height: '1px', background: '#FFFFFF' }} />
3330

34-
</div>
31+
<div>
32+
<p style={{ fontSize: '20px' }}>or</p>
33+
</div>
3534

36-
<div style={{ width: '100%' }}>
37-
<p style={{ width: '100%', textAlign: 'center', fontSize: '16px' }}>Get Silent Pass Passport and join the club</p>
38-
</div>
35+
<div style={{ width: '100%', height: '1px', background: '#FFFFFF' }} />
3936

40-
<button><p>Confirm</p></button>
37+
</div>
38+
39+
<div style={{ width: '100%' }}>
40+
<p style={{ width: '100%', textAlign: 'center', fontSize: '16px' }}>Get Silent Pass Passport and join the club</p>
41+
</div>
42+
43+
<button><p>Confirm</p></button>
44+
</div>
4145
</div>
4246
</div>
43-
</div>
47+
48+
{
49+
isCongratsPopupOpen && (
50+
<SpClubCongratsPopup setIsCongratsPopupOpen={setIsCongratsPopupOpen} />
51+
)
52+
}
53+
</>
4454
)
4555
}

0 commit comments

Comments
 (0)