generated from cis3296f22/project-template
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from cis3296f23/ParkPlanning
Park planning
- Loading branch information
Showing
4 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
title Park Plan Sequence | ||
|
||
actor User | ||
participant HTML | ||
|
||
participant ReactComponent/JS | ||
participant NPSAPI ("backend") | ||
|
||
activate User | ||
activate HTML | ||
|
||
|
||
User ->HTML:HTTP Request | ||
User <-- HTML: HTTP Response | ||
HTML ->ReactComponent/JS:Loads | ||
activate ReactComponent/JS | ||
ReactComponent/JS ->ReactComponent/JS :useEffect() | ||
ReactComponent/JS ->NPSAPI ("backend"): asynchronous fetch() | ||
activate NPSAPI ("backend") | ||
ReactComponent/JS <--NPSAPI ("backend"):json of parks | ||
deactivate NPSAPI ("backend") | ||
ReactComponent/JS ->ReactComponent/JS :useEffect() | ||
ReactComponent/JS ->NPSAPI ("backend"): asynchronous fetch() | ||
activate NPSAPI ("backend") | ||
ReactComponent/JS <--NPSAPI ("backend"):json of activities | ||
deactivate NPSAPI ("backend") | ||
ReactComponent/JS --> HTML: Update State | ||
deactivate ReactComponent/JS | ||
|
||
|
||
|
||
User -> HTML : uses select tag\n to choose park | ||
User <-- HTML : Display Result | ||
|
||
User -> HTML : uses select tag\nto choose activities | ||
User <-- HTML : Display Result | ||
User -> HTML : uses calendar input\n to choose dates | ||
User <-- HTML : Display Result | ||
|
||
User -> HTML: Clicks "plan trip"\nbutton | ||
HTML ->ReactComponent/JS: Loads | ||
activate ReactComponent/JS | ||
ReactComponent/JS ->ReactComponent/JS :useEffect() | ||
ReactComponent/JS ->NPSAPI ("backend"): asynchronous fetch() | ||
activate NPSAPI ("backend") | ||
ReactComponent/JS <--NPSAPI ("backend"):json of alerts | ||
deactivate NPSAPI ("backend") | ||
HTML <--ReactComponent/JS : Update State | ||
deactivate ReactComponent/JS | ||
User <--HTML: Display Result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.alerts-container{ | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
margin: 0 auto; | ||
width: 100%; | ||
height: 100%; | ||
padding: 0 1rem; | ||
background: rgba(217, 160, 160, 0.90); | ||
color: #333; | ||
font-family: 'Roboto', sans-serif; | ||
font-size: 1rem; | ||
font-weight: 400; | ||
/* line-height: 1.5; */ | ||
text-align: center; | ||
} | ||
.alerts-container .alert{ | ||
/* put a box around it */ | ||
border: 1px solid #333; | ||
border-radius: 5px; | ||
padding: 1rem; | ||
margin: 1rem; | ||
|
||
} |