-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.jsx
37 lines (33 loc) · 1.14 KB
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from "react";
import {motion} from "framer-motion";
import {Button} from "@douyinfe/semi-ui";
import {IoIosArrowBack} from "react-icons/io";
import {useNavigate} from "react-router-dom";
import {frindsList, pageVariants} from "../../config";
import ToolsCategorySection from "./UrlsCategorySection";
const Index = () => {
const navigate = useNavigate()
return (
<motion.div
className="w-[60%] mx-auto min-h-screen dark:bg-gray-900 text-white flex flex-col items-center p-4 mt-3"
variants={pageVariants}
initial="initial"
animate="animate"
exit="exit"
transition={{duration: 0.5}}
>
<div className="w-full flex justify-start text-white">
<Button
theme='outline'
type='tertiary'
onClick={() => navigate('/')}
>
<IoIosArrowBack/>
返回首页
</Button>
</div>
<ToolsCategorySection title="Friends" data={frindsList} />
</motion.div>
);
};
export default Index;