import { Outlet } from 'react-router'

import { FooterLinks } from '~/layouts/footer-links'
import { FooterNewsletter } from '~/layouts/footer-newsletter'
import { HeaderMenu } from '~/layouts/header-menu'
import { HeaderTop } from '~/layouts/header-top'

const NewsLayout = () => {
  return (
    <main className="relative min-h-dvh bg-[#ECECEC]">
      <header>
        <HeaderTop />
        <HeaderMenu />
      </header>
      <div className="mx-[50px] my-[25px] grid gap-y-[25px]">
        <img
          src="/images/banner.png"
          alt="banner"
          className="h-[100px] w-full object-contain"
        />
        <Outlet />
      </div>
      <footer className="grid w-full grid-cols-5 gap-16 bg-[#2E2F7C] px-16 py-20 text-white">
        <FooterNewsletter />
        <FooterLinks />
      </footer>
    </main>
  )
}

export default NewsLayout
