LLC/src/view/Landing/index.jsx

55 lines
1.0 KiB
React
Raw Normal View History

2025-02-19 15:04:53 +03:30
import Navbar from "src/components/NavBar";
2025-02-16 09:06:54 +03:30
import AboutUs from "./components/AboutUs";
import Footer from "./components/Footer";
2025-02-19 15:04:53 +03:30
import Products from "./components/Products";
import Sides from "./components/Sides";
2025-02-19 16:11:53 +03:30
import graphql from "src/utils/graphql";
2025-02-20 14:53:06 +03:30
import CounterDetail from "./components/CounterDetail";
import { getLocale } from "next-intl/server";
2025-02-16 09:06:54 +03:30
2025-02-19 16:11:53 +03:30
2025-02-20 14:53:06 +03:30
const gql_stats = `
query Stats($locale:I18NLocaleCode) {
stats(locale: $locale) {
title
stat
subtitle
documentId
}
}
`
const getStats = async () => {
2025-02-22 19:14:53 +03:30
const locale = await getLocale()
console.log("locale", locale)
2025-02-20 14:53:06 +03:30
const stats = await graphql(gql_stats, {
locale: locale
})
return stats.stats
}
2025-02-19 16:11:53 +03:30
const Landing = async () => {
2025-02-22 19:14:53 +03:30
2025-02-20 14:53:06 +03:30
const stats = await getStats()
2025-02-16 09:06:54 +03:30
return (
<div className=" text-center text-6xl">
{" "}
2025-02-22 19:14:53 +03:30
2025-02-17 04:52:48 +03:30
{/* <HeroSection /> */}
2025-02-16 09:06:54 +03:30
<AboutUs />
2025-02-19 16:11:53 +03:30
<Sides />
2025-02-20 14:53:06 +03:30
<CounterDetail stats={stats} />
2025-02-22 19:14:53 +03:30
<Products />
2025-02-19 15:04:53 +03:30
{/* <WhyHorizon/> */}
2025-02-22 19:14:53 +03:30
2025-02-16 09:06:54 +03:30
</div>
);
};
export default Landing;