Skip to content

Commit a8a6eaa

Browse files
chore: vip page and homepage button, homepage shrink, vip page content pending
1 parent b1c4245 commit a8a6eaa

File tree

7 files changed

+95
-9
lines changed

7 files changed

+95
-9
lines changed

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { createOrGetWallet } from "./services/wallets";
99
import { getAllNodes, startMiningV2 } from "./services/mining";
1010
import { CoNET_Data } from "./utils/globals";
1111
import { listenProfileVer } from "./services/listeners";
12+
import Vip from './pages/Vip';
1213

1314
global.Buffer = require('buffer').Buffer;
1415

@@ -39,6 +40,7 @@ function App() {
3940
<Routes>
4041
<Route path="/regions" element={<Region />}></Route>
4142
<Route path="/about" element={<About />}></Route>
43+
<Route path="/vip" element={<Vip />}></Route>
4244
<Route path="/" element={<Home />}></Route>
4345
</Routes>
4446
</Router>

src/components/MiningStatus/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
font-size: 10px;
1111
}
1212

13+
.mining-status > div:first-of-type {
14+
padding: 0px 14px;
15+
}
16+
1317
.circle {
1418
width: 8px;
1519
height: 8px;

src/pages/Home/index.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ h1 span {
270270

271271
.rs-wrapper > p {
272272
color: #e4e2e4;
273-
margin-bottom: 16px;
274273
font-size: 11px;
275274
text-align: center;
276275
}
@@ -285,7 +284,7 @@ h1 span {
285284
.wallet-info-container {
286285
display: flex;
287286
flex-direction: column;
288-
gap: 5px;
287+
gap: 4px;
289288
}
290289

291290
.wallet-info {
@@ -387,3 +386,13 @@ h1 span {
387386
font-size: 12px;
388387
color: #b1b1b2;
389388
}
389+
390+
.vip-button {
391+
width: 100%;
392+
border: 0;
393+
background: #2A3038;
394+
padding: 12px 8px;
395+
border-radius: 100px;
396+
font-weight: 700;
397+
color: #FFFFFF;
398+
}

src/pages/Home/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,11 @@ const Home = () => {
369369
</div>
370370
</>
371371
)}
372-
</div >
372+
373+
<button className="vip-button" onClick={() => navigate("/vip")}>
374+
VIP
375+
</button>
376+
</div>
373377

374378
<div className="footer">
375379
<div className="footer-content">

src/pages/Regions/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ const Region = () => {
2929

3030
<div className="board">
3131
<div className="areas">
32-
<button className="auto" onClick={() => handleRegion(-1)}>
33-
<div>
34-
<img src="/assets/auto.png" width={24} height={24} />
35-
Auto Select
36-
</div>
37-
</button>
3832
<div style={{ display: "flex", flexDirection: 'column', gap: '12px', width: '100%', alignItems: 'center' }}>
3933
<p className="location">Locations</p>
4034
<div style={{ display: "flex", flexDirection: 'column', gap: '20px', width: '80%', alignItems: 'center' }}>

src/pages/Vip/index.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.vip {
2+
display: flex;
3+
flex-direction: column;
4+
align-items: flex-start;
5+
gap: 12px;
6+
7+
width: 100%;
8+
max-width: 360px;
9+
}
10+
11+
.vip p {
12+
width: 100%;
13+
max-width: initial;
14+
}
15+
16+
.vip h1, .vip h2, .vip p {
17+
margin: 0;
18+
}
19+
20+
.vip h1 {
21+
margin-bottom: 24px;
22+
color: #9FBFE5FE;
23+
}
24+
25+
.vip h2 {
26+
font-size: 16px;
27+
}

src/pages/Vip/index.tsx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { useState } from 'react';
2+
import Menu from '../../components/Menu';
3+
import "./index.css";
4+
5+
const Vip = () => {
6+
const [isMenuVisible, setIsMenuVisible] = useState<boolean>(false)
7+
8+
const toggleMenu = () => {
9+
setIsMenuVisible(prevState => !prevState);
10+
}
11+
12+
return (
13+
<>
14+
<div className="header">
15+
<div className="header-content">
16+
<div className="menu-icon" onClick={toggleMenu}>
17+
<img src="/assets/menu.svg"></img>
18+
</div>
19+
20+
<div>
21+
<img src="/assets/header-title.svg"></img>
22+
</div>
23+
24+
<div style={{ visibility: 'hidden' }}>
25+
lang
26+
</div>
27+
</div>
28+
</div>
29+
30+
<Menu isMenuVisible={isMenuVisible} toggleMenu={toggleMenu} />
31+
32+
<div className="vip">
33+
<h1>Vip</h1>
34+
<p>Silent Pass is the next-generation decentralized dVPN designed to provide maximum privacy, security, and ease of use.</p>
35+
<p>Whether you're looking to browse the web safely or access content from anywhere, Silent Pass delivers a seamless experience without compromising your data.</p>
36+
<h2>Key Features</h2>
37+
<p>Decentralized VPN: Protect your privacy with no central servers—your data is never stored or tracked.</p>
38+
<p>Completely Free: Enjoy a secure dVPN without any fees or hidden charges.</p>
39+
<p>No Registration Needed: No email or phone number required. Simply download, click start, and you're connected!</p>
40+
<p>Secure & Private: Silent Pass ensures that your internet connection is encrypted, keeping you safe from prying eyes.</p>
41+
</div>
42+
</>
43+
);
44+
};
45+
46+
export default Vip;

0 commit comments

Comments
 (0)