mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-10-14 15:51:37 +00:00
refactor: add animations ✨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 10m27s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 10m27s
This commit is contained in:
@@ -27,11 +27,16 @@ export default async function DeviceDetails({
|
||||
<div>
|
||||
<div className="flex items-center justify-between title-bg title-bg ring-2 ring-sarLinkOrange/50 rounded-lg p-4">
|
||||
<div className="flex flex-col justify-between items-start">
|
||||
<h3 className="text-2xl text-sarLinkOrange font-bold">
|
||||
<h3 className="text-2xl text-sarLinkOrange motion-preset-slide-down-md font-bold">
|
||||
{device?.name}
|
||||
</h3>
|
||||
<Badge variant={"secondary"}>{device?.mac}</Badge>
|
||||
<p className="text-muted-foreground text-sm mt-2">
|
||||
<Badge
|
||||
className="motion-preset-slide-down-md motion-delay-75"
|
||||
variant={"secondary"}
|
||||
>
|
||||
{device?.mac}
|
||||
</Badge>
|
||||
<p className="text-muted-foreground text-sm mt-2 motion-preset-slide-down-md motion-delay-100">
|
||||
Device active until{" "}
|
||||
{new Date(device?.expiry_date || "").toLocaleDateString("en-US", {
|
||||
month: "short",
|
||||
@@ -40,7 +45,7 @@ export default async function DeviceDetails({
|
||||
})}
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 flex-col">
|
||||
<div className="flex items-center gap-2 flex-col motion-preset-fade">
|
||||
{device?.expiry_date && new Date() < new Date(device.expiry_date) && (
|
||||
<p className="text-base font-semibold font-mono w-full text-center px-2 p-1 rounded-md bg-green-500/10 text-green-900 dark:text-green-400">
|
||||
ACTIVE
|
||||
|
Reference in New Issue
Block a user