Skip to content

Comments

added homepage#34

Open
GAGANRAGHAV wants to merge 9 commits intoWebSorcery:mainfrom
GAGANRAGHAV:main
Open

added homepage#34
GAGANRAGHAV wants to merge 9 commits intoWebSorcery:mainfrom
GAGANRAGHAV:main

Conversation

@GAGANRAGHAV
Copy link

@GAGANRAGHAV GAGANRAGHAV commented Dec 22, 2023

Description

  1. made a homepage
  2. created new .js file
  3. added tailwind

Type of change

ui / ux

##screenshot --

image

Checklist:

  • [X ] My code follows the style guidelines of this project
  • [ X] I have performed a self-review of my own code
  • [ X] I have commented my code, particularly in hard-to-understand areas
  • [X ] I have made corresponding changes to the documentation
  • [ X] My changes generate no new warnings
  • [ X] I have added tests that prove my fix is effective or that my feature works
  • [X ] New and existing unit tests pass locally with my changes
  • [X ] Any dependent changes have been merged and published in downstream modules

Summary by CodeRabbit

  • New Features

    • Introduced a new Center component for enhanced layout and structure on the Home page.
  • Style

    • Implemented Tailwind CSS for modern, utility-first styling.
    • Updated Home.module.css with new and modified classes to improve visual elements.
    • Integrated Tailwind's base, components, and utilities into the global stylesheet.

@vercel
Copy link

vercel bot commented Dec 22, 2023

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

Name Status Preview Comments Updated (UTC)
testcase-generator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2023 4:20am

@coderabbitai
Copy link

coderabbitai bot commented Dec 22, 2023

Walkthrough

The project has integrated a new Center component, enhancing the Home page layout. It has adopted Tailwind CSS for styling, evident from the added configuration files and directives. CSS classes within the Home.module.css have been updated, likely to align with Tailwind's utility classes, refining the visual design.

Changes

Files Change Summaries
pages/Center.js, pages/index.js Added Center component to Center.js and imported into index.js, affecting the layout and structure of the Home component.
postcss.config.js, tailwind.config.js Configured PostCSS with tailwindcss and autoprefixer in postcss.config.js, and introduced configuration for Tailwind CSS in tailwind.config.js.
styles/Home.module.css Added new CSS classes, modified existing classes like .card and .card2 to adjust various properties.
styles/globals.css Added @tailwind directives for base, components, and utilities, along with the insertion of empty lines.

🐇✨
In the code's burrow, deep and vast,
A Center blooms, the die is cast.
Tailwind's breeze, CSS's class,
A rabbit's touch, now none shall surpass. 🌟🌿

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 X ?


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • You can directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
  • You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging @coderabbitai in a comment. Examples:
  • You can tag @coderabbitai in a PR comment and ask questions about the PR and the codebase. Use quoted replies to pass the context for follow-up questions. Examples:
    • @coderabbitai render interesting statistics about this repository as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai generate unit tests for the src/utils.ts file.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@ghost
Copy link

ghost commented Dec 22, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@gitstream-cm
Copy link

gitstream-cm bot commented Dec 22, 2023

This PR is missing a Jira ticket reference in the title or description.
Please add a Jira ticket reference to the title or description of this PR.

@gitstream-cm
Copy link

gitstream-cm bot commented Dec 22, 2023

🥷 Code experts: ank1traj

ank1traj has most 👩‍💻 activity in the files.
ank1traj has most 🧠 knowledge in the files.

See details

package.json

Activity based on git-commit:

ank1traj
DEC 1 additions & 0 deletions
NOV
OCT
SEP
AUG
JUL

Knowledge based on git-blame:
ank1traj: 76%

pages/index.js

Activity based on git-commit:

ank1traj
DEC 10 additions & 4 deletions
NOV
OCT 110 additions & 126 deletions
SEP
AUG
JUL

Knowledge based on git-blame:
ank1traj: 65%

styles/Home.module.css

Activity based on git-commit:

ank1traj
DEC
NOV
OCT 15 additions & 3 deletions
SEP
AUG
JUL

Knowledge based on git-blame:
ank1traj: 43%

styles/globals.css

Activity based on git-commit:

ank1traj
DEC
NOV
OCT
SEP
AUG
JUL

Knowledge based on git-blame:
ank1traj: 94%

To learn more about /:\ gitStream - Visit our Docs

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.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between b71bcdd and d803123.
Files ignored due to filter (4)
  • package-lock.json
  • package.json
  • pages/test.jpeg
  • pages/test.png
Files selected for processing (6)
  • pages/Center.js (1 hunks)
  • pages/index.js (3 hunks)
  • postcss.config.js (1 hunks)
  • styles/Home.module.css (2 hunks)
  • styles/globals.css (1 hunks)
  • tailwind.config.js (1 hunks)
