From 3c80755e70aa85daa59edc5dbe200400894254c7 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 18 Jul 2023 12:12:35 -0400 Subject: Added latest news; Some font changes; Some tweaks --- components/PSA.js | 7 ++++++- components/travel-advisory/ListCountries.js | 4 ++-- components/updates/PostPreview.js | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'components') diff --git a/components/PSA.js b/components/PSA.js index 8dad8b3..06bf9ba 100644 --- a/components/PSA.js +++ b/components/PSA.js @@ -11,11 +11,16 @@ const PSA = () => { 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 2: + case 3: important = "EMERGENCY!" styleImportant = "bg-red-800" defaultStyle += ' ' + styleImportant diff --git a/components/travel-advisory/ListCountries.js b/components/travel-advisory/ListCountries.js index 03665ef..078af5c 100644 --- a/components/travel-advisory/ListCountries.js +++ b/components/travel-advisory/ListCountries.js @@ -3,7 +3,7 @@ import countriesData from '@/app/travel-advisory/countries.json' assert { type: import HistoryModal from "@/components/travel-advisory/HistoryModal"; import { useState } from "react"; -function getDangerLevel(danger) { +export function getDangerLevel(danger) { let dangerLevel; switch (danger) { case 0: @@ -26,7 +26,7 @@ function getDangerLevel(danger) { return dangerLevel; } -export default function Countries(){ +export function Countries(){ // eslint-disable-next-line react-hooks/rules-of-hooks const [showModal, setShowModal] = useState(false); const [selectedCountry, setSelectedCountry] = useState(null); diff --git a/components/updates/PostPreview.js b/components/updates/PostPreview.js index ca261c0..ec9183d 100644 --- a/components/updates/PostPreview.js +++ b/components/updates/PostPreview.js @@ -7,7 +7,7 @@ export default function PostPreview(props) {

{props.title}

- By {props.author} + {props.author}

{props.description}

Posted on {DateFormatter(props.date)}

-- cgit v1.2.3