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

add: new layout #296

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

add: new layout #296

wants to merge 9 commits into from

Conversation

t-muthuri
Copy link
Contributor

@t-muthuri t-muthuri commented Apr 17, 2024

neonlayout
Changes made to src/layouts/layout.js.
Added a new layout called neon to the layout.js file.

Summary by CodeRabbit

  • New Features

    • Introduced a new neon layout with distinct styling and structure.
  • Style

    • Minor adjustments in the structure functions for the churchill and samuel layouts to ensure proper syntax.

Copy link

vercel bot commented Apr 17, 2024

@t-muthuri is attempting to deploy a commit to the shravan20's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Apr 17, 2024

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

Name Status Preview Comments Updated (UTC)
github-readme-quotes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 7:10am
github-readme-quotes-returns ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 7:10am

Copy link

coderabbitai bot commented Apr 17, 2024

Walkthrough

The update introduces a new layout configuration named neon in src/layouts/layout.js, which includes style and structure functions for a neon-themed design. Additionally, minor adjustments were made to the structure functions of the existing churchill and samuel layouts to ensure proper syntax. The overall control flow remains unchanged, with the primary focus on the addition of the neon layout and refinements to existing layouts.

Changes

File Path Change Summary
src/layouts/layout.js Added neon layout with style and structure functions; updated structure in churchill and samuel layouts for syntax consistency.

🐇✨ In the land of code where changes play,
A rabbit danced with code today.
Neon lights and tweaks so slight,
Transform the view with code so bright.
Let's explore this digital delight! 🌟👀


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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 using 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration 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.

Copy link
Owner

@shravan20 shravan20 left a comment

Choose a reason for hiding this comment

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

@t-muthuri: There is some issue with build, can you please check that?

@t-muthuri
Copy link
Contributor Author

@t-muthuri: There is some issue with build, can you please check that?

Yes.

@t-muthuri
Copy link
Contributor Author

t-muthuri commented Apr 17, 2024

@shravan20
I have changed a few lines and it looks alright. All checks seem to pass on my end except the authorization one. Kindly let me know if there are any build issues and if possible, where I should check. Thank you.

@shravan20
Copy link
Owner

@t-muthuri: Can you update the same as part of the document? Add sample link for reference as well for preview.

Good work! 🙌🏻

@shravan20
Copy link
Owner

shravan20 commented Apr 17, 2024

Note: Build issue is resolved after accepting the deployment authorization

There is a design bug, can you check this once?
Preview it : https://github-readme-quotes-9hqums9tr-shravan20s-projects.vercel.app/quote?theme=default&animation=default&layout=neon&font=default&fontColor=white&bgColor=black

We should return only the card instead seems like we are creating a div outside the card and returning that div.

@t-muthuri
Copy link
Contributor Author

@t-muthuri: Can you update the same as part of the document? Add sample link for reference as well for preview.

Good work! 🙌🏻

Yes. Thank you.

@t-muthuri
Copy link
Contributor Author

Note: Build issue is resolved after accepting the deployment authorization

There is a design bug, can you check this once? Preview it : https://github-readme-quotes-9hqums9tr-shravan20s-projects.vercel.app/quote?theme=default&animation=default&layout=neon&font=default&fontColor=white&bgColor=black

We should return only the card instead seems like we are creating a div outside the card and returning that div.

I don't seem to be able to preview it. The message is "Team Access Required. You cannot access this
unique deployment URL
as you are not a member of the team. You can view the latest version of this branch by requesting access to the
up-to-date deployment URL
."

How do I go about it?

@t-muthuri t-muthuri closed this Apr 17, 2024
@t-muthuri t-muthuri reopened this Apr 17, 2024
@shravan20
Copy link
Owner

Screenshot_2024-04-18-01-51-56-31_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Attaching the image for your reference @t-muthuri

@shravan20
Copy link
Owner

Note: Build issue is resolved after accepting the deployment authorization

There is a design bug, can you check this once? Preview it : https://github-readme-quotes-9hqums9tr-shravan20s-projects.vercel.app/quote?theme=default&animation=default&layout=neon&font=default&fontColor=white&bgColor=black

We should return only the card instead seems like we are creating a div outside the card and returning that div.

I don't seem to be able to preview it. The message is "Team Access Required. You cannot access this
unique deployment URL
as you are not a member of the team. You can view the latest version of this branch by requesting access to the
up-to-date deployment URL
."

How do I go about it?

Check it in the local system:

https://localhost:3000/quote?theme=default&animation=default&layout=neon&font=default&fontColor=white&bgColor=black

Copy link

@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: 1

Actionable comments outside the diff hunks (3)
src/layouts/README.md (3)

Line range hint 35-35: Remove one of the consecutive blank lines.

-

This will improve the readability and maintain consistency with common Markdown practices.