Files skipped from review due to trivial changes (2)
  • styles/globals.css
  • tailwind.config.js
Additional comments: 6
postcss.config.js (1)
  • 1-6: The PostCSS configuration correctly sets up Tailwind CSS and Autoprefixer as plugins, which are essential for Tailwind CSS to function properly.
pages/index.js (3)
  • 8-8: The import statement for the Center component is correctly added. Ensure that the Center component is properly exported from the ./Center file.

  • 181-187: > Note: This review was outside the patches, so it was mapped to the patch with the greatest overlap. Original lines [184-195]

The JSX block related to the description and author information has been commented out. If this is intentional and part of a redesign, ensure that it does not affect the layout or functionality negatively.

  • 196-196: The Center component has been added to the JSX structure. Verify that it integrates well with the existing layout and that its responsive behavior aligns with the design requirements.
styles/Home.module.css (2)
  • 11-55: The new CSS classes and media queries are added correctly. However, ensure that the .testca class's margin-bottom value aligns with the design requirements, as it is significantly large.

  • 242-259: The modifications to the .card and .card2 classes adjust dimensions and add hover effects. Ensure that these changes meet the design specifications and that the hover effects are tested across different browsers for consistency.

Comment on lines 1 to 171
import React from "react";
import Image from "next/image";
import { Inter } from "next/font/google";
import styles from "@/styles/Home.module.css";
import image from "./test.png";
const inter = Inter({ subsets: ["latin"] });

const Center = () => {
return (
<div className={inter.className}>
<div className={styles.testca}>
<div className={styles.data}>

<div className={styles.details1}>

<p>An Open Source Comprehensive Test Case Generator</p>
</div>

<div className={styles.author}>
<a
href="https://www.linkedin.com/in/ank1traj/"
target="_blank"
rel="noopener noreferrer">
By Ankit Raj
</a>

</div>
</div>

<div className={styles.imag}>
<div class="relative rounded-lg bg-slate-900 p-2 ">
<div class="relative flex text-center">
<div class="flex pl-3.5 pt-3">
<svg
viewBox="0 0 24 24"
fill="currentColor"
class="-ml-0.5 mr-1.5 h-3 w-3 text-red-500/20"
>
<circle r="12" cy="12" cx="12"></circle>
</svg>
<svg
viewBox="0 0 24 24"
fill="currentColor"
class="-ml-0.75 mr-1.5 h-3 w-3 text-yellow-500/20"
>
<circle r="12" cy="12" cx="12"></circle>
</svg>
<svg
viewBox="0 0 24 24"
fill="currentColor"
class="-ml-0.75 mr-1.5 h-3 w-3 text-green-500/20"
>
<circle r="12" cy="12" cx="12"></circle>
</svg>
</div>
<span class="absolute inset-x-0 top-2 text text-slate-500">

</span>
</div>
<div class="mt-5 space-y-1.5 px-5 pb-10">
<p class="mt-4 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Card</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">
Testcase case generator
</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal leading-4 tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Event</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">Codepeak'23</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Event</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Flex</span>
<span class="ml-2 text-violet-400">
className<span class="text-slate-500">=</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">Owner</span>
</span>
</span>
<span class="text-slate-500">&gt;</span>
<span class="relative text-blue-400">AnkitRaj</span>

<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Flex</span>&gt;
</p>
<p class="ml-6 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Bold</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">32%</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Bold</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">Open Sourced</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-6 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">$ 223,328</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Flex</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal leading-4 tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">ProgressBar</span>
<span class="ml-2 text-violet-400">
value<span class="text-slate-500">=</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">{32}</span>
</span>
</span>
<span class="ml-2 text-violet-400">
className<span class="text-slate-500">=</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">"mt-3"</span>
</span>
</span>
<span class="text-slate-500">/&gt;</span>
</p>
<p class="font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Card</span>
<span class="text-slate-500">&gt;</span>
</p>
</div>
</div>
</div>
</div>
</div>
);
};

export default Center;
Copy link

Choose a reason for hiding this comment

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

The Center component is well-structured with proper use of Tailwind CSS classes. However, ensure that the class names like class are replaced with className to comply with JSX syntax.

- <div class="relative rounded-lg bg-slate-900 p-2  ">
+ <div className="relative rounded-lg bg-slate-900 p-2  ">

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.

