-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
base: main
Are you sure you want to change the base?
add: new layout #296
Conversation
@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. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe update introduces a new layout configuration named Changes
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this 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?
Yes. |
@shravan20 |
@t-muthuri: Can you update the same as part of the document? Add sample link for reference as well for preview. Good work! 🙌🏻 |
Note: Build issue is resolved after accepting the deployment authorization There is a design bug, can you check this once? We should return only the card instead seems like we are creating a div outside the card and returning that div. |
Yes. Thank you. |
I don't seem to be able to preview it. The message is "Team Access Required. You cannot access this How do I go about it? |
Attaching the image for your reference @t-muthuri |
Check it in the local system: |
There was a problem hiding this 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.
@shravan20 |
There was a problem hiding this 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
- neon <br> | ||
![Quote](https://github-readme-quotes-bay.vercel.app/quote?layout=neon) |
There was a problem hiding this comment.
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.
@t-muthuri: Author name is completely getting skipped, it isn't getting auto-sized. |
@shravan20 |
@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. |
There was a problem hiding this 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
📒 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; |
There was a problem hiding this comment.
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
; | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
; | |
}, | |
`; | |
}, |
🧰 Tools
🪛 Biome (1.9.4)
[error] 492-492: This code is unreachable
... because this statement will return from the function beforehand
(lint/correctness/noUnreachable)
* { | ||
box-sizing: | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
* { | |
box-sizing: | |
} | |
* { | |
box-sizing: border-box; | |
} |
Changes made to src/layouts/layout.js.
Added a new layout called neon to the layout.js file.
Summary by CodeRabbit
New Features
neon
layout with distinct styling and structure.Style
structure
functions for thechurchill
andsamuel
layouts to ensure proper syntax.