Skip to content

Commit

Permalink
feat: add web version to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
fedellen committed Dec 29, 2023
1 parent 4c30732 commit cc35bcb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions web/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REACT_APP_VERSION=$npm_package_version
REACT_APP_NAME=$npm_package_name
2 changes: 1 addition & 1 deletion web/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# misc
.DS_Store
.env
!.env
.env.local
.env.development.local
.env.test.local
Expand Down
1 change: 1 addition & 0 deletions web/src/components/footer/PixelPajamaWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function PixelPajamaWidget() {
Report Bug
</a>
</li>
<li className="version">v{process.env.REACT_APP_VERSION}</li>
</ul>
<a className="text-link" href="https://pixelpajamastudios.com">
© {new Date().getFullYear()} Pixel Pajama Studios LLC
Expand Down
5 changes: 4 additions & 1 deletion web/src/style/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@
.header-option-button svg {
@apply w-7 h-7 sm:w-9 sm:h-9 mb-2;
}
.version {
@apply text-xs sm:text-sm md:text-base no-underline;
}

/** Item options */

Expand Down Expand Up @@ -425,7 +428,7 @@
@apply flex flex-col lg:flex-row justify-center items-center space-y-4 lg:space-y-0 lg:space-x-6 m-4;
}
#ppjs-widget div {
@apply flex flex-col space-y-2 justify-center items-center underline;
@apply flex flex-col space-y-2 justify-center items-center;
}
#ppjs-widget ul {
@apply flex space-x-6;
Expand Down

0 comments on commit cc35bcb

Please sign in to comment.