Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface Footer10Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Footer10 = ({ className }: Footer10Props) => {
|
||||
const [time, setTime] = useState("");
|
||||
|
||||
useEffect(() => {
|
||||
const updateLondonTime = () => {
|
||||
const options: Intl.DateTimeFormatOptions = {
|
||||
timeZone: "Europe/London",
|
||||
hour: "2-digit" as const,
|
||||
minute: "2-digit" as const,
|
||||
second: "2-digit" as const,
|
||||
};
|
||||
const londonTime = new Intl.DateTimeFormat("fa-IR", options).format(
|
||||
new Date(),
|
||||
);
|
||||
setTime(londonTime);
|
||||
};
|
||||
|
||||
updateLondonTime();
|
||||
const intervalId = setInterval(updateLondonTime, 1000);
|
||||
|
||||
return () => clearInterval(intervalId);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<section className={cn("py-32", className)}>
|
||||
<div className="container">
|
||||
<footer>
|
||||
<div>
|
||||
<img
|
||||
src="/block-media/shadcnblocks/block/ShadcnBlocks-giant-black-text.svg"
|
||||
alt="پاورقی"
|
||||
className="aspect-[13.7] w-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
<div className="flex flex-col items-center justify-between py-12 text-muted-foreground md:flex-row">
|
||||
<div>© ری یو آی ۲۲۴</div>
|
||||
<div>ساعت: {time}</div>
|
||||
<div>example@ری یو آی</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Footer10 };
|
||||
Reference in New Issue
Block a user