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

feat: Style refine. Add progress indicator and BackToTop button. #57

Merged
merged 9 commits into from
Nov 12, 2024

Conversation

ZL-Asica
Copy link
Owner

@ZL-Asica ZL-Asica commented Nov 12, 2024

This PR refines accessibility, styling, and functionality across several components, implementing Tailwind CSS, adding a Back to Top button, and optimizing layout responsiveness. It also includes social media enhancements in the footer, an animated progress indicator, and improved dark mode support.

Key Changes

  1. Accessibility Enhancements (Header.tsx, SearchInput.tsx):

    • Fixed aria-hidden for mobile menu to ensure screen reader compatibility.
    • Added aria-label to search-related select components to improve accessibility.
  2. Styling Refactor and Optimization (Footer.tsx, Header.tsx, PostListLayout.tsx):

    • Close mobile menu bar when clicked outside. mobile header bugs #38
    • Moved CSS from standalone files to styled-components and Tailwind classes for improved maintainability.
    • Added overlay effect when mobile menu is open.
    • Improved dark mode styles and consistency for PostListLayout.
    • Removed unused CSS files: footer.css, header.css, and postListLayout.css.
  3. Footer Social Media Expansion (Footer.tsx, config.yml):

    • Added a broader selection of social media options, improving icon alignment and accessibility.
    • Moved CSS styles into Tailwind classes.
  4. UI Enhancements:

    • Progress Indicator (Header.tsx): Added a scroll progress indicator at the top, providing users with a quick visual of their position on the page.
    • Back to Top Button (BackToTop.tsx): back to top button for both home and sigle post page. #16
      • Displays when users scroll down and fades in/out smoothly.
      • Includes bounce animation when users reach the bottom of the page.
      • Button uses Tailwind for styling and hover scaling for improved interactivity.
  5. Post List Layout Improvements (PostListLayout.tsx):

    • Combined and optimized styles into Tailwind classes, reducing CSS dependency.
    • Added “Read More” button for each post, with smooth scaling on hover.
    • Addressed responsive display issues, ensuring consistent layout on various screen sizes.
  6. Minor Fixes:

    • Update README to show the newest file structure.
    • Fix pr-size wrokflow.

Summary

These changes enhance user experience by improving accessibility, responsiveness, and visual clarity across the application, while streamlining and unifying styling practices.

- Add overlay when mobile menu is open.
- Use tailwind css for styling.
- Combine style from css into styled-components.
- Improved dark mode style.
- Add more animations.
- Add read more button.

- Fix responsible issue.
- Remove unused css file and classes.
- Button will only show if user scrolls down.
- Button will scroll to top of page when clicked.
- Button will fade in and out when user scrolls up and down.
- Button will bump when get to the very bottom of the page.
@ZL-Asica ZL-Asica added bug Something isn't working enhancement New feature or request labels Nov 12, 2024
Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
suzu-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 10:30pm

@ZL-Asica ZL-Asica merged commit a7a8a7d into main Nov 12, 2024
6 of 7 checks passed
@ZL-Asica ZL-Asica deleted the style/refine-style branch November 12, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mobile header bugs back to top button for both home and sigle post page.
1 participant