Skip to content

Removed FuzzyText component from Error Page and fixed responsivness issues#12

Merged
aintnier merged 1 commit intomainfrom
responsive
Jul 25, 2025
Merged

Removed FuzzyText component from Error Page and fixed responsivness issues#12
aintnier merged 1 commit intomainfrom
responsive

Conversation

@aintnier
Copy link
Copy Markdown
Owner

@aintnier aintnier commented Jul 25, 2025

Summary by Sourcery

Simplify the ErrorPage by removing the FuzzyText animation, consolidating responsive styles with clamp(), and refining layout and typography for consistent rendering across viewports

Bug Fixes:

  • Fix responsiveness issues on the ErrorPage by consolidating and simplifying CSS

Enhancements:

  • Remove FuzzyText component and replace it with a static heading element
  • Introduce an .error-title class with responsive clamp-based sizing and text-shadow styling
  • Streamline ErrorPage CSS by removing legacy canvas rules and extensive media queries
  • Adjust button styling with consistent border-radius, font-size, and transition properties
  • Center-align paragraph text and update padding and gap values using clamp()

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai bot commented Jul 25, 2025

Reviewer's Guide

This PR removes the custom FuzzyText component from the ErrorPage in favor of a semantic heading and overhauls the related CSS by simplifying base styles with clamp(), adding dedicated title styling, and purging legacy responsive media queries.

Class diagram for ErrorPage after FuzzyText removal

classDiagram
    class ErrorPage {
      +render()
    }
    %% FuzzyText component is no longer used in ErrorPage
    class FuzzyText {
      +baseIntensity
      +hoverIntensity
      +enableHover
      +fontWeight
      +color
    }
    ErrorPage --|> React.Component
    %% FuzzyText is removed from ErrorPage usage
Loading

Class diagram for ErrorPage before and after CSS changes

classDiagram
    class ErrorPage {
      +error-title : h1 (added)
      +.error-page : div
      +.back-button : Link
      +p : message
    }
    %% .error-title is a new class for the heading
    %% Responsive media queries removed from ErrorPage.css
Loading

File-Level Changes

Change Details Files
Replaced FuzzyText with a semantic heading
  • Removed FuzzyText import
  • Deleted FuzzyText component markup and props
  • Introduced an

    404

    element
src/pages/ErrorPage.js
Refactored ErrorPage.css: updated base styles and removed legacy media queries
  • Adjusted container padding and gap via clamp()
  • Removed .error-page canvas rules
  • Added .error-title typography and text-shadow
  • Centered paragraph text
  • Tweaked back-button border-radius, font-size, and transition placement
  • Purged all @media query blocks
src/styles/ErrorPage.css

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@aintnier aintnier merged commit d82b60a into main Jul 25, 2025
3 checks passed
Copy link
Copy Markdown

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We've reviewed this pull request using the Sourcery rules engine

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.

1 participant