-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add banner announcing pycon africa 2026 hosts (#127)
Closes #123
- Loading branch information
1 parent
b1abc73
commit b74cbf8
Showing
4 changed files
with
61 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
"use client"; | ||
import { Cross2Icon } from "@radix-ui/react-icons"; | ||
import { useState } from "react"; | ||
import Link from "next/link"; | ||
|
||
export default function Banner() { | ||
const [isShowed, setIsShowed] = useState(true); | ||
|
||
return ( | ||
<> | ||
{isShowed ? ( | ||
<div className="bg-gray-200 md:py-4 lg:px-24 md:px-16 px-6 py-2 text-center text-sm text-gray-900"> | ||
<div className="container flex items-center justify-between"> | ||
<p> | ||
🎉 <span className="font-bold">Big Announcement!</span> 🌍 PyCon | ||
Uganda to Host PyCon Africa 2026 ! | ||
</p> | ||
<div className="flex flex-row items-center space-x-4"> | ||
<span className="text-blue-400"> | ||
<Link | ||
href="https://twitter.com/pyconafrica/status/1784915709513892285?t=OKuV23QLnKtH4ulO2G2XZA&s=19" | ||
target="_blank" | ||
className="underline" | ||
> | ||
Read More | ||
</Link> | ||
</span> | ||
<button | ||
className="rounded-full text-gray-900 hover:bg-gray-800 hover:text-white focus:bg-gray-800 focus:text-white" | ||
size="icon" | ||
variant="ghost" | ||
onClick={() => setIsShowed(false)} | ||
> | ||
<Cross2Icon className="h-4 w-4" /> | ||
<span className="sr-only">Dismiss</span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
) : null} | ||
</> | ||
); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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