Files
LivePoll/frontend/src/pages/Home.jsx
2025-10-17 02:23:24 +00:00

47 lines
2.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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