add end date and create logo and fix filter

This commit is contained in:
arifal
2026-04-17 00:16:31 +07:00
parent 82c1da9951
commit 7159e9108f
35 changed files with 743 additions and 82 deletions
+4 -2
View File
@@ -1,6 +1,6 @@
import Image from "next/image";
import Link from "next/link";
import { formatRupiah, formatDate } from "@/lib/utils";
import { formatRupiah, formatDateRange } from "@/lib/utils";
interface TripCardProps {
id: string;
@@ -8,6 +8,7 @@ interface TripCardProps {
mountain: string;
location: string;
date: Date | string;
endDate?: Date | string | null;
price: number;
maxParticipants: number;
participantCount: number;
@@ -23,6 +24,7 @@ export function TripCard({
mountain,
location,
date,
endDate,
price,
maxParticipants,
participantCount,
@@ -78,7 +80,7 @@ export function TripCard({
</div>
<div className="flex items-center gap-1.5">
<span className="text-xs text-secondary-500">📅</span>{" "}
{formatDate(date)}
{formatDateRange(date, endDate)}
</div>
<div className="flex items-center gap-1.5">
<span className="text-xs text-secondary-500">👤</span>{" "}