Skip to content
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

Adding Custom Pages #100

Merged
merged 10 commits into from
Sep 16, 2024
Merged

Conversation

Charlesthebird
Copy link
Collaborator

@Charlesthebird Charlesthebird commented Sep 12, 2024

This PR adds the ability for users to add custom pages. They can do this by adding the page files to the public folder, and then describing their custom pages in an environment variable. These custom pages can be Markdown or HTML.

Here is what it looks like if the page is not found:
Screenshot 2024-09-13 at 4 36 04 PM

Here is the Markdown Example Page.
Screenshot 2024-09-13 at 4 35 20 PM

Here is the HTML Example Page.
Screenshot 2024-09-13 at 4 24 03 PM

After taking those screenshots, I noticed the "Navigation" text was slightly off so that is fixed now.
Screenshot 2024-09-13 at 4 38 20 PM

BOT NOTES:
resolves https://github.com/solo-io/solo-projects/issues/6860

Signed-off-by: Nicholas Bucher <[email protected]>
@solo-changelog-bot
Copy link

Issues linked to changelog:
https://github.com/solo-io/solo-projects/issues/6860

Signed-off-by: Nicholas Bucher <[email protected]>
Signed-off-by: Nicholas Bucher <[email protected]>
Signed-off-by: Nicholas Bucher <[email protected]>
Signed-off-by: Nicholas Bucher <[email protected]>
Signed-off-by: Nicholas Bucher <[email protected]>
Signed-off-by: Nicholas Bucher <[email protected]>
@Charlesthebird Charlesthebird changed the title changelog Adding Custom Pages Sep 13, 2024
Signed-off-by: Nicholas Bucher <[email protected]>
Signed-off-by: Nicholas Bucher <[email protected]>
@Charlesthebird Charlesthebird marked this pull request as ready for review September 16, 2024 14:22
);
useEventListener(window, "resize", () => {
setWindowInnerWidth(window.innerWidth);
setWindowInnerHeight(window.innerHeight);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this being exposed via a context on app level

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep! I brought this over from GME.

@Charlesthebird Charlesthebird merged commit 412c14d into gg-portal-1.18-features Sep 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants