diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-07-19 00:58:38 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-07-19 00:58:38 -0400 |
| commit | 260ea88a873c10738643b6f82ff00bd854246ec4 (patch) | |
| tree | 004104726e0afba3c1af820945690805f72edef1 /app/PSA.js | |
| parent | d57226e5a802ecd6607faf67f32621e2da725a35 (diff) | |
| download | alure-website-260ea88a873c10738643b6f82ff00bd854246ec4.tar.gz alure-website-260ea88a873c10738643b6f82ff00bd854246ec4.tar.bz2 alure-website-260ea88a873c10738643b6f82ff00bd854246ec4.zip | |
Sorting out files
Diffstat (limited to 'app/PSA.js')
| -rw-r--r-- | app/PSA.js | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/app/PSA.js b/app/PSA.js deleted file mode 100644 index 06bf9ba..0000000 --- a/app/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; |
