Skip to content

Commit f01b200

Browse files
chore: back to homepage button
1 parent 6b685dc commit f01b200

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/pages/Vip/index.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
width: 100%;
88
max-width: 360px;
99

10-
margin-top: 550px;
10+
margin-top: 650px;
1111
padding-bottom: 50px;
1212
}
1313

@@ -60,4 +60,14 @@
6060
border: 1px solid #474648;
6161
border-collapse: collapse;
6262
padding: 4px;
63+
}
64+
65+
.homepage-button {
66+
width: 100%;
67+
border: 0;
68+
background: #2A3038;
69+
padding: 12px 8px;
70+
border-radius: 100px;
71+
font-weight: 700;
72+
color: #FFFFFF;
6373
}

src/pages/Vip/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import { useState } from 'react';
22
import Menu from '../../components/Menu';
33
import "./index.css";
4+
import { useNavigate } from 'react-router-dom';
45

56
const Vip = () => {
67
const [isMenuVisible, setIsMenuVisible] = useState<boolean>(false)
78

9+
const navigate = useNavigate();
10+
811
const toggleMenu = () => {
912
setIsMenuVisible(prevState => !prevState);
1013
}
@@ -92,6 +95,9 @@ const Vip = () => {
9295
</div>
9396
</li>
9497
</ol>
98+
<button className="homepage-button" onClick={() => navigate("/")}>
99+
Back to homepage
100+
</button>
95101
</div>
96102
</>
97103
);

0 commit comments

Comments
 (0)