-
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.
* chore: add bot api token in .env.example * feat(post): add notify bot himarpl request * feat(common): add bot card component for phoenix-chan
- Loading branch information
Showing
5 changed files
with
80 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
"use client"; | ||
|
||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
|
||
import { Button } from "@/components/ui/button"; | ||
import { | ||
Card, | ||
CardDescription, | ||
CardFooter, | ||
CardHeader, | ||
CardTitle, | ||
} from "@/components/ui/card"; | ||
|
||
export function BotCard() { | ||
return ( | ||
<Card> | ||
<CardHeader> | ||
<CardTitle className="text-lg font-medium"> | ||
Minta Phonix-chan untuk ngingetin postingan terbaru | ||
</CardTitle> | ||
<CardDescription> | ||
Phoenix-chan adalah bot telegram official HIMARPL yang siap memberi | ||
notifikasi terbaru terkait postingan artikel secara real-time! | ||
</CardDescription> | ||
</CardHeader> | ||
<CardFooter> | ||
<Button asChild variant="secondary" className="w-full"> | ||
<Link href="https://t.me/himarpl_bot" target="_blank"> | ||
<Image | ||
src={ | ||
"https://cdn.jsdelivr.net/gh/himarplupi/assets-himarpl@v1.3.6/images/phoenix-chan.png" | ||
} | ||
alt="Foto profil phoenix-chan: sang phoenix yang lemah lembut" | ||
className="mr-2 rounded-full" | ||
width={32} | ||
height={32} | ||
/> | ||
Chat Phoenix-chan | ||
</Link> | ||
</Button> | ||
</CardFooter> | ||
</Card> | ||
); | ||
} |
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