Skip to content

feat: add matricole intro#111

Open
ShaanveerS wants to merge 1 commit into
mainfrom
matricole-intro
Open

feat: add matricole intro#111
ShaanveerS wants to merge 1 commit into
mainfrom
matricole-intro

Conversation

@ShaanveerS
Copy link
Copy Markdown
Collaborator

@ShaanveerS ShaanveerS commented May 13, 2026

fixes #95

Signed-off-by: Shaanveer Singh <shaanver.singh@gmail.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 13, 2026

Review Change Stack

Walkthrough

This PR introduces a new /matricole (freshman) page featuring a dedicated intro component with resource cards and decorative backgrounds. Navigation links in the header menu and hero section are updated to point to the new page.

Changes

Matricole Page Feature

Layer / File(s) Summary
MatricoleIntro component and resources
src/components/matricole/intro.tsx
New component defines a static resources array with titles, descriptions, and icons. ResourceCard renders individual resources inside Glass containers with GradientIcon. MatricoleBackground adds decorative SVG overlays with fixed positioning. MatricoleIntro exports the full section layout combining background, headline, and a responsive grid of resource cards.
Page setup and metadata
src/app/matricole/page.tsx
Adds a Next.js page at /matricole with typed metadata (title and description) that renders MatricoleIntro inside a main wrapper.
Navigation updates
src/components/home/hero.tsx, src/components/header/constants.ts
Hero component imports Link from next/link and refactors the "Sei una matricola?" CTA button to render as a Link to /matricole using the asChild prop. Header menu updates the "Freshman" item href from # to /matricole.
🚥 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 matricole intro' accurately describes the main change: adding a new matricole intro feature with a dedicated page, components, and related updates.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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.

Copy link
Copy Markdown
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: 1

🧹 Nitpick comments (1)
src/components/matricole/intro.tsx (1)

29-46: ⚡ Quick win

Clarify whether ResourceCard should link to destination pages.

The cards display action-oriented descriptions ("Controlla i risultati...", "Tutte le informazioni..."), but currently render as static display components. Header navigation has corresponding items ("Rankings", "Tol Project") pointing to placeholder hrefs, and no destination routes exist yet. Consider either: (1) wrapping cards with links once routes are implemented, or (2) clarifying if these should remain informational only.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/matricole/intro.tsx` around lines 29 - 46, ResourceCard is
currently a static display but uses action-oriented copy; decide whether it
should navigate or stay informational and implement accordingly: add an optional
href?: string to ResourceCardProps and, inside ResourceCard, conditionally wrap
the Glass component with a Next.js <Link> (or an <a> for non-Next projects) when
href is provided, preserving className and accessibility (use role/aria as
needed, target/rel for external links); alternatively, if you intend it to
remain informational, update the copy passed to title/description to remove
imperative phrasing. Update all callers of ResourceCard to pass href when
navigation is desired (e.g., for "Rankings" / "Tol Project") or change the copy
where no route exists.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/matricole/intro.tsx`:
- Around line 48-123: The MatricoleBackground component currently uses a fixed
viewport-width-dependent height (h-[248.3218vw]) and hardcoded style percentages
(e.g., left: "-26.0417%", left: "66.7244%", top: "-10.1142%") which break
responsiveness; update MatricoleBackground to use responsive sizing (replace
h-[248.3218vw] and the inline percentage style values with Tailwind responsive
utilities like sm:, md:, lg: variants or switch to CSS variables/clamp() or
media-query-driven classes), adjust the Image wrapper positioning to provide
alternative values per breakpoint (for the two Image instances and the two
positioned looper containers), and verify visually across mobile/tablet/desktop
to ensure the background scales as intended without overflowing layout.

---

Nitpick comments:
In `@src/components/matricole/intro.tsx`:
- Around line 29-46: ResourceCard is currently a static display but uses
action-oriented copy; decide whether it should navigate or stay informational
and implement accordingly: add an optional href?: string to ResourceCardProps
and, inside ResourceCard, conditionally wrap the Glass component with a Next.js
<Link> (or an <a> for non-Next projects) when href is provided, preserving
className and accessibility (use role/aria as needed, target/rel for external
links); alternatively, if you intend it to remain informational, update the copy
passed to title/description to remove imperative phrasing. Update all callers of
ResourceCard to pass href when navigation is desired (e.g., for "Rankings" /
"Tol Project") or change the copy where no route exists.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 23ca5553-f7d3-441b-ba0a-1f7eb129c707

📥 Commits

Reviewing files that changed from the base of the PR and between f34cf16 and b591dd6.

📒 Files selected for processing (4)
  • src/app/matricole/page.tsx
  • src/components/header/constants.ts
  • src/components/home/hero.tsx
  • src/components/matricole/intro.tsx

Comment thread src/components/matricole/intro.tsx
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.

Matricole - Intro

1 participant