Closes #117 #130 #132
This addresses Issue #125 (Update Topnav to not show for non-logged in users), as well as includes updates for Cognito login/logout button URLs.
As a developer, I want to have a TopNav button only display for users who are logged in and would need to access the home page and the build event page. Non-logged in users visiting the intro, rankings, and final rankings pages do not need a topnav button that takes them to a home page they have to log in to see.
The solution for this currently is to remove the topnav component from app.component.ts, and hard code it directly into the home.component.html and event.componenthtml pages.
Addtionally, this PR also includes finalized congnito urls for the login and logout buttons, including env variables that can be referenced. this makes it so the env files are the only thing changing between dev and prod, and the url code remains the same for each.
To verify:
[x] launch app, arriving on the /intro page.
[x] Verify there is no topnav icon.
[x] sign in with a test user account, and arrive on the /home page.
[x] Verify there now is a topnav icon.
[x] Click "create Event" button, and arrive on the /event page.
[x] Verify there is still a topnav button.
[x] Click the topnav icon and return to /home.
[x] Assuming your test account has events created, click one of the test buttons for Rankings.
[x] Verify there is no Topnav icon.
[x] using the back arrow or adjusting the url to be "/home", return to the home page.
[x] Assuming your test account has events created, clikc one of the test buttons for Final Rankings.
Closes #117 #130 #132 This addresses Issue #125 (Update Topnav to not show for non-logged in users), as well as includes updates for Cognito login/logout button URLs.
As a developer, I want to have a TopNav button only display for users who are logged in and would need to access the home page and the build event page. Non-logged in users visiting the intro, rankings, and final rankings pages do not need a topnav button that takes them to a home page they have to log in to see.
The solution for this currently is to remove the topnav component from app.component.ts, and hard code it directly into the home.component.html and event.componenthtml pages.
Addtionally, this PR also includes finalized congnito urls for the login and logout buttons, including env variables that can be referenced. this makes it so the env files are the only thing changing between dev and prod, and the url code remains the same for each.
To verify: