diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-07-19 00:48:11 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-07-19 00:48:11 -0400 |
| commit | d57226e5a802ecd6607faf67f32621e2da725a35 (patch) | |
| tree | d2073bbc14409095c61255ea83b2ca3815df309d /components/PSA.js | |
| parent | 3c80755e70aa85daa59edc5dbe200400894254c7 (diff) | |
| download | alure-website-d57226e5a802ecd6607faf67f32621e2da725a35.tar.gz alure-website-d57226e5a802ecd6607faf67f32621e2da725a35.tar.bz2 alure-website-d57226e5a802ecd6607faf67f32621e2da725a35.zip | |
Moved all components to app folder
Diffstat (limited to 'components/PSA.js')
| -rw-r--r-- | components/PSA.js | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/components/PSA.js b/components/PSA.js deleted file mode 100644 index 06bf9ba..0000000 --- a/components/PSA.js +++ /dev/null @@ -1,47 +0,0 @@ -import psaMessage from './psa.json' assert { type: 'json' }; -import Link from "next/link"; - -const PSA = () => { - let defaultStyle = "flex flex-row md:px-40 px-30 py-0.5 space-x-2"; - let styleImportant; - let important; - switch (psaMessage.important) { - case 0: - styleImportant = "hidden" - defaultStyle += ' ' + styleImportant - break; - case 1: - important = "Latest News:" - styleImportant = "bg-zinc-700" - defaultStyle += ' ' + styleImportant - break; - case 2: - important = "WARNING!" - styleImportant = "bg-yellow-700" - defaultStyle += ' ' + styleImportant - break; - case 3: - important = "EMERGENCY!" - styleImportant = "bg-red-800" - defaultStyle += ' ' + styleImportant - break; - - } - - return ( - <div className={defaultStyle}> - <p className="text-lg font-medium">{important}</p> - <div className="flex flex-row space-x-3"> - <p>{psaMessage.announcement}</p> - <p className="text-blue-200 hover:text-blue-500 active:text-blue-700"> - {psaMessage.link && ( - <Link href={psaMessage.link}> - Learn more ↗ - </Link> - )}</p> - </div> - </div> - ) -} - -export default PSA; |
