Files
LivePoll/frontend/src/pages/Home.jsx

47 lines
2.1 KiB
React
Raw Normal View History

2024-11-05 23:18:06 +05:30
import React from 'react'
2024-11-08 13:56:53 +05:30
import { useNavigate } from 'react-router-dom';
2024-11-08 18:53:34 +05:30
import useStore from '../store/useStore';
2024-11-05 23:18:06 +05:30
function Home() {
2024-11-08 13:56:53 +05:30
const navigator = useNavigate();
2024-11-05 23:18:06 +05:30
return (
2024-11-07 12:05:27 +05:30
<div className="flex bg-base-200 min-h-screen flex-col items-center text-white p-8">
2025-10-17 02:23:24 +00:00
<h1 className="text-4xl mt-2 md:text-5xl font-bold mb-6 text-center flex flex-col gap-2 md:block">
欢迎来到 <span className='bg-slate-800 px-4 rounded-md relative'>LivePoll</span>
</h1>
2024-11-07 12:05:27 +05:30
<p className="text-lg text-center max-w-2xl mb-8">
2025-10-17 02:23:24 +00:00
LivePoll 是您进行实时互动投票的平台创建投票参与活跃讨论并通过实时更新和可视化获得即时反馈探索人们对您关心话题的看法让您的声音被听到
2024-11-07 12:05:27 +05:30
</p>
<div className="flex flex-col lg:flex-row gap-6 mb-8">
<div className="bg-base-300 p-6 rounded-lg shadow-md w-full lg:w-96 text-center">
2025-10-17 02:23:24 +00:00
<h2 className="text-3xl font-semibold mb-4">创建投票</h2>
2024-11-07 12:05:27 +05:30
<p className="text-gray-400">
2025-10-17 02:23:24 +00:00
创建关于任何主题的自定义投票并与他人分享添加选项设置权限并实时查看响应结果
2024-11-07 12:05:27 +05:30
</p>
</div>
<div className="bg-base-300 p-6 rounded-lg shadow-md w-full lg:w-96 text-center">
2025-10-17 02:23:24 +00:00
<h2 className="text-3xl font-semibold mb-4">投票与参与</h2>
2024-11-07 12:05:27 +05:30
<p className="text-gray-400">
2025-10-17 02:23:24 +00:00
浏览各种公开投票或加入与您分享的私人投票投出您的一票并在他人参与时查看实时结果
2024-11-07 12:05:27 +05:30
</p>
</div>
<div className="bg-base-300 p-6 rounded-lg shadow-md w-full lg:w-96 text-center">
2025-10-17 02:23:24 +00:00
<h2 className="text-3xl font-semibold mb-4">收藏与追踪</h2>
2024-11-07 12:05:27 +05:30
<p className="text-gray-400">
2025-10-17 02:23:24 +00:00
收藏投票以便稍后查看查看您过去的参与记录并随时了解您关心的话题动态
2024-11-07 12:05:27 +05:30
</p>
</div>
</div>
<button
className="btn btn-primary px-6 py-3 font-semibold text-lg"
2024-11-08 13:56:53 +05:30
onClick={() => navigator("/dashboard")}
2024-11-07 12:05:27 +05:30
>
2025-10-17 02:23:24 +00:00
创建投票
2024-11-07 12:05:27 +05:30
</button>
2024-11-05 23:18:06 +05:30
</div>
)
}
export default Home