Skip to content

Commit

Permalink
adding a new tag to fresh servers
Browse files Browse the repository at this point in the history
  • Loading branch information
swordfest committed Feb 13, 2024
1 parent a303875 commit ae646b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 7 additions & 0 deletions components/newServer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


export default function NewServer () {
return (
<span className="w-8 h-[22px] flex items-center justify-center animate-pulse duration-100 py-px px-1 bg-[#dc2626] -top-2 -right-2 text-[8px] text-white rounded-sm">NEW</span>
)
}
11 changes: 8 additions & 3 deletions components/serverCol.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {
IconDownload,
IconQrcode,
} from "@tabler/icons-react";
import NewFeature from "./newFeature";
import NewServer from "./newServer";

export default function ServerCol(dataServer: { proxy: any }) {
const [timeCopy, setTimeCopy] = useState(false);
Expand Down Expand Up @@ -60,9 +62,12 @@ export default function ServerCol(dataServer: { proxy: any }) {
{getFlagEmoji(dataServer.proxy.location_country_code)}
</div>
<div className="nombre-ip w-auto h-auto flex flex-col ">
<span className=" leading-[1.10rem] font-semibold w-auto overflow-hidden truncate text-[14px] sm:text-[16px] ">
{dataServer.proxy.location_country}
</span>
<div className="flex gap-1">
<span className=" leading-[1.10rem] font-semibold w-auto overflow-hidden truncate text-[14px] sm:text-[16px] ">
{dataServer.proxy.location_country}
</span>
{dataServer.proxy.times_checked < 10 && <NewServer />}
</div>
<span className=" leading-[1.10rem] font-medium w-auto overflow-hidden truncate text-[14px] text-[#7e7d7d] sm:text-[16px] ">
{dataServer.proxy.ip_address}
</span>
Expand Down

0 comments on commit ae646b2

Please sign in to comment.