-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from IndieCoderMM/channel-management
Channel management
- Loading branch information
Showing
33 changed files
with
716 additions
and
389 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import HeaderImg from "./header_illustration.svg"; | ||
import CardBanner from "./card_banner.png"; | ||
import ShapesBanner from "./shapes_banner.png"; | ||
import Logo from "./logo.png"; | ||
|
||
export { HeaderImg, CardBanner, ShapesBanner }; | ||
export { HeaderImg, Logo }; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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,37 @@ | ||
import { FaTimes } from "react-icons/fa"; | ||
|
||
type ModalProps = { | ||
title: string; | ||
show: boolean; | ||
handleClose: () => void; | ||
children: React.ReactNode; | ||
}; | ||
|
||
const Modal = ({ title, show, handleClose, children }: ModalProps) => { | ||
if (!show) return null; | ||
|
||
return ( | ||
<div | ||
className="fixed bottom-0 left-0 right-0 top-0 bg-black/60 backdrop-blur-md" | ||
aria-modal | ||
aria-hidden={show} | ||
> | ||
<div className="relative left-1/2 top-1/2 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-md bg-dark-700 text-white"> | ||
<header className="my-4 p-4"> | ||
<h1 className="text-xl font-bold capitalize">{title}</h1> | ||
<button | ||
type="button" | ||
className="absolute right-4 top-4" | ||
onClick={handleClose} | ||
aria-label="Close Modal" | ||
> | ||
<FaTimes className="h-6 w-6" /> | ||
</button> | ||
</header> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Modal; |
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
Oops, something went wrong.