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

feat(ui): add footer with current protocol/app version #209

Merged
merged 3 commits into from
Jun 2, 2024

Conversation

drichar
Copy link
Collaborator

@drichar drichar commented Jun 2, 2024

This adds a footer that dynamically displays the current version by importing version from the UI's package.json file. This value is set to a global constant __APP_VERSION__ defined in the Vite config. See https://vitejs.dev/config/shared-options.html#define

The footer includes links to GitHub and the GitBook documentation.

The parent layout is also updated to be a flexbox column with the <main> element styled w/ flex-grow: 1; to fill the available space. This forces the new footer to the bottom of the viewport even if the page content doesn't reach that far.

Copy link

vercel bot commented Jun 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
reti ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 2, 2024 7:35am

@drichar drichar merged commit 01f1b98 into dev Jun 2, 2024
3 checks passed
@drichar drichar deleted the feat/ui-footer-version branch June 2, 2024 07:44
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.

1 participant