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

Update website #24

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open

Update website #24

wants to merge 49 commits into from

Conversation

FireIsGood
Copy link

This isn't actually everything I can think of to bring the website to the 21st century yet, this is a pull to get the main site up to date so further edits don't explode and cause merge conflicts on my end.

Adds a lot of things and fixes up a lot of styles.

  • Adds Prettier and Markdownlint for formatting and linting
    • Formats everything (agony)
  • Fixes pagination (blog didn't have the UI to actually see more posts)
  • Adds a favicon
  • Adds meta tags (embeds will work now!)
  • Fixes styles
    • Main page cards now look nice at all resolutions
    • Colors are now based on variables (roughly based on the Google Material guidelines and Pico CSS)
    • Read More and other semantically button links now look like buttons
    • OSU logo now matches the main website's
    • Blog posts are now card styled and have cool icons for the metadata
    • Bottom section is now consistent for mobile
    • Many other small nudges to styles

@FireIsGood FireIsGood requested a review from ramereth February 15, 2025 01:37
@ramereth
Copy link
Member

@FireIsGood can you please rebase so that the history is linear without any merge commits? That will make it easier for me to see the changes you made

@FireIsGood
Copy link
Author

Should be rebased to history now I think. Should I continue with rebasing as the standard?

image

@ramereth
Copy link
Member

@FireIsGood yes, but make sure you rebase on the up to date main branch. This shows conflicts you need to resolve.

@FireIsGood FireIsGood force-pushed the update-website branch 2 times, most recently from c44d90d to 837b5c9 Compare February 20, 2025 01:06
Signed-off-by: Lance Albertson <lance@osuosl.org>
Copy link
Member

@ramereth ramereth left a comment

Choose a reason for hiding this comment

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

Overall this looks great. I still need to run a comparison between the old/new to make sure nothing is missing.

While you're at it, can you fix the hugo output such as the following:

Web Server is available at //localhost:1313/ (bind address 127.0.0.1) 

So that it actually shows http://localhost:1313 instead? I know on other hugo sites, it does that but I'm not sure why this happens here. I also pushed a minor fix on the opence page.

@FireIsGood
Copy link
Author

The lack of http in the serve URL seems to be due to the baseURL being set to / so I have changed it to https://osuosl.org/

@FireIsGood
Copy link
Author

I'm researching into GitHub actions, did you want the action to just tell the user that the formatting was incorrect or to introduce new commits by the action that fix changes automatically? The linked Prettier action does a --fix.

I'm leaning more to the checking part as I feel it is better DX to not have a bot making changes.

@FireIsGood
Copy link
Author

FireIsGood commented Feb 24, 2025

Here's a repo I made to test a Prettier action that just checks but does not make commits: https://github.com/FireIsGood/gh-workflows/

image

image

image

@FireIsGood
Copy link
Author

And here's adding the markdownlint checker commit:

image

@FireIsGood
Copy link
Author

So the question is whether we want:

  • GitHub Action workflows that make changes to the code on commits (not pictured)
  • GitHub Actions that check if tests pass and report with passes or fails (pictured in previous comments)

As noted previously, I would prefer the tests approach and I believe it to be better for our use case here but I'm open to either if you have a preference.

@FireIsGood FireIsGood requested a review from ramereth February 24, 2025 23:24
@ramereth
Copy link
Member

I'm researching into GitHub actions, did you want the action to just tell the user that the formatting was incorrect or to introduce new commits by the action that fix changes automatically? The linked Prettier action does a --fix.

I'm leaning more to the checking part as I feel it is better DX to not have a bot making changes.

Just tell them if it was incorrect.

@ramereth
Copy link
Member

So the question is whether we want:

  • GitHub Action workflows that make changes to the code on commits (not pictured)
  • GitHub Actions that check if tests pass and report with passes or fails (pictured in previous comments)

As noted previously, I would prefer the tests approach and I believe it to be better for our use case here but I'm open to either if you have a preference.

I'd rather it just checks and doesn't make changes.

@FireIsGood
Copy link
Author

Pull is ready for merging. The checks have been added and I'm going to freeze pushing features to remote until this is merged so we can start getting blog posts with the new formatting/linting setup ready.

@ramereth
Copy link
Member

@FireIsGood so I just noticed that the front page boxes are all vertical instead of being in a grid when on a wider screen. Is that intentional or not? I'd rather it be on a grid on a non-mobile site.

@FireIsGood
Copy link
Author

I'm not sure how that is happening for you. On chromium and firefox I see them in a grid. Do you mean vertical as in not wrapping?

Firefox

image

Chromium

image

@ramereth
Copy link
Member

ramereth commented Mar 3, 2025

This is what I see with Google Chrome:

Screenshot from 2025-03-03 14-41-20

@ramereth
Copy link
Member

ramereth commented Mar 3, 2025

I also noticed this:

Screenshot from 2025-03-03 14-43-40

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