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: 404 not found page style improved #354

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

RamakrushnaBiswal
Copy link
Contributor

@RamakrushnaBiswal RamakrushnaBiswal commented Jun 3, 2024

Related Issue

fixes #350

Description

404 page redesigned like add some pic

Screenshots

image

Summary by CodeRabbit

  • New Features

    • Introduced a CSS animation that moves an element up and down infinitely.
  • Enhancements

    • Updated the 404 error page to display a new image, adjust layout styling, and change the button text to "Go Home" for improved navigation.

Copy link

vercel bot commented Jun 3, 2024

@RamakrushnaBiswal is attempting to deploy a commit to the Sanchit Bajaj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the title needs formatting Title of issue or pull request does not match the guidelines label Jun 3, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Great job, @RamakrushnaBiswal! 🎉 Thank you for submitting your pull request. Your contribution is valuable and we appreciate your efforts to improve our project. Keep being the part of the community!

'We will promptly review your changes and offer feedback. Keep up the excellent work!
Kindly remember to check our Contributing Guidelines'

@github-actions github-actions bot added wait for reviewers gssoc GSSOC'24 Required Label labels Jun 3, 2024
Copy link
Contributor

coderabbitai bot commented Jun 3, 2024

Walkthrough

The recent updates to the Custom404 component in the src/app/[others]/page.tsx file enhance the styling and user experience of the 404 error page. Key changes include the introduction of a CSS animation for elements, updating the image source, layout styling, and modifying the button text for navigation. These changes aim to make the 404 error page more visually appealing and user-friendly.

Changes

Files Change Summary
src/app/[others]/page.css Introduced a CSS animation named updown to move an element up and down infinitely with a 1.5-second duration.
src/app/[others]/page.tsx Updated the Custom404 component to display a new 404 error image, adjust layout styling, and update the button text for navigation.

Assessment against linked issues

Objective Addressed Explanation
Styling improvement in 404 not found page (Issue #350)
Add some GIF or animated images (Issue #350)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@RamakrushnaBiswal RamakrushnaBiswal changed the title 404 not found page style improved feat: 404 not found page style improved Jun 3, 2024
@github-actions github-actions bot removed the title needs formatting Title of issue or pull request does not match the guidelines label Jun 3, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 49276ec and a66b910.

Files ignored due to path filters (1)
  • public/assets/404.png is excluded by !**/*.png, !**/*.png
Files selected for processing (2)
  • src/app/[others]/page.css (1 hunks)
  • src/app/[others]/page.tsx (1 hunks)
Files skipped from review due to trivial changes (1)
  • src/app/[others]/page.css
Additional comments not posted (3)
src/app/[others]/page.tsx (3)

12-20: The Custom404 component is well-structured and uses the imported assets correctly.


5-5: Import statement for page.css looks correct.

Verification successful

The page.css file exists in the src/app/[others]/ directory, and the import path in src/app/[others]/page.tsx correctly references this file.

  • src/app/[others]/page.tsx: import './page.css';
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the existence of the page.css file in the project.

# Test: Check if the CSS file exists. Expect: The file should exist.
if [ -f "./page.css" ]; then
  echo "CSS file exists."
else
  echo "CSS file does not exist."
fi

Length of output: 82



Script:

#!/bin/bash
# Description: Search for the page.css file in the project directory.

# Test: Use fd to find the page.css file. Expect: The file should be found somewhere in the project.
fd page.css

Length of output: 39



Script:

#!/bin/bash
# Description: Verify the import path in src/app/[others]/page.tsx.

# Test: Check if the import path in src/app/[others]/page.tsx correctly references the page.css file.
grep "import './page.css';" src/app/[others]/page.tsx

Length of output: 84


4-4: Import statement for NotFoundPic looks correct.

Verification successful

The image file public/assets/404.png exists in the repository. The import statement in src/app/[others]/page.tsx is correct.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the existence of the 404.png image in the public assets directory.

# Test: Check if the image file exists. Expect: The file should exist.
if [ -f "/public/assets/404.png" ]; then
  echo "Image file exists."
else
  echo "Image file does not exist."
fi

Length of output: 98



Script:

#!/bin/bash
# Description: Search for the 404.png image file within the repository to determine its correct location.

# Test: Use fd to find the 404.png file. Expect: The file should be found somewhere in the repository.
fd 404.png

Length of output: 34



Script:

#!/bin/bash
# Description: Verify the existence of the 404.png image in the public assets directory using the correct relative path.

# Test: Check if the image file exists. Expect: The file should exist.
if [ -f "public/assets/404.png" ]; then
  echo "Image file exists."
else
  echo "Image file does not exist."
fi

Length of output: 81

@yashd-dev
Copy link
Collaborator

This looks good but on mobile, it's too small. Just on mobile make it full width.

@RamakrushnaBiswal
Copy link
Contributor Author

image
fixed

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between a66b910 and 5b6747e.

Files selected for processing (1)
  • src/app/[others]/page.tsx (1 hunks)
Additional context used
Biome
src/app/[others]/page.tsx

[error] 13-13: Avoid the words "image", "picture", or "photo" in img element alt text. (lint/a11y/noRedundantAlt)

Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text.


[error] 14-14: Avoid passing children using a prop (lint/correctness/noChildrenProp)

The canonical way to pass children in React is to use JSX elements

src/app/[others]/page.tsx Show resolved Hide resolved
src/app/[others]/page.tsx Show resolved Hide resolved
@Sanchitbajaj02 Sanchitbajaj02 added ⭐ enhancement Feature enhancement ✨ goal: improve interface EASY Difficulty Level: Easy level1 10 points and removed wait for reviewers labels Jun 7, 2024
@Sanchitbajaj02 Sanchitbajaj02 merged commit 77334a0 into Sanchitbajaj02:master Jun 7, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EASY Difficulty Level: Easy ⭐ enhancement Feature enhancement ✨ goal: improve interface gssoc GSSOC'24 Required Label level1 10 points
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Styling improvement in 404 not found page
3 participants