Line range hint 10-10: Ensure headings are surrounded by blank lines for better readability.

+

This will improve the structure and readability of the document.


Line range hint 9-9: Ensure fenced code blocks are surrounded by blank lines.

+

This will enhance the readability and formatting of the document.

src/layouts/README.md Show resolved Hide resolved
@t-muthuri
Copy link
Contributor Author

@shravan20
I have solved the design bug that was there. The div is now rendering as expected. I have also updated the README.md file to include the new layout.

Copy link

@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: 1

Comment on lines +27 to +28
- neon <br>
![Quote](https://github-readme-quotes-bay.vercel.app/quote?layout=neon)
Copy link

Choose a reason for hiding this comment

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

Broken image link for the "neon" layout.

Please verify the URL for the image associated with the "neon" layout, as it appears to be broken. This needs to be corrected to ensure the layout is properly represented in the documentation.

@shravan20
Copy link
Owner

@t-muthuri: Author name is completely getting skipped, it isn't getting auto-sized.
Added a sample for preview

Screenshot 2024-04-18 at 11 50 20 PM

@t-muthuri
Copy link
Contributor Author

@t-muthuri: Author name is completely getting skipped, it isn't getting auto-sized. Added a sample for preview

Screenshot 2024-04-18 at 11 50 20 PM

@shravan20
I cannot tell what the problem is from my end, because when run locally, it renders the div well. See the images attached below.
Screenshot from 2024-04-18 22-05-57
Screenshot from 2024-04-18 22-07-21

@t-muthuri t-muthuri closed this Apr 29, 2024
@shravan20
Copy link
Owner

@t-muthuri: Kindly reopen this, I would like to take a look at it myself & see if its issue from the deployment end.

Thank you!

@t-muthuri t-muthuri reopened this May 1, 2024
@t-muthuri
Copy link
Contributor Author

@t-muthuri: Kindly reopen this, I would like to take a look at it myself & see if its issue from the deployment end.

Thank you!

@shravan20 Hello, I have reopened the PR. Thank you.

Copy link

@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: 3

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 4768193 and 8a14817.

📒 Files selected for processing (1)
  • src/layouts/layout.js (4 hunks)
🧰 Additional context used
🪛 Biome (1.9.4)
src/layouts/layout.js

[error] 492-492: This code is unreachable

... because this statement will return from the function beforehand

(lint/correctness/noUnreachable)

🔇 Additional comments (1)
src/layouts/layout.js (1)

419-506: Overall implementation looks good!

The new neon layout is well-structured with proper responsive design and animations. After addressing the above issues, this will be a great addition to the available layouts.

🧰 Tools
🪛 Biome (1.9.4)

[error] 492-492: This code is unreachable

... because this statement will return from the function beforehand

(lint/correctness/noUnreachable)

border-top: 5px solid;
border-right: 5px solid;
border-color: aliceblue;
box-shadow: 7px 7px 7px #ff319b;
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Use theme variables for consistent styling

The neon effect uses a hardcoded color #ff319b. Consider using theme variables for better consistency and customization.

Apply these changes:

-        box-shadow: 7px 7px 7px #ff319b;
+        box-shadow: 7px 7px 7px ${template.theme.author_color};

        @keyframes neon {
          from {
            text-shadow: 
            0 0 4px #fff,
            0 0 10px #fff,
-           0 0 30px #ff319b,
-           0 0 50px #ff319b,
-           0 0 70px #ff319b,
-           0 0 90px #ff319b;
+           0 0 30px ${template.theme.author_color},
+           0 0 50px ${template.theme.author_color},
+           0 0 70px ${template.theme.author_color},
+           0 0 90px ${template.theme.author_color};
          }
          to {
            text-shadow: 
            0 0 2px #fff,
            0 0 5px #fff,
-           0 0 15px #ff319b,
-           0 0 25px #ff319b,
-           0 0 35px #ff319b,
-           0 0 45px #ff319b;
+           0 0 15px ${template.theme.author_color},
+           0 0 25px ${template.theme.author_color},
+           0 0 35px ${template.theme.author_color},
+           0 0 45px ${template.theme.author_color};
          }
        }

Also applies to: 467-482

Comment on lines +491 to +492
;
},
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Remove unreachable code

There's an extra semicolon after the template string that makes line 492 unreachable.

Apply this fix:

      `;
-      ;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
;
},
`;
},
🧰 Tools
🪛 Biome (1.9.4)

[error] 492-492: This code is unreachable

... because this statement will return from the function beforehand

(lint/correctness/noUnreachable)

Comment on lines +422 to +424
* {
box-sizing:
}
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix incomplete box-sizing property

The box-sizing property is missing its value.

Apply this fix:

* {
-  box-sizing: 
+  box-sizing: border-box;
}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* {
box-sizing:
}
* {
box-sizing: border-box;
}

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.

2 participants