This commit is contained in:
2023-12-13 16:03:51 +05:00
parent f198ff9dfe
commit 3842ec4327
34 changed files with 1239 additions and 512 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ import TouchScreenIcon from "./icons/TouchScreenIcon";
import VRIcon from "./icons/VRIcon";
import MobileIcon from "./icons/MobileIcon";
import IProject from "../types/IProject";
import { format } from "date-fns";
function ProjectCard({
name,
@@ -11,7 +12,7 @@ function ProjectCard({
city,
image,
stage = 6,
releaseYear = 2023,
releaseDate = format(new Date(), "yyyy-MM-dd"),
devices = [],
}: IProject) {
const stagePercentage = Math.round((100 / 6) * stage);
@@ -50,7 +51,7 @@ function ProjectCard({
) : (
<div className="bg-gradient py-2.5 px-4 rounded-full">
<p className="font-gilroy font-medium leading-none">
{releaseYear}
{new Date(releaseDate).getFullYear()}
</p>
</div>
)}