Skip to content

feat: Hero section UI enhancement by central alignments#42

Open
reach2saksham wants to merge 1 commit intoDjedAlliance:mainfrom
reach2saksham:feature/hero-revamp
Open

feat: Hero section UI enhancement by central alignments#42
reach2saksham wants to merge 1 commit intoDjedAlliance:mainfrom
reach2saksham:feature/hero-revamp

Conversation

@reach2saksham
Copy link
Contributor

@reach2saksham reach2saksham commented Mar 2, 2026

Addressed Issues:

Fixes #41

Screenshots/Recordings:

image image

Additional Notes:

This PR introduces a modern redesign of the Hero section.

Changes include:

  • Enlarged main logo centred as a background watermark
  • Reduced logo opacity (~4%) for subtle branding presence
  • Fully centred heading, subtitle, and CTA button
  • Improved visual hierarchy and layout balance
  • Maintained full responsiveness across breakpoints

The new layout enhances first impressions, strengthens brand identity, and creates a cleaner, more modern landing experience.

Checklist

  • My PR addresses a single issue, fixes a single bug or makes a single improvement.
  • My code follows the project's code style and conventions.
  • If applicable, I have made corresponding changes or additions to the documentation.
  • If applicable, I have made corresponding changes or additions to tests.
  • My changes generate no new warnings or errors.
  • I have joined the Stability Nexus's Discord server and I will share a link to this PR with the project maintainers there.
  • I have read the Contribution Guidelines.
  • Once I submit my PR, CodeRabbit AI will automatically review it and I will address CodeRabbit's comments.

Summary by CodeRabbit

  • Style
    • Added decorative background image to the home section.
    • Redesigned hero layout with centered text and improved typography.
    • Enhanced visual hierarchy with responsive design adjustments.

@coderabbitai
Copy link

coderabbitai bot commented Mar 2, 2026

📝 Walkthrough

Walkthrough

The Home component's hero section has been redesigned to center content vertically and horizontally, introducing a low-opacity background image as a decorative element while removing the previously positioned right-side logo.

Changes

Cohort / File(s) Summary
Hero Section UI Redesign
src/components/pages/home/Home.tsx
Centered hero content with flex column layout; added low-opacity Alliance.png background image; adjusted typography alignment (h1 and subtitle centered); removed right-side logo div; minor button styling refinements.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested reviewers

  • Zahnentferner

Poem

🐰 A hero so centered, now standing so tall,
With Alliance behind it, a subtle backdrop call,
The logo removed, the layout refined,
A modern, bold vision, so perfectly aligned! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'feat: Hero section UI enhancement by central alignments' directly describes the main change—a redesigned hero section with centered alignment—matching the primary objective in the changeset.
Linked Issues check ✅ Passed All coding objectives from issue #41 are met: enlarged centered logo background with low opacity, centered heading/subtitle, centered CTA button, and maintained responsiveness across breakpoints.
Out of Scope Changes check ✅ Passed All changes are directly aligned with the hero section redesign objectives; no unrelated modifications detected in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

@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.

🧹 Nitpick comments (2)
src/components/pages/home/Home.tsx (2)

22-22: Consider using Tailwind's arbitrary value syntax for height.

The inline style={{ height: '90vh' }} works but mixing inline styles with Tailwind classes reduces consistency. Tailwind supports h-[90vh] for arbitrary values.

♻️ Proposed fix
-<section className="relative flex items-center justify-center bg-transparent my-24 overflow-hidden" id="home" style={{ height: '90vh' }}>
+<section className="relative flex items-center justify-center bg-transparent my-24 overflow-hidden h-[90vh]" id="home">
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/pages/home/Home.tsx` at line 22, Replace the inline style
height in the Home component's section element with Tailwind's arbitrary value
class: remove style={{ height: '90vh' }} and add h-[90vh] to the section's
className (the section element in Home.tsx with id="home"); ensure spacing/order
of classes remains correct and no other inline styles rely on that style.

23-27: Remove ineffective flex classes and improve accessibility for decorative image.

The justify-center items-center classes on line 26 are flexbox properties that have no effect on an <img> element (it's not a flex container). Additionally, since this is a purely decorative background element, the alt text should be empty and aria-hidden="true" added to exclude it from the accessibility tree.

♻️ Proposed fix
 <img
   src="/gallery/Alliance.png"
-  alt="Djed Alliance Logo Background"
-  className="absolute w-[640px] md:w-[768px] lg:w-[900px] max-w-none opacity-[0.04] pointer-events-none select-none p-6 justify-center items-center"
+  alt=""
+  aria-hidden="true"
+  className="absolute w-[640px] md:w-[768px] lg:w-[900px] max-w-none opacity-[0.04] pointer-events-none select-none p-6"
 />
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/pages/home/Home.tsx` around lines 23 - 27, The decorative
background <img> element should be made inaccessible and cleaned of ineffective
flex classes: remove the unused flex-related classes "justify-center" and
"items-center" from the element's className, set its alt attribute to an empty
string (alt="") and add aria-hidden="true" to exclude it from the accessibility
tree; locate the <img src="/gallery/Alliance.png" ... /> instance in Home.tsx
(the image element with className containing "opacity-[0.04] pointer-events-none
select-none") and apply these changes.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/components/pages/home/Home.tsx`:
- Line 22: Replace the inline style height in the Home component's section
element with Tailwind's arbitrary value class: remove style={{ height: '90vh' }}
and add h-[90vh] to the section's className (the section element in Home.tsx
with id="home"); ensure spacing/order of classes remains correct and no other
inline styles rely on that style.
- Around line 23-27: The decorative background <img> element should be made
inaccessible and cleaned of ineffective flex classes: remove the unused
flex-related classes "justify-center" and "items-center" from the element's
className, set its alt attribute to an empty string (alt="") and add
aria-hidden="true" to exclude it from the accessibility tree; locate the <img
src="/gallery/Alliance.png" ... /> instance in Home.tsx (the image element with
className containing "opacity-[0.04] pointer-events-none select-none") and apply
these changes.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between da4bec7 and 978f80d.

📒 Files selected for processing (1)
  • src/components/pages/home/Home.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.

[FEATURE]: Hero section UI enhancement

1 participant