diff --git a/backend/src/routes/getGreeting.js b/backend/src/routes/getGreeting.js index a9b997e..ad39077 100644 --- a/backend/src/routes/getGreeting.js +++ b/backend/src/routes/getGreeting.js @@ -1,7 +1,10 @@ -const GREETING = 'Hello world!'; - +const GREETING = [ + "Welcome" + "All hands on deck!" + "Charting the course ahead!", + ]; module.exports = async (req, res) => { res.send({ - greeting: GREETING, + greeting: GREETING[Math.floor(Math.random() * GREETINGS.length)] }); }; diff --git a/client/src/components/AddNewItemForm.jsx b/client/src/components/AddNewItemForm.jsx index b057ce1..9e5ef23 100644 --- a/client/src/components/AddNewItemForm.jsx +++ b/client/src/components/AddNewItemForm.jsx @@ -34,7 +34,7 @@ export function AddItemForm({ onNewItem }) { value={newItem} onChange={(e) => setNewItem(e.target.value)} type="text" - placeholder="New Item" + placeholder="What do you need to do?" aria-label="New item" />