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

some style changes and fixes #34

Merged
merged 8 commits into from
May 17, 2024
Merged

some style changes and fixes #34

merged 8 commits into from
May 17, 2024

Conversation

UltimatChamp
Copy link
Contributor

@UltimatChamp UltimatChamp commented May 10, 2024


Preview URL: https://pr-34.neoforged-website-previews.pages.dev

- Full-sized website window for a modern look.
- Added transitions to everything.
- Added a new Legacy badge.
- Provided a Hugo executable file like `gradlew` (fixes neoforged#33).
- Fixed the single-lined code block on notices to look unreadable in light mode.
- Covered some more IDEs in `.gitignore`.
@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) May 10, 2024 06:46 Active
@neoforged-pages-deployments
Copy link

neoforged-pages-deployments bot commented May 10, 2024

Deploying with Cloudflare Pages

Name Result
Last commit: a165d5d0182a6e8b42434293189d1c14540e1098
Status: ✅ Deploy successful!
Preview URL: https://8558016f.neoforged-website-previews.pages.dev
PR Preview URL: https://pr-34.neoforged-website-previews.pages.dev

@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) May 16, 2024 12:36 Active
hugo.exe Outdated Show resolved Hide resolved
themes/mainroad/assets/css/style.css Outdated Show resolved Hide resolved
themes/mainroad/assets/css/style.css Show resolved Hide resolved
themes/mainroad/assets/css/style.css Outdated Show resolved Hide resolved
Copy link
Member

@sciwhiz12 sciwhiz12 left a comment

Choose a reason for hiding this comment

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

After consulting with others, it seems the old screen, limited in width it may be, looks better on wide screens rather than the changes in this PR.

While there is a lot of wasted space on the existing layout, it's much more readable as the text is in a confined column, rather than stretching across the screen without balancing text size and other factors.

In line with that, please revert back to the fixed-width layout. We can discuss changing to a full-width layout in another PR, hopefully in a way that looks readable on wide screens.

@UltimatChamp
Copy link
Contributor Author

Hmm... I'll revert the changes you asked in a bit. It'll be nice if someone could make a better fullscreen solution; the current one is just pretty bugging.

@ChampionAsh5357
Copy link

The transition and dimming effect on the version bar makes it look like the option is greyed out while also having the colors meld together, making it look washy. Could we remove the transition to see whether the effect looks better. If it still has a similar issue, I would suggest removing the transition and dimming effect for the bar altogether and just leaving the border around the version bar to indicate selection.

Non-hovered:
image

Hovered:
image

@UltimatChamp
Copy link
Contributor Author

UltimatChamp commented May 16, 2024

Ok!

Also, I'll record some visual representations of the changes you and Sci have asked for better comparison. (and btw the highlight and the versions dropdowns were made pr-ed by me; just reading project-talk on discord lol)

the transition effect is already not on neoforged.net

@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) May 17, 2024 06:20 Active
@UltimatChamp
Copy link
Contributor Author

UltimatChamp commented May 17, 2024

  • I've fixed the latest hugo crash, by disabling the google analytics feature, since I don't think it's used anywhere.
    • if it's important, from what i've found, google_analytics.html is it's replacement (from google_analytics_async.html; this is what the website was using; it's now removed from hugo)
  • "Latest News" contains all news items instead of just the latest few ones #36 has been fixed by renaming Latest News to News. (This requested function is already performed by the Recent Posts widget by showing the latest 5 news)
  • I've reverted back the fullscreen change.
  • Hovering on the installer, the dropdown title will no longer be dimmed.
  • The hovering feature is now only on the badges and the new version block on the dropwdown title.
  • I've fixed the odd-looking toggle button, when it changes from a square to a circle. It's now from a squicircle to a circle.
  • The Latest NeoForge Installer version text has been changed to monospace.
  • The notice code block color has been dimmed as requested.

@UltimatChamp
Copy link
Contributor Author

Should I do this?

rec_neo2.mp4

@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) May 17, 2024 07:05 Active
@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) May 17, 2024 07:17 Active
@sciwhiz12
Copy link
Member

Should I do this?
rec_neo2.mp4

I think that's too distracting, personally.

Copy link
Member

@sciwhiz12 sciwhiz12 left a comment

Choose a reason for hiding this comment

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

Thanks for figuring out the Hugo issue! We'll look into updating to the latest Hugo version on Cloudflare and here after this PR is merged.

The change in font size of the badges and code block in the version dropdowns are a bit too distracting, I think. At most, we could have them dim on hover, but changing size is a bit much. (And no other code block should really be dimming on hover, I think, to avoid association with e.g., buttons.)

@@ -239,6 +248,11 @@ code {
padding: 0 5px;
}

code:hover {
filter: brightness(.85);
cursor: pointer;
Copy link
Member

Choose a reason for hiding this comment

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

Why? It's a bit distracting to hover over a code block in a page and see it change to the hand pointer (for links and buttons), when it is not a button or a link. (It might also give the impression that you can click to copy?)

Also, is dimming the code block necessary? I think it should just be treated as ordinary text.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you can click to copy?

we can do that, actually.

OK, no more experimenting. I'll finalise the pr shortly.

@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) May 17, 2024 12:05 Active
@sciwhiz12 sciwhiz12 added enhancement New feature or request bug Something isn't working labels May 17, 2024
@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) May 17, 2024 12:10 Active
@UltimatChamp
Copy link
Contributor Author

what about now?

Copy link
Member

@sciwhiz12 sciwhiz12 left a comment

Choose a reason for hiding this comment

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

Looks good to me, just a small nitpick.

@@ -1076,13 +1071,11 @@ details[open] summary {
}

summary code:hover {
font-size: 15px;
filter: brightness(.85);
Copy link
Member

Choose a reason for hiding this comment

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

I think you accidentally'd the indentation. 😄

@neoforged-pages-deployments neoforged-pages-deployments bot deployed to neoforged-website-previews (Preview) May 17, 2024 12:35 Active
Copy link
Member

@sciwhiz12 sciwhiz12 left a comment

Choose a reason for hiding this comment

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

Thanks!

@sciwhiz12 sciwhiz12 merged commit e37612f into neoforged:main May 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Latest News" contains all news items instead of just the latest few ones Fails to build with Hugo 0.125.3
3 participants