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

Fix legacy Font Awesome icon classes #1255

Merged
merged 5 commits into from
Mar 17, 2024
Merged

Fix legacy Font Awesome icon classes #1255

merged 5 commits into from
Mar 17, 2024

Conversation

hedyhli
Copy link
Member

@hedyhli hedyhli commented Mar 11, 2024

We were using some Font Awesome 4 classes, eg:

Which have since been removed. They don't show up correctly after switching to Font Awesome 6 (in #1232).

This is because the Kit we were previously using included some JS files that handled the backwards compatibility. (Thanks to @lemonsaurus for finding this out)

This fix replaces these font awesome classes to the most sensible replacements I could find, which are the new class names and should all display correctly.

Timeline

https://pythondiscord.com/timeline/
https://deploy-preview-1255--pydis-static.netlify.app/timeline/

1

image
image

2

image
image

Resources

https://pythondiscord.com/resources/?type=project-ideas
https://deploy-preview-1255--pydis-static.netlify.app/resources/?type=project-ideas

image
image

Code Jam results

https://www.pythondiscord.com/events/code-jams/
https://deploy-preview-1255--pydis-static.netlify.app/events/code-jams/

For CJ10, 9, 8.

image
image

@hedyhli hedyhli added area: frontend Related to site content and user interaction s: needs review Author is waiting for someone to review and approve labels Mar 11, 2024
Copy link

netlify bot commented Mar 11, 2024

Deploy Preview for pydis-static ready!

Name Link
🔨 Latest commit f9ceead
🔍 Latest deploy log https://app.netlify.com/sites/pydis-static/deploys/65f73dccd0631f0008858884
😎 Deploy Preview https://deploy-preview-1255--pydis-static.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@coveralls
Copy link

coveralls commented Mar 11, 2024

Coverage Status

coverage: 100.0%. remained the same
when pulling f9ceead on fix/timeline-icons
into 0209843 on main.

@hedyhli
Copy link
Member Author

hedyhli commented Mar 12, 2024

I noticed there are a few more FA icons on our site that needs fixing, from looking at a deploy preview from before #1232 the issue might be from upgrading FA, from which incompatible classes we might've missed.

I think I'll just fix those as well in this PR together since I found them already.

@hedyhli hedyhli marked this pull request as draft March 12, 2024 07:53
@hedyhli hedyhli added status: WIP Work In Progress and removed s: needs review Author is waiting for someone to review and approve labels Mar 12, 2024
@hedyhli hedyhli changed the title Fix timeline icons for Summer Code Jam and AoC 2020 Fix legacy Font Awesome icon classes Mar 12, 2024
@hedyhli hedyhli marked this pull request as ready for review March 12, 2024 09:12
@hedyhli hedyhli added s: needs review Author is waiting for someone to review and approve and removed status: WIP Work In Progress labels Mar 12, 2024
Copy link
Member

@jchristgit jchristgit left a comment

Choose a reason for hiding this comment

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

It's kind of annoying that the "lazy load" animation on the timeline doesn't work properly if you try to search for anything. Oh well. Thank you for the fixes.

@hedyhli
Copy link
Member Author

hedyhli commented Mar 15, 2024

There's a one-liner fix for that which just changes hidden items from visibility: hidden to opacity: 0. Further testing might be needed though.

@hedyhli hedyhli requested a review from Xithrius March 16, 2024 01:25
@Xithrius Xithrius added priority: 2 - normal Normal Priority type: enhancement Changes or improvements to existing features labels Mar 16, 2024
@Xithrius Xithrius requested review from ChrisLovering and jchristgit and removed request for jchristgit March 16, 2024 02:48
@Xithrius
Copy link
Member

I'm bad at requesting reviews, apologies

@Xithrius Xithrius requested a review from GDWR March 16, 2024 02:49
@ChrisLovering ChrisLovering merged commit 830dccd into main Mar 17, 2024
11 checks passed
@ChrisLovering ChrisLovering deleted the fix/timeline-icons branch March 17, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: frontend Related to site content and user interaction priority: 2 - normal Normal Priority s: needs review Author is waiting for someone to review and approve type: enhancement Changes or improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants