web/components/landingComponents/Hero.jsx

63 lines
2.4 KiB
React
Raw Normal View History

2024-08-26 13:38:26 +03:30
import MovingLogos from "./MovingLogos/page";
2024-09-09 04:07:44 +03:30
import { motion } from "framer-motion";
import { fadeIn, textVariant } from "src/utils/motion";
2024-10-22 13:08:26 +03:30
import { useLocale, useTranslations } from "next-intl";
import { Link } from "src/i18n/routing";
2024-01-04 04:03:16 +03:30
const Hero = () => {
2024-10-19 14:56:55 +03:30
const t = useTranslations("page");
2024-10-22 13:08:26 +03:30
const locale = useLocale();
console.log("ssssst", locale);
2024-10-19 14:56:55 +03:30
2024-01-04 04:03:16 +03:30
return (
2024-09-09 04:07:44 +03:30
<section className="relative w-full h-screen mx-auto">
<div className="flex justify-center pt-[200px] lg:pt-[300px] lg:ml-0">
<div className="ml-1 text-center">
2024-10-22 13:08:26 +03:30
<div className="flex items-start justify-center">
2024-09-09 04:07:44 +03:30
<small className="text-[20px] md:text-[60px] lg:text-[80px] mx-2 text-primary-300 xs:hidden lg:block">
2024-08-26 13:38:26 +03:30
"
</small>
2024-09-09 04:07:44 +03:30
<motion.div variants={fadeIn("", "", 0.1, 1)}>
<h1
className="font-black text-white text-[40px] xs:text-[30px] sm:text-[140px] lg:text-[60px] leading-tight mb-0 space-x-6 text-center"
style={{ wordSpacing: "10px" }}
>
2024-10-19 14:56:55 +03:30
{t("title")}
2024-09-09 04:07:44 +03:30
</h1>
</motion.div>
<small className="text-[20px] md:text-[60px] lg:text-[80px] mx-2 text-primary-300 xs:hidden lg:block">
2024-08-26 13:38:26 +03:30
"
</small>
</div>
2024-09-09 04:07:44 +03:30
<motion.div variants={fadeIn("", "", 0.1, 1)}>
<p className="text-gray-300 font-medium text-[14px] xs:text-[16px] sm:text-[22px] lg:text-[24px] leading-[20px] xs:leading-[24px] text-white-100 text-center lg:w-10/12 xs:w-full xs:px-4 mx-auto mt-5">
2024-10-19 14:56:55 +03:30
{t("desc")}
2024-09-09 04:07:44 +03:30
</p>
</motion.div>
2024-01-04 04:03:16 +03:30
2024-08-26 13:38:26 +03:30
<Link href="/app/login">
2024-09-09 04:07:44 +03:30
<div className="flex justify-center mt-10">
2024-10-22 13:08:26 +03:30
<button className="px-8 py-3 text-sm font-bold text-black rounded-full btn btn-primary sm:px-16 lg:px-20 sm:py-5 sm:text-lg">
2024-10-19 14:56:55 +03:30
{t("button")}{" "}
2024-01-04 04:03:16 +03:30
</button>
</div>
</Link>
</div>
</div>
2024-09-09 04:07:44 +03:30
<div className="mt-[50px] lg:mt-[200px]">
<p className="opacity-60 text-white font-light text-[14px] xs:text-[16px] sm:text-[20px] lg:text-[22px] leading-[20px] lg:leading-[24px] text-center w-10/12 sm:w-8/12 mx-auto">
2024-10-19 14:56:55 +03:30
{t("brand")}{" "}
2024-08-26 13:38:26 +03:30
</p>
2024-10-22 13:08:26 +03:30
<div className="relative w-10/12 p-5 mx-auto overflow-hidden opacity-40 fade-mask">
2024-08-26 13:38:26 +03:30
<MovingLogos />
</div>
</div>
2024-01-04 04:03:16 +03:30
</section>
);
};
export default Hero;