Suggested change
import React from "react";
import Image from "next/image";
import { Inter } from "next/font/google";
import styles from "@/styles/Home.module.css";
import image from "./test.png";
const inter = Inter({ subsets: ["latin"] });
const Center = () => {
return (
<div className={inter.className}>
<div className={styles.testca}>
<div className={styles.data}>
<div className={styles.details1}>
<p>An Open Source Comprehensive Test Case Generator</p>
</div>
<div className={styles.author}>
<a
href="https://www.linkedin.com/in/ank1traj/"
target="_blank"
rel="noopener noreferrer">
By Ankit Raj
</a>
</div>
</div>
<div className={styles.imag}>
<div class="relative rounded-lg bg-slate-900 p-2 ">
<div class="relative flex text-center">
<div class="flex pl-3.5 pt-3">
<svg
viewBox="0 0 24 24"
fill="currentColor"
class="-ml-0.5 mr-1.5 h-3 w-3 text-red-500/20"
>
<circle r="12" cy="12" cx="12"></circle>
</svg>
<svg
viewBox="0 0 24 24"
fill="currentColor"
class="-ml-0.75 mr-1.5 h-3 w-3 text-yellow-500/20"
>
<circle r="12" cy="12" cx="12"></circle>
</svg>
<svg
viewBox="0 0 24 24"
fill="currentColor"
class="-ml-0.75 mr-1.5 h-3 w-3 text-green-500/20"
>
<circle r="12" cy="12" cx="12"></circle>
</svg>
</div>
<span class="absolute inset-x-0 top-2 text text-slate-500">
</span>
</div>
<div class="mt-5 space-y-1.5 px-5 pb-10">
<p class="mt-4 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Card</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">
Testcase case generator
</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal leading-4 tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Event</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">Codepeak'23</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Event</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Flex</span>
<span class="ml-2 text-violet-400">
className<span class="text-slate-500">=</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">Owner</span>
</span>
</span>
<span class="text-slate-500">&gt;</span>
<span class="relative text-blue-400">AnkitRaj</span>
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Flex</span>&gt;
</p>
<p class="ml-6 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Bold</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">32%</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Bold</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">Open Sourced</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-6 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">$ 223,328</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Flex</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal leading-4 tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">ProgressBar</span>
<span class="ml-2 text-violet-400">
value<span class="text-slate-500">=</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">{32}</span>
</span>
</span>
<span class="ml-2 text-violet-400">
className<span class="text-slate-500">=</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">"mt-3"</span>
</span>
</span>
<span class="text-slate-500">/&gt;</span>
</p>
<p class="font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Card</span>
<span class="text-slate-500">&gt;</span>
</p>
</div>
</div>
</div>
</div>
</div>
);
};
export default Center;
import React from "react";
import Image from "next/image";
import { Inter } from "next/font/google";
import styles from "@/styles/Home.module.css";
import image from "./test.png";
const inter = Inter({ subsets: ["latin"] });
const Center = () => {
return (
<div className={inter.className}>
<div className={styles.testca}>
<div className={styles.data}>
<div className={styles.details1}>
<p>An Open Source Comprehensive Test Case Generator</p>
</div>
<div className={styles.author}>
<a
href="https://www.linkedin.com/in/ank1traj/"
target="_blank"
rel="noopener noreferrer">
By Ankit Raj
</a>
</div>
</div>
<div className={styles.imag}>
<div className="relative rounded-lg bg-slate-900 p-2 ">
<div class="relative flex text-center">
<div class="flex pl-3.5 pt-3">
<svg
viewBox="0 0 24 24"
fill="currentColor"
class="-ml-0.5 mr-1.5 h-3 w-3 text-red-500/20"
>
<circle r="12" cy="12" cx="12"></circle>
</svg>
<svg
viewBox="0 0 24 24"
fill="currentColor"
class="-ml-0.75 mr-1.5 h-3 w-3 text-yellow-500/20"
>
<circle r="12" cy="12" cx="12"></circle>
</svg>
<svg
viewBox="0 0 24 24"
fill="currentColor"
class="-ml-0.75 mr-1.5 h-3 w-3 text-green-500/20"
>
<circle r="12" cy="12" cx="12"></circle>
</svg>
</div>
<span class="absolute inset-x-0 top-2 text text-slate-500">
</span>
</div>
<div class="mt-5 space-y-1.5 px-5 pb-10">
<p class="mt-4 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Card</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">
Testcase case generator
</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal leading-4 tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Event</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">Codepeak'23</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Event</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Flex</span>
<span class="ml-2 text-violet-400">
className<span class="text-slate-500">=</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">Owner</span>
</span>
</span>
<span class="text-slate-500">&gt;</span>
<span class="relative text-blue-400">AnkitRaj</span>
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Flex</span>&gt;
</p>
<p class="ml-6 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Bold</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">32%</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Bold</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">Open Sourced</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-6 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">$ 223,328</span>
</span>
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Text</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Flex</span>
<span class="text-slate-500">&gt;</span>
</p>
<p class="ml-3 font-mono text font-normal leading-4 tracking-wide text-violet-400">
<span class="text-slate-500">&lt;</span>
<span class="text-pink-400">ProgressBar</span>
<span class="ml-2 text-violet-400">
value<span class="text-slate-500">=</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">{32}</span>
</span>
</span>
<span class="ml-2 text-violet-400">
className<span class="text-slate-500">=</span>
<span class="relative inline-block px-1 before:absolute before:-inset-0.5 before:block before:rounded before:bg-blue-500/10">
<span class="relative text-blue-400">"mt-3"</span>
</span>
</span>
<span class="text-slate-500">/&gt;</span>
</p>
<p class="font-mono text font-normal tracking-wide text-violet-400">
<span class="text-slate-500">&lt;/</span>
<span class="text-pink-400">Card</span>
<span class="text-slate-500">&gt;</span>
</p>
</div>
</div>
</div>
</div>
</div>
);
};
export default Center;

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d803123 and c13690b.
Files selected for processing (2)
  • pages/Center.js (1 hunks)
  • pages/index.js (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • pages/Center.js
  • pages/index.js

@GAGANRAGHAV
Copy link
Author

sir what change should i make to deploy preview on vercel

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between c13690b and 3c252fe.
Files selected for processing (1)
  • pages/Center.js (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • pages/Center.js

@ank1traj
Copy link

sir what change should i make to deploy preview on vercel

Vercel is getting failed due to this issue Module not found: Can't resolve './test.png'. Please upload the file too.

pages/Center.js Outdated
import Image from "next/image";
import { Inter } from "next/font/google";
import styles from "@/styles/Home.module.css";
import image from "./test.png";

Choose a reason for hiding this comment

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

@GAGANRAGHAV Where is this file?

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.

Review Status

Actionable comments generated: 3

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 3c252fe and ac1c93c.
Files selected for processing (2)
  • pages/Center.js (1 hunks)
  • styles/Home.module.css (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • pages/Center.js
Additional comments: 6
styles/Home.module.css (6)
  • 21-28: The media query for .testca correctly changes the flex direction to column on smaller screens. This is a good responsive design practice.

  • 29-37: The .data class specifies a max-width of 50% which may cause layout issues on smaller screens. Verify that this width is appropriate across all screen sizes.

  • 232-235: The .card class has updated dimensions. Ensure that these new dimensions do not break the layout in any context where .card is used.

  • 237-241: The .card2 class has been given a new background color and padding. Verify that the new background color maintains sufficient contrast with the text for accessibility.

  • 243-246: The hover effect on .card2 changes the border-radius. Ensure that this effect is consistent with the design language of the site.

  • 247-249: The hover effect on .card adds a shadow. This is a common UI pattern for indicating interactivity, which is good for user experience.

Comment on lines +11 to +19
.testca{

display: flex;
align-items: center;
justify-content: center;
margin: 50px;
margin-bottom: 300px;
padding: 50px 20px;
}
Copy link

Choose a reason for hiding this comment

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

The .testca class has inconsistent vertical margins which may not be intentional. Consider using a consistent margin shorthand property.

-  margin: 50px;
-  margin-bottom: 300px;
+  margin: 50px 50px 300px;

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.

Suggested change
.testca{
display: flex;
align-items: center;
justify-content: center;
margin: 50px;
margin-bottom: 300px;
padding: 50px 20px;
}
.testca{
display: flex;
align-items: center;
justify-content: center;
margin: 50px 50px 300px;
padding: 50px 20px;
}

Comment on lines +39 to +41
.author a{
font-size: 20px;
}
Copy link

Choose a reason for hiding this comment

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

The .author a class only sets the font size. If this is the only style needed, it's fine. Otherwise, consider adding more styles or consolidating with other classes for better maintainability.

Comment on lines +42 to +49
.imag{

max-width: 50%;
display: flex;
justify-content: center;


}
Copy link

Choose a reason for hiding this comment

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

The .imag class has redundant display: flex; and justify-content: center; properties, which are already defined in the .testca class. Consider removing the redundancy if .imag is always used with .testca.

-  display: flex;
-  justify-content: center;

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.

Suggested change
.imag{
max-width: 50%;
display: flex;
justify-content: center;
}
.imag{
max-width: 50%;
}

@GAGANRAGHAV
Copy link
Author

@ank1traj sir made the changes.

@GAGANRAGHAV
Copy link
Author

sir please add the codepeak'23 labels as i'm contributing in it

@ank1traj
Copy link

@GAGANRAGHAV please have a look into the UI. color palette is not good.

@GAGANRAGHAV
Copy link
Author

Sir can you send a screenshot of how it's looking or colour palette i should try

@ank1traj
Copy link

Sir can you send a screenshot of how it's looking or colour palette i should try

I changed the home page color. Please stick with that only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants