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

View File

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

View File

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

View File

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