-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement changes to move high demand topics to telegram
- Loading branch information
1 parent
59c3f3e
commit 03e8c0d
Showing
19 changed files
with
470 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"use client"; | ||
|
||
import { Separator, SeparatorText } from "@/components/ui/separator"; | ||
|
||
export default function PageSeparator() { | ||
return ( | ||
<Separator className="my-10 relative"> | ||
<SeparatorText>AND</SeparatorText> | ||
</Separator> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
"use client"; | ||
|
||
import { ExternalLink, SendIcon } from "lucide-react"; | ||
import { | ||
Card, | ||
CardContent, | ||
CardDescription, | ||
CardHeader, | ||
CardTitle, | ||
} from "@/components/ui/card"; | ||
import { Anchor } from "@/components/ui/anchor"; | ||
import { TELEGRAM_PUBLIC_CHANNELS } from "@/lib/content"; | ||
import { TELEGRAM_SHORT_URL } from "@/lib/constants"; | ||
|
||
export default function TelegramChannels() { | ||
return ( | ||
<Card className="w-full"> | ||
<CardHeader> | ||
<CardTitle className="flex gap-2 items-center"> | ||
<SendIcon /> | ||
Telegram Channels | ||
</CardTitle> | ||
<CardDescription> | ||
Subscribe to the channels below if you want to receive notifications | ||
via Telegram. | ||
</CardDescription> | ||
</CardHeader> | ||
<CardContent> | ||
<div className="grid gap-6"> | ||
{TELEGRAM_PUBLIC_CHANNELS.map(({ id, title, description }) => ( | ||
<div | ||
key={id} | ||
className="flex flex-row items-center justify-between rounded-lg border p-4 w-full" | ||
> | ||
<div className="space-y-0.5 pr-2"> | ||
<Anchor | ||
href={`${TELEGRAM_SHORT_URL}/${id}`} | ||
className="no-underline text-base" | ||
isExternal | ||
> | ||
{title} | ||
</Anchor> | ||
<p className="text-sm font-light text-muted-foreground"> | ||
{description} | ||
</p> | ||
</div> | ||
<Anchor | ||
href={`${TELEGRAM_SHORT_URL}/${id}`} | ||
className="no-underline px-2 shrink-0" | ||
isExternal | ||
> | ||
<ExternalLink /> | ||
</Anchor> | ||
</div> | ||
))} | ||
</div> | ||
</CardContent> | ||
</Card> | ||
); | ||
} |
Oops, something went wrong.