Skip to content

website improvements - #26

Open
eltrevii wants to merge 11 commits into
OrnitheMC:masterfrom
eltrevii:master
Open

website improvements#26
eltrevii wants to merge 11 commits into
OrnitheMC:masterfrom
eltrevii:master

Conversation

@eltrevii

Copy link
Copy Markdown

hey, i found ornithe through the polyfrost discord server and i think its a very cool project, so i checked the website and saw it was made in astro, which i have used, and i was kind of curious about it, and i really felt the need to inspect it and fix some of the issues i found

most of these improvements are internal changes but mostly following the official docs, especially with the upgrade to astro v7 and tailwind v4; anyways, i hope these make the website more manageable, and i am providing some explanations for what i think are the most important changes here, just in case:

  1. tailwind v4: it has a new approach for integrating with astro, which is to use it as a vite plugin; see: astro guide from tailwind
  2. scripts moved from public to src/scripts: this allows astro to optimize and bundle them, plus automatically defers them; see: official docs

i have also fixed one issue on mobile/unsupported platforms where the "latest version" text would say "undefined", i changed it for "unsupported device" which could avoid confusion

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