-
Notifications
You must be signed in to change notification settings - Fork 11
Add page "Code of conduct" to UI #772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for antenna-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
| </div> | ||
| ) | ||
| } | ||
| export const TermsOfServicePage = () => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extracted code from this component to the shared component InfoPage
| <Route path="collections/:id" element={<CollectionDetails />} /> | ||
| <Route path="*" element={<UnderConstruction />} /> | ||
| </Route> | ||
| <Route path="/:slug" element={<InfoPageContainer />} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will no longer try to render an info page for generic slugs. This is a left over from when the backend returned dynamic content here.
Now we require exact matches!
mihow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome this is a milestone! Perhaps there will be a reason to bring back dynamic pages in the future, but the addition of the 404 page and the fast response for bad paths is much better!

Summary
In this PR we include our new page "Code of conduct" in Antenna. The page is setup in a similar way as the page "Terms of service". We use same style and structure.
The content for this new page can be edited from a markdown file, see
ui/src/components/info-page/code-of-conduct-page/code-of-conduct.md.Since I modified our routing a bit as part of this PR, I also included a simple 404 page in this PR. We were missing that! For now, we use it if the current route can't be matched to a page.
Screenshots