diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-05-03 11:53:19 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-05-03 11:53:19 -0700 |
| commit | beb10f29482261acbdc3e216ea929d9fa12fc149 (patch) | |
| tree | bf3b2862d915f58d924a1d7e4a310ea4f44541c3 /src/components | |
| parent | fc055591ca47def0863cda55d063ab3f0a6cff5c (diff) | |
add announcement bar
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Announcement.tsx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/components/Announcement.tsx b/src/components/Announcement.tsx new file mode 100644 index 0000000..ac7f805 --- /dev/null +++ b/src/components/Announcement.tsx @@ -0,0 +1,27 @@ +import React from "react"; + +interface AnnouncementProps { + message: string; + backgroundColor?: string; + textColor?: string; +} + +const Announcement: React.FC<AnnouncementProps> = ({ + message, + backgroundColor = "#f8d7da", + textColor = "#721c24", +}) => { + return ( + <div + className={`p-4 rounded-lg text-center font-bold`} + style={{ + backgroundColor, + color: textColor, + }} + > + {message} + </div> + ); +}; + +export default Announcement; |
