update: aminberatu

This commit is contained in:
amd123 2024-01-17 17:19:02 +07:00
parent 955e1e488b
commit f3c5b3343d
6 changed files with 47 additions and 43 deletions

View File

@ -44,25 +44,27 @@ export default function Campaign() {
<div className='pt-10'> <div className='pt-10'>
<div className='flex flex-wrap justify-center gap-4 h-full'> <div className='flex flex-wrap justify-center gap-4 h-full'>
{dummyData.map((item, index) => ( {dummyData.map((item, index) => (
<Card shadow="sm" key={index} className='w-[280px]'> <Link href={`headline/detail/${item.id}`}>
<CardBody className="overflow-visible p-0"> <Card shadow="sm" key={index} className='w-[280px]'>
<Image <CardBody className="overflow-visible p-0">
shadow="sm" <Image
radius="lg" shadow="sm"
width="100%" radius="lg"
alt={item.title} width="100%"
className="w-full object-cover " alt={item.title}
src={item.imageUrl} className="w-full object-cover "
/> src={item.imageUrl}
</CardBody> />
<CardFooter className="text-small text-left flex flex-col items-start border-2 h-full"> </CardBody>
<div >{item.date}</div> <CardFooter className="text-small text-left flex flex-col items-start border-2 h-full">
<div className='font-bold'>{item.title}</div> <div >{item.date}</div>
<Link href={`/headline/detail/${item.id}`}> <div className='font-bold'>{item.title}</div>
<p className='font-semibold text-[#1A328E]'>Lihat Selengkapnya</p> <Link href={`/headline/detail/${item.id}`}>
</Link> <p className='font-semibold text-[#1A328E]'>Lihat Selengkapnya</p>
</CardFooter> </Link>
</Card> </CardFooter>
</Card>
</Link>
))} ))}
</div> </div>
<div className='flex justify-center pt-5'> <div className='flex justify-center pt-5'>

View File

@ -84,30 +84,32 @@ export default function Headline() {
freeMode={true} freeMode={true}
navigation={true} navigation={true}
modules={[FreeMode, Navigation]} modules={[FreeMode, Navigation]}
className="max-w-[90%] w-4/5 lg:w-full ml-2 mr-2" className="max-w-[90%] lg:w-full ml-2 mr-2 w-full"
> >
{headlineData.map((item) => ( {headlineData.map((item) => (
<SwiperSlide key={item.title}> <SwiperSlide key={item.title}>
<div className="flex flex-col relative overflow-hidden cursor-pointer rounded-lg "> <Link href={`/headline/detail/${item.id}`}>
<Card> <div className="flex flex-col relative overflow-hidden cursor-pointer rounded-lg">
<CardBody className="items-center"> <Card>
<Image <CardBody className="items-center">
shadow="sm" <Image
radius="lg" shadow="sm"
alt={item.title} radius="lg"
className="w-full object-cover" alt={item.title}
src={item.imageUrl} className="w-full object-cover"
/> src={item.imageUrl}
</CardBody> />
<CardFooter className="text-small text-left flex flex-col items-start"> </CardBody>
<div >{item.date}</div> <CardFooter className="text-small text-left flex flex-col items-start">
<div className='font-bold'>{item.title}</div> <div >{item.date}</div>
<Link href={`/headline/detail/${item.id}`}> <div className='font-bold'>{item.title}</div>
<p className='font-semibold text-[#1A328E]'>Lihat Selengkapnya</p> <Link href={`/headline/detail/${item.id}`}>
</Link> <p className='font-semibold text-[#1A328E]'>Lihat Selengkapnya</p>
</CardFooter> </Link>
</Card> </CardFooter>
</div> </Card>
</div>
</Link>
</SwiperSlide> </SwiperSlide>
))} ))}
</Swiper> </Swiper>

View File

@ -14,7 +14,7 @@ import { useCallback, useRef } from "react";
export default function VisiMisi() { export default function VisiMisi() {
const sliderRef = useRef(null); const sliderRef = useRef<any>(null);
const images = [ const images = [
{ {

View File

@ -1,7 +1,7 @@
export type SiteConfig = typeof siteConfig; export type SiteConfig = typeof siteConfig;
export const siteConfig = { export const siteConfig = {
name: "Next.js + NextUI", name: "Aminbersatu.com",
description: "Make beautiful websites regardless of your design experience.", description: "Make beautiful websites regardless of your design experience.",
navItems: [ navItems: [
{ {
@ -14,7 +14,7 @@ export const siteConfig = {
}, },
{ {
label: "Update TPS", label: "Update TPS",
href: "/docs", href: "#",
}, },
// { // {
// label: "Blog", // label: "Blog",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 502 KiB

BIN
public/ffavicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB