Fix bug on main page
This commit is contained in:
parent
ee5069aa2a
commit
0b00da4b0d
@ -4,6 +4,7 @@ import Image from "next/image";
|
|||||||
import CardImg from "../../../public/assets/Image.png";
|
import CardImg from "../../../public/assets/Image.png";
|
||||||
import Arrow from "../../../public/assets/arrow-right.png";
|
import Arrow from "../../../public/assets/arrow-right.png";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
import bg from "../../../public/assets/bg.png";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const t = useTranslations("home");
|
const t = useTranslations("home");
|
||||||
@ -11,11 +12,10 @@ export default function Home() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Container className="mt-[52px] mb-[21px] max-w-[1280px]">
|
<Container className="mt-[52px] mb-[21px] max-w-[1280px]">
|
||||||
<section
|
<section className="text-white w-full px-5">
|
||||||
className="bg-cover bg-center h-[517px] bg-no-repeat flex justify-center items-center text-white w-full px-5"
|
<div className="flex justify-center relative">
|
||||||
style={{ background: "url('./assets/bg.png')" }}
|
<Image src={bg} alt="bg" className="" />
|
||||||
>
|
<div className="max-w-[943px] text-center absolute top-20 left-15 pt-10">
|
||||||
<div className="max-w-[943px] text-center">
|
|
||||||
<Title
|
<Title
|
||||||
size="md"
|
size="md"
|
||||||
text={"Transparency International "}
|
text={"Transparency International "}
|
||||||
@ -28,10 +28,12 @@ export default function Home() {
|
|||||||
/>
|
/>
|
||||||
<p className="leading-8">
|
<p className="leading-8">
|
||||||
Torem ipsum dolor sit amet, consectetur adipiscing elit. Nunc
|
Torem ipsum dolor sit amet, consectetur adipiscing elit. Nunc
|
||||||
vulputate libero et velit interdum, ac aliquet odio mattis. Class
|
vulputate libero et velit interdum, ac aliquet odio mattis.
|
||||||
aptent taciti sociosqu ad litora torquent per conubia nostra
|
Class aptent taciti sociosqu ad litora torquent per conubia
|
||||||
|
nostra
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ import React from "react";
|
|||||||
|
|
||||||
const Personal = async () => {
|
const Personal = async () => {
|
||||||
const session = await getServerSession(authConfig);
|
const session = await getServerSession(authConfig);
|
||||||
console.log(session?.access_token);
|
|
||||||
const getProfile = async () => {
|
const getProfile = async () => {
|
||||||
const Authorization = `Bearer ${session?.access_token}`;
|
const Authorization = `Bearer ${session?.access_token}`;
|
||||||
const config = {
|
const config = {
|
||||||
@ -24,6 +23,7 @@ const Personal = async () => {
|
|||||||
"/users/profile/",
|
"/users/profile/",
|
||||||
config
|
config
|
||||||
);
|
);
|
||||||
|
console.log(response, "res");
|
||||||
return response.data;
|
return response.data;
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
if (error instanceof AxiosError) console.log(error.message);
|
if (error instanceof AxiosError) console.log(error.message);
|
||||||
|
@ -17,12 +17,14 @@ import founded_kg from "./assets/founded-kg.png";
|
|||||||
import { useParams } from "next/navigation";
|
import { useParams } from "next/navigation";
|
||||||
import NavAuth from "./NavAuth/NavAuth";
|
import NavAuth from "./NavAuth/NavAuth";
|
||||||
import { Container } from "@/shared/ui";
|
import { Container } from "@/shared/ui";
|
||||||
|
import { useSession } from "next-auth/react";
|
||||||
|
|
||||||
const Navbar = () => {
|
const Navbar = () => {
|
||||||
|
const session = useSession();
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
const [openMenu, setOpenMenu] = useState<boolean>(false);
|
const [openMenu, setOpenMenu] = useState<boolean>(false);
|
||||||
const { locale } = useParams();
|
const { locale } = useParams();
|
||||||
|
console.log(session);
|
||||||
const FOUNDED: Record<string, StaticImageData> = {
|
const FOUNDED: Record<string, StaticImageData> = {
|
||||||
ru: founded_ru,
|
ru: founded_ru,
|
||||||
kg: founded_kg,
|
kg: founded_kg,
|
||||||
|
Loading…
Reference in New Issue
Block a user