2024-09-19 19:22:43 -05:00
|
|
|
"use client"
|
|
|
|
|
import Grid from "@mui/material/Grid2"
|
|
|
|
|
import Image from "next/image"
|
|
|
|
|
import { useRouter } from "next/navigation"
|
2024-09-24 17:35:35 -05:00
|
|
|
import { useTranslation } from "react-i18next"
|
2024-09-19 19:22:43 -05:00
|
|
|
import Button from "@package/components/atoms/Button"
|
2023-04-21 11:27:42 +02:00
|
|
|
|
2024-09-19 19:22:43 -05:00
|
|
|
const HomePage: React.FC = () => {
|
2024-09-24 17:35:35 -05:00
|
|
|
|
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
const router = useRouter()
|
2024-09-19 19:22:43 -05:00
|
|
|
|
|
|
|
|
const handleLoginClick = () => {
|
|
|
|
|
router.push("/account/login")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const handleFeaturesClick = () => {
|
|
|
|
|
router.push("/features")
|
|
|
|
|
}
|
2023-11-25 23:47:21 +01:00
|
|
|
|
2023-03-25 16:53:07 +01:00
|
|
|
return (
|
2024-09-19 19:22:43 -05:00
|
|
|
<Grid
|
|
|
|
|
container
|
|
|
|
|
className="min-h-screen"
|
|
|
|
|
alignItems="center"
|
|
|
|
|
justifyContent="center"
|
|
|
|
|
sx={{
|
|
|
|
|
background: "linear-gradient(to right, black, #2c3e50, #0064dc)",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
justifyContent: "center",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Grid size={{ xs: 12, md: 6 }} display="flex" justifyContent={{ xs: "center", md: "flex-end" }}>
|
|
|
|
|
<Image
|
|
|
|
|
src="/img/selfcheckout.jpg"
|
|
|
|
|
alt="Checkout"
|
|
|
|
|
width={500}
|
|
|
|
|
height={400}
|
|
|
|
|
style={{ width: 'auto', height: 'auto' }}
|
|
|
|
|
className="rounded-lg shadow-lg"
|
|
|
|
|
priority
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
<Grid size={{ xs: 12, md: 6 }} textAlign={{ xs: "center", md: "left" }} padding={{ md: "0 24px" }}>
|
2024-09-24 17:35:35 -05:00
|
|
|
<h1 className="mb-4 text-5xl font-bold text-white md:text-6xl">{t('tle_self_checkout')}</h1>
|
2024-09-19 19:22:43 -05:00
|
|
|
|
2024-09-24 17:35:35 -05:00
|
|
|
<p className="mb-6 text-xl text-gray-200 md:text-2xl">{t('msj_improving_in_store_experience')}</p>
|
2024-09-19 19:22:43 -05:00
|
|
|
|
|
|
|
|
<Grid container justifyContent={{ xs: "center", md: "flex-start" }} spacing={2}>
|
2024-09-24 17:35:35 -05:00
|
|
|
<Grid size={{ xs: 12, md: 6 }}>
|
2023-04-21 17:50:04 +02:00
|
|
|
<Button
|
2024-09-24 17:35:35 -05:00
|
|
|
label={t("lbl_login")}
|
2024-09-19 19:22:43 -05:00
|
|
|
onClick={handleLoginClick}
|
2024-09-24 17:35:35 -05:00
|
|
|
className="rounded-lg bg-blue-600 px-6 py-3 text-lg text-white transition hover:bg-blue-700 h-16 w-full"
|
2024-09-19 19:22:43 -05:00
|
|
|
/>
|
|
|
|
|
</Grid>
|
2024-09-24 17:35:35 -05:00
|
|
|
<Grid size={{ xs: 12, md: 6 }}>
|
2024-09-19 19:22:43 -05:00
|
|
|
<Button
|
2024-09-24 17:35:35 -05:00
|
|
|
label={t("lbl_features")}
|
2024-09-19 19:22:43 -05:00
|
|
|
onClick={handleFeaturesClick}
|
2024-09-24 17:35:35 -05:00
|
|
|
className="rounded-lg bg-gray-200 px-6 py-3 text-lg text-blue-600 transition hover:bg-gray-300 h-16 w-full"
|
|
|
|
|
|
2024-09-19 19:22:43 -05:00
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
2023-04-16 18:17:54 +02:00
|
|
|
)
|
2023-03-25 16:53:07 +01:00
|
|
|
}
|
2024-09-19 19:22:43 -05:00
|
|
|
|
|
|
|
|
export default HomePage
|