Skip to content

Commit

Permalink
Reduce noise
Browse files Browse the repository at this point in the history
  • Loading branch information
roj1512 committed Apr 20, 2024
1 parent 3808568 commit 9ce2222
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
8 changes: 6 additions & 2 deletions islands/CreationDate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function CreationDate() {
useSignalEffect(() => {
const id = Number(getId());
if (isNaN(id) || !id) {
data.value = null
data.value = null;
return;
}

Expand All @@ -31,7 +31,11 @@ export function CreationDate() {
return (
<div class="w-full mx-auto max-w-lg gap-5 flex flex-col items-center text-center">
<div class={"flex flex-col gap-0.5 "}>
<div class={`font-bold text-xs ${id.length ? 'opacity-1' :'opacity-0'}`}>User ID</div>
<div
class={`font-bold text-xs ${id.length ? "opacity-1" : "opacity-0"}`}
>
User ID
</div>
<input
class="select-text text-ellipsis overflow-hidden focus:outline-none text-center bg-transparent placeholder:(text-foreground opacity-[.55]) text-lg"
placeholder="Enter User ID"
Expand Down
41 changes: 21 additions & 20 deletions routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ const sections = [
description:
"See if you are able to reach Telegram\u2019s data centers.",
},
],
},
{
name: "Unlisted",
description: "Tools that don’t fit in a specific section yet.",
tools: [
{
href: "/creation-date",
icon: <Clock />,
Expand All @@ -37,6 +31,12 @@ const sections = [
},
],
},
{
name: "Unlisted",
description: "Tools that don’t fit in a specific section yet.",
tools: [
],
},
{
name: "Bot API",
description: (
Expand Down Expand Up @@ -131,23 +131,24 @@ export default function Home() {
<>
<div class="flex flex-col w-full gap-10">
{sections.map((v) => (
<div class="flex flex-col gap-5">
<div class="flex flex-col gap-1.5">

/* // <div class="flex flex-col gap-5">
{/* <div class="flex flex-col gap-1.5">
<div class="text-2xl font-bold">{v.name}</div>
{v.description && <div>{v.description}</div>}
</div>
<div class="grid gap-5 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3">
{v.tools.map((v) => (
<Card
href={v.href}
title={v.name}
description={v.description}
icon={v.icon}
disabled={"disabled" in v && v.disabled === false}
/>
))}
</div>
</div> */
<div class="grid gap-5 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3">
{v.tools.map((v) => (
<Card
href={v.href}
title={v.name}
description={v.description}
icon={v.icon}
disabled={"disabled" in v && v.disabled === false}
/>
))}
</div>
// </div>
))}
</div>
<footer class="text-xs py-10 flex gap-10 items-center justify-between flex-wrap flex-wrap-reverse border-t border-border mt-10">
Expand Down

0 comments on commit 9ce2222

Please sign in to comment.