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

Fixed the hover effect for social media icons #219

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

Conversation

Neel-07
Copy link

@Neel-07 Neel-07 commented Sep 27, 2023

Description

I have edited the main.css file and added the code for the icons to change color on hover. I have also tested the solution on
my local server and it works fine

Related Issue

 This fixes the issue #218 

Signed-off-by: Neel Mishra <neelmishra9125@gmail.com>
Signed-off-by: Neel Mishra <neelmishra9125@gmail.com>
Signed-off-by: Neel Mishra <neelmishra9125@gmail.com>
Copy link
Collaborator

@drewbrew drewbrew left a comment

Choose a reason for hiding this comment

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

The CSS changes look right at first glance, but I'm curious as to why we need the gem changes

gem "webrick"

gem "github-pages", group: :jekyll_plugins
gem "tzinfo-data"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are these changes needed?

Copy link
Author

Choose a reason for hiding this comment

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

Hi, thank you for your feedback. I included the tzinfo-data gem in the Gemfile because it is a dependency for the tzinfo gem, which is used for time zone conversions. The tzinfo gem can use either the system zoneinfo files or the Ruby modules from the tzinfo-data gem as the data source. However, on Windows systems, the system zoneinfo files are not available, so the tzinfo-data gem is required. Therefore, I added the tzinfo-data gem to ensure that the application can access the correct time zone information on any platform. I hope this clarifies your question. Also, I was getting errors while running the bundle exec jekyll serve command without the tzinfo-data gem, so I had to include it to make the site work locally.

@sodevious
Copy link
Contributor

sodevious commented Sep 27, 2023 via email

@Neel-07
Copy link
Author

Neel-07 commented Sep 27, 2023

Hi @sodevious, thank you for your feedback. I have tried to follow the instructions on how to work with scss files, but I might have made some mistakes. If I am wrong, please guide me to resolve this issue. I appreciate your help and patience

@sodevious
Copy link
Contributor

sodevious commented Sep 27, 2023

@Neel-07 Here is the file you would edit to make the changes you want:

&.facebook:hover svg {
fill: $color-facebook;
}
&.twitter:hover svg {
fill: $color-twitter;
}
&.linkedin:hover svg {
fill: $color-linkedin;
}
&.instagram:hover svg {
fill: $color-instagram;
}
&.github:hover svg {
fill: $color-github;
}
&.mastodon:hover svg {
fill: $color-mastodon;
}

I ask that you please use an already defined variable instead of a hex value: https://github.com/djangocon/2023.djangocon.us/blob/main/_src/scss/_settings.scss#L51-L109

If you are working locally, run npm run build to generate the built .css file

@Neel-07
Copy link
Author

Neel-07 commented Sep 28, 2023

Hello @sodevious, I hope you are doing well. I am working on the issue of changing the color of the icons to match the color of color of twitter icon assigned on hover. Therefore, I would like to ask you if it is alright to modify the _social-icon.scss file and assign the $color-twitter variable to every icon. will it be alright? Thank you for your time and feedback. 😊

@sodevious
Copy link
Contributor

sodevious commented Sep 28, 2023

@Neel-07 I'm sorry for not fully reviewing issue #218 prior to this -- the social icons actually do have appropriate CSS so it's okay to leave them as-is and revert the updates you made in this branch. You can see this in effect by scrolling down to the bottom of the website and hovering over social icons.
Screen Shot 2023-09-28 at 11 24 37 AM


To fix:

  • The social icon implementation on the organizers page refers to a non-existing .web class, so to fix you could add hvoer styles for a .web class just like this:

  • The $color-github variable that the .github class references is incorrect, so you can change that hex code to match Github branding (black)

    $color-github: #4078c0;

  • Also might be worth double checking if the $color-mastodon is correct as well

…hub and website

Signed-off-by: Neel Mishra <neelmishra9125@gmail.com>
@Neel-07
Copy link
Author

Neel-07 commented Sep 28, 2023

@sodevious did all the things that you said it became the one like that was mentioned in the issue

@sodevious
Copy link
Contributor

@Neel-07 can you please push what you have so I can see?

Signed-off-by: Neel Mishra <neelmishra9125@gmail.com>
@Neel-07
Copy link
Author

Neel-07 commented Sep 29, 2023

@sodevious pushed the changes, please have a look onto the files and guide me.

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.

3 participants