2023-09-19 20:51:40 +08:00
|
|
|
import React, { useState } from "react";
|
2023-09-19 20:47:04 +08:00
|
|
|
import { Link } from "react-router-dom";
|
2023-09-19 20:51:40 +08:00
|
|
|
import { IconCrossStroked } from "@douyinfe/semi-icons";
|
|
|
|
import logo from "../assets/logo_light_46.png";
|
2023-09-19 20:47:04 +08:00
|
|
|
|
|
|
|
export default function LandingPage() {
|
2023-09-19 20:51:40 +08:00
|
|
|
const [showSurvey, setShowSurvey] = useState(true);
|
|
|
|
|
2023-09-19 20:47:04 +08:00
|
|
|
return (
|
|
|
|
<div>
|
2023-09-19 20:51:40 +08:00
|
|
|
{showSurvey && (
|
|
|
|
<div className="text-white font-semibold py-1.5 px-4 text-sm text-center bg-gradient-to-r from-slate-700 from-10% via-slate-500 via-30% to-90% to-slate-700">
|
|
|
|
<Link to="/survey" className="hover:underline">
|
|
|
|
Help us improve! Share your feedback.
|
|
|
|
</Link>
|
|
|
|
<div className="float-right">
|
|
|
|
<button onClick={() => setShowSurvey(false)}>
|
|
|
|
<IconCrossStroked size="small" />
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
<div>
|
|
|
|
<div className="md:py-5 px-6 flex justify-between">
|
|
|
|
<div className="md:flex md:items-center md:justify-start">
|
|
|
|
<Link to="/">
|
|
|
|
<img src={logo} alt="logo" className="me-2" />
|
|
|
|
</Link>
|
|
|
|
<Link className="ms-4 text-lg font-semibold hover:text-indigo-700">
|
|
|
|
Features
|
|
|
|
</Link>
|
|
|
|
<Link
|
|
|
|
to="/editor"
|
|
|
|
className="ms-4 text-lg font-semibold hover:text-indigo-700"
|
|
|
|
>
|
|
|
|
Editor
|
|
|
|
</Link>
|
|
|
|
<Link className="ms-4 text-lg font-semibold hover:text-indigo-700">
|
|
|
|
Templates
|
|
|
|
</Link>
|
|
|
|
<Link className="ms-4 text-lg font-semibold hover:text-indigo-700">
|
|
|
|
Download
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
<button className="px-6 py-2 bg-[#386b8f] text-white font-semibold rounded">
|
|
|
|
Log in
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
</div>
|
2023-09-19 20:47:04 +08:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|