jovanyoshioka / CityFinder

Provides suggestions for places to live and visit based on user preferences.
0 stars 0 forks source link

[Preferences] Add "Find City" Button #4

Closed jovanyoshioka closed 6 months ago

jovanyoshioka commented 7 months ago

Task 1.) Implement Design A (only red circled portion). Use the <button> element to create the "Find City" button. Add the existing primary class (already defined in global.css) to the button to use the standardized styling. Add additional styling in components/preferences/preferences.css to make the button look like Result A (below).

2.) Add an onclick event attribute to your button that temporarily calls alert and displays some random message just to verify it properly works.

3.) [Optional Challenge] Add the "Back" button, as seen in Design A. You can put the button in the same code location as the "Find City" button, but you may have to do some additional positioning (e.g., using the float and/or margin CSS attributes).

Files You will find comments in components/preferences/preferences.js and components/preferences/preferences.css that tells you where to write your code.

Resources Button: https://www.w3schools.com/tags/tag_button.asp HTML Classes: https://www.w3schools.com/html/html_classes.asp onclick Event: https://www.w3schools.com/jsref/event_onclick.asp alert: https://www.w3schools.com/jsref/met_win_alert.asp

Design A preferences - Copy

Result A preferences_desired - Copy