Skip to content

Website styling#102

Closed
sananoureen35 wants to merge 3 commits intothoth-tech:mainfrom
sananoureen35:website-styling
Closed

Website styling#102
sananoureen35 wants to merge 3 commits intothoth-tech:mainfrom
sananoureen35:website-styling

Conversation

@sananoureen35
Copy link
Contributor

@sananoureen35 sananoureen35 commented Sep 21, 2024

Description

This update introduces multiple improvements to the website’s styling, focusing on enhancing readability, interactivity, and the overall user experience across both light and dark modes. Key updates include:

  • Dark mode now uses white text for headings and content to make it visible against the dark background.

  • Light mode text colours were also fine-tuned for better contrast and consistency.

  • Buttons now have a smooth hover animation that includes a colour change from green to a darker green (palette from the Thoth), the text colour changes to gold on hover.

  • Additionally, a slight lift with subtle effect has been added to buttons on hover, creating a more dynamic and engaging user experience. The box shadow increases slightly, making the button appear raised.

  • Cards now have a subtle animation that adjusts the background colour and subtly lifts the card on hover. This includes smooth transitions in both light and dark modes.

  • In dark mode, the card background turns a darker shade on hover, and the text remains white to maintain contrast.

  • In light mode, cards change to a light grey background on hover while text colour shifts to white for better readability.

  • Both light and dark modes have gradient backgrounds applied to the main sections, giving the page a modern look while ensuring the content is readable.

  • The dark mode gradient consists of subtle blues and black for a sleek appearance, while the light mode gradient uses lighter blue shades to maintain a fresh and clean aesthetic.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as
    expected)
  • Documentation (update or new)

How Has This Been Tested?

Changes were tested locally on the latest versions of Chrome, Safari, and Firefox. Button hover effects, card animations, and text readability were all validated across both light and dark modes.
The hover animations for buttons and cards were checked to ensure smooth transitions and consistent behaviour across browsers. The gradient backgrounds were also tested for proper rendering without distorting the readability of the text.
And there were no issues and warnings when building and running the code.

Testing Checklist

  • Tested in latest Chrome
  • Tested in latest Safari
  • Tested in latest Firefox

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have requested a review from ... on the Pull Request

@netlify
Copy link

netlify bot commented Sep 21, 2024

Deploy Preview for thoth-tech ready!

Name Link
🔨 Latest commit 2d9375f
🔍 Latest deploy log https://app.netlify.com/sites/thoth-tech/deploys/66ee22fc6eb95300087703c4
😎 Deploy Preview https://deploy-preview-102--thoth-tech.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.

@netlify
Copy link

netlify bot commented Sep 21, 2024

Deploy Preview for strong-fairy-c1bde1 ready!

Name Link
🔨 Latest commit 2d9375f
🔍 Latest deploy log https://app.netlify.com/sites/strong-fairy-c1bde1/deploys/66ee22fcbf45bc00083be1ed
😎 Deploy Preview https://deploy-preview-102--strong-fairy-c1bde1.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.

Copy link
Collaborator

@ShaunR1991 ShaunR1991 left a comment

Choose a reason for hiding this comment

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

Overall, the styling updates bring a fresh, modern feel to the website. The green link buttons work smoothly in both light and dark modes, and the subtle animations create a dynamic and engaging user experience. I particularly like the attention to detail in ensuring consistency between the two modes.

However I did notice a few potential areas for improvement. While the link cards look great when hovered over, in their default state they blend into the background. This might cause users to miss them at first glance, so it could be beneficial to find a way to make them stand out more initially (including the navigation cards, i.e. the Next and Previous cards). Additionally, non-link cards changing colour on hover might give the impression that they are clickable, which could lead to some confusion.

In terms of accessibility, the colour choices generally work well, but there are a few small adjustments that could make a big difference. The hover state for buttons, which shifts to a darker green with gold text, might have some contrast issues for users with visual impairments. Testing the contrast between these colours could ensure they meet accessibility standards. You can have a look at the WCAG 2.1 AA standards to double-check colour choices. For example:

  • The green buttons (#33773d for the background and white for the text) might not meet the WCAG 2.1 contrast guidelines, especially for users with visual impairments or colour blindness. The contrast ratio between the green and white text should be at least 4.5:1 for normal text and 3:1 for large text. You can verify this by testing it with a contrast checker.

  • Similarly, the hover state (#285e30 background with gold text) might not have sufficient contrast to be readable, especially in lower lighting conditions or on dim screens. Gold (#f1c40f) against dark green can be tricky for users with visual impairments.

That said, the overall colour scheme and gradients are visually appealing and well-suited to both light and dark modes. Just a few minor tweaks, especially regarding contrast and visual cues, could further enhance the user experience and make the site even more accessible.

@omckeon
Copy link
Collaborator

omckeon commented Oct 21, 2024

Closing due to being incomplete.

@omckeon omckeon closed this Oct 21, 2024
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