You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.0 KiB
React

1 year ago
import React from 'react'
1 year ago
import { Head, router } from '@inertiajs/react'
1 year ago
import CustomerLayout from '@/Layouts/CustomerLayout'
1 year ago
import { HiChevronLeft } from 'react-icons/hi2'
1 year ago
export default function Banner({ banner }) {
return (
<CustomerLayout>
<Head title="Login" />
<div className="flex flex-col min-h-[calc(95dvh)] p-4">
1 year ago
<div
className="w-full pb-4"
onClick={() => {
router.get(route('home.index'))
}}
>
<HiChevronLeft className="font-bold h-5 w-5" />
</div>
1 year ago
<img
src={banner.image_url}
className="object-cover w-full h-32"
/>
<div className="mt-4 mb-2 text-2xl font-bold">
{banner.title}
</div>
<div dangerouslySetInnerHTML={{ __html: banner.description }} />
</div>
</CustomerLayout>
)
}