Skip to content

feat: add AboutUs component#43

Closed
BIA3IA wants to merge 2 commits intomainfrom
bianca/aboutUs
Closed

feat: add AboutUs component#43
BIA3IA wants to merge 2 commits intomainfrom
bianca/aboutUs

Conversation

@BIA3IA
Copy link
Contributor

@BIA3IA BIA3IA commented Mar 12, 2026

closes #20

@BIA3IA BIA3IA requested review from lorenzocorallo and toto04 March 12, 2026 15:47
@coderabbitai
Copy link

coderabbitai bot commented Mar 12, 2026

Walkthrough

The Home page component is refactored to delegate rendering to a newly created AboutUs component. The AboutUs component displays a centered section with Italian headline text featuring gradient styling and an "About us" button, replacing the previous Home page content.

Changes

Cohort / File(s) Summary
Home Page Refactoring
src/app/page.tsx, src/components/home/about-us.tsx
Replaced Home page UI with a new AboutUs component. The AboutUs component renders a full-width section with centered, multi-line Italian headline text featuring gradient styling on select spans and a primary Button labeled "About us". Home page now simply imports and renders this component instead of inline JSX.
🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: add AboutUs component' directly matches the main change—introduction of a new AboutUs component as shown in the code changes.
Linked Issues check ✅ Passed The PR closes issue #20 (Home - about) by introducing the AboutUs component and integrating it into the Home page, meeting the objective to add an 'about' section.
Out of Scope Changes check ✅ Passed All changes are in-scope: the new AboutUs component and Home page refactor directly address the linked issue #20 without unrelated modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can generate a title for your PR based on the changes.

Add @coderabbitai placeholder anywhere in the title of your PR and CodeRabbit will replace it with a title based on the changes in the PR. You can change the placeholder by changing the reviews.auto_title_placeholder setting.

@BIA3IA BIA3IA marked this pull request as ready for review March 15, 2026 11:38
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

🧹 Nitpick comments (1)
src/components/home/about-us.tsx (1)

9-26: Consider accessibility and i18n consistency.

A few observations:

  1. Language mixing: The headline is in Italian but the button text is in English ("About us"). Consider localizing the button text to Italian (e.g., "Chi siamo") for consistency, or implementing proper i18n.

  2. Empty span for layout: Line 23 uses an empty <span /> as a layout placeholder. While functional, using CSS to handle this case might be cleaner (e.g., col-start-2 on the gradient span).

♻️ Alternative for the empty span
-          <div className="grid grid-cols-[auto_auto] justify-center">
-            <span />
-            <span className={gradientText}>community.</span>
-          </div>
+          <div className="flex justify-center">
+            <span className={gradientText}>community.</span>
+          </div>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/home/about-us.tsx` around lines 9 - 26, The headline mixes
Italian copy while the button reads "About us" and an empty <span /> is used for
layout; update the button text to Italian (e.g., "Chi siamo") or wire it to your
i18n utility so language is consistent, and remove the empty placeholder span by
adjusting layout CSS on the gradient span (use grid column positioning like
col-start-2 / justify-center or similar) instead of the empty element; target
the JSX in the about-us.tsx component and the element using the gradientText
class to apply the CSS change.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/components/home/about-us.tsx`:
- Around line 28-30: The Button component currently has no interaction or
semantic intent; update the Button (component name: Button in
src/components/home/about-us.tsx) to either act as a navigation link using
asChild with Next.js Link (use Button with asChild wrapping Link to "/about") or
add an explicit onClick handler if it triggers an action, and always include
type="button" to avoid accidental form submissions; if this is placeholder work,
add a TODO comment and set type="button" to make it safe.

---

Nitpick comments:
In `@src/components/home/about-us.tsx`:
- Around line 9-26: The headline mixes Italian copy while the button reads
"About us" and an empty <span /> is used for layout; update the button text to
Italian (e.g., "Chi siamo") or wire it to your i18n utility so language is
consistent, and remove the empty placeholder span by adjusting layout CSS on the
gradient span (use grid column positioning like col-start-2 / justify-center or
similar) instead of the empty element; target the JSX in the about-us.tsx
component and the element using the gradientText class to apply the CSS change.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 620f7f40-1da7-46e1-b703-cc446f4c7819

📥 Commits

Reviewing files that changed from the base of the PR and between 135767a and 59d18ff.

📒 Files selected for processing (2)
  • src/app/page.tsx
  • src/components/home/about-us.tsx

Comment on lines +28 to +30
<Button variant="primary" size="lg">
About us
</Button>
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Button lacks interactivity and semantics.

The button has no onClick handler, href, or type attribute, making it non-functional. For a call-to-action that navigates somewhere, consider using asChild with a Link component, or add an onClick handler if it triggers an action.

Additionally, consider adding type="button" to prevent unintended form submissions if this component is ever used within a form context.

💡 Suggested approach for navigation

If this should link to an "About Us" page:

import Link from "next/link"

// ...

<Button variant="primary" size="lg" asChild>
  <Link href="/about">About us</Link>
</Button>

Or if it's a placeholder for now, consider adding a TODO comment:

{/* TODO: Add navigation or click handler */}
<Button variant="primary" size="lg" type="button">
  About us
</Button>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/home/about-us.tsx` around lines 28 - 30, The Button component
currently has no interaction or semantic intent; update the Button (component
name: Button in src/components/home/about-us.tsx) to either act as a navigation
link using asChild with Next.js Link (use Button with asChild wrapping Link to
"/about") or add an explicit onClick handler if it triggers an action, and
always include type="button" to avoid accidental form submissions; if this is
placeholder work, add a TODO comment and set type="button" to make it safe.

@lorenzocorallo
Copy link
Member

Will change

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.

Home - about

2 participants