Skip to content

fix: resolve footer alignment issues (#31) - #34

Closed
ankitkr104 wants to merge 2 commits into
DjedAlliance:mainfrom
ankitkr104:fix/footer-alignment-issue-31-clean
Closed

fix: resolve footer alignment issues (#31)#34
ankitkr104 wants to merge 2 commits into
DjedAlliance:mainfrom
ankitkr104:fix/footer-alignment-issue-31-clean

Conversation

@ankitkr104

@ankitkr104 ankitkr104 commented Feb 26, 2026

Copy link
Copy Markdown
Contributor
  • Remove side gaps and ensure full-width coverage
  • Fix uneven spacing between footer sections
  • Align text and icons properly
  • Reduce footer height for better proportions
  • Add consistent padding and gap spacing
  • Implement responsive layout for mobile devices
  • Style social icons with glass effect matching navbar
  • Ensure consistent layout across different screen sizes

Fixes #31

Screenshots:


Djed image pr

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 complete footer styling with copyright, brand, and social media sections.
    • Implemented interactive hover effects for social icons with visual feedback.
    • Added responsive design that reorganizes footer layout for mobile devices.

Review Change Stack

- Remove side gaps and ensure full-width coverage
- Fix uneven spacing between footer sections
- Align text and icons properly
- Reduce footer height for better proportions
- Add consistent padding and gap spacing
- Implement responsive layout for mobile devices
- Style social icons with glass effect matching navbar
- Ensure consistent layout across different screen sizes

Fixes DjedAlliance#31
@coderabbitai

coderabbitai Bot commented Feb 26, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 46c98dfd-5c7c-4cf8-97bb-7e59e7314716

📥 Commits

Reviewing files that changed from the base of the PR and between 2645958 and 465d901.

📒 Files selected for processing (1)
  • src/App.css

📝 Walkthrough

Walkthrough

This PR adds comprehensive footer styling to src/App.css, introducing a new footer container with styled content sections, brand/title elements, and interactive social icon buttons. Mobile responsiveness is included via a media query that reorganizes the footer into a centered vertical layout for screens ≤768px.

Changes

Footer Styling

Layer / File(s) Summary
Footer container and element styling
src/App.css
Brace alignment adjustment and footer styling for the container, content, brand/title text, and social icon buttons with hover effects, borders, shadows, and image sizing.
Mobile responsive footer layout
src/App.css
Mobile media query (max-width: 768px) adjusts footer layout to a centered vertical stack and reorders copyright, brand, and social sections via flexbox order property.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • Zahnentferner

Poem

🐰 A footer now graces the page so fine,
With spacing and style in perfect line,
On mobile it bends, responsive and true,
Social buttons gleam in every hue! ✨
The rabbit hops by with CSS cheer,
This footer's alignment is crystal clear! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'fix: resolve footer alignment issues (#31)' accurately reflects the main change—addressing footer alignment problems—and is clear and concise.
Linked Issues check ✅ Passed The PR implements CSS styling to address all footer alignment objectives: fixes spacing, aligns text/icons, ensures responsive layout, and matches styling requirements from issue #31.
Out of Scope Changes check ✅ Passed All 100 lines of added CSS in App.css relate directly to footer styling and alignment, staying within the scope of issue #31 objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

src/App.css

Parsing error: Expression expected.


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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

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 (2)
src/App.css (1)

456-480: Consider extracting shared social icon styles.

The .footer-social a, .footer-social a:hover, and .footer-social img rules are nearly identical to .navbar-social a (lines 231-255). Consider extracting these into a shared utility class to reduce duplication.

♻️ Example shared class approach
/* Shared social icon button styles */
.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: rgba(243, 193, 129, 0.1);
  border: 1px solid rgba(243, 193, 129, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon-btn:hover {
  background: rgba(243, 193, 129, 0.2);
  border-color: rgba(243, 193, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 193, 129, 0.3);
}

.social-icon-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

Then apply social-icon-btn class to both navbar and footer social links.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/App.css` around lines 456 - 480, Extract the duplicated rules used by
.footer-social a, .footer-social a:hover, .footer-social img and the similar
.navbar-social a block into a shared utility class (e.g., .social-icon-btn),
update the markup/classes for the navbar and footer social link anchors to use
that class, and remove the duplicate CSS blocks; ensure the shared class
contains the base styles (display, size, padding, background, border,
border-radius, transition), the :hover variant contains the hover transforms,
border-color and box-shadow, and an img rule for sizing/object-fit so both
navbar and footer use the same styles.
src/components/pages/footer/Footer.tsx (1)

12-12: Consider adding width/height attributes to prevent layout shift.

Adding explicit width and height attributes helps browsers reserve space before images load, reducing Cumulative Layout Shift (CLS).

♻️ Example
-				<img src={Logo} alt="Djed Alliance logo" />
+				<img src={Logo} alt="Djed Alliance logo" width={32} height={32} />

Similarly for social icons (width/height of 20).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/pages/footer/Footer.tsx` at line 12, Add explicit width and
height attributes to the <img src={Logo} alt="Djed Alliance logo" /> element in
Footer.tsx to prevent layout shift (set appropriate pixel values matching the
actual asset); also add width={20} height={20} (or equivalent CSS inline size
attributes) to the social icon image elements/components used in the footer so
each icon reserves space before loading. Ensure values match the real image
dimensions or intended display size and update any JSX props (e.g., <img>
attributes or icon props) rather than relying solely on external CSS.
🤖 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/App.css`:
- Line 424: The font-family declaration that uses a quoted Montserrat triggers
stylelint's font-family-name-quotes rule; update the font-family property that
currently lists Montserrat in quotes to use the unquoted Montserrat while
keeping the existing sans-serif fallback so the declaration uses the unquoted
font family name.

---

Nitpick comments:
In `@src/App.css`:
- Around line 456-480: Extract the duplicated rules used by .footer-social a,
.footer-social a:hover, .footer-social img and the similar .navbar-social a
block into a shared utility class (e.g., .social-icon-btn), update the
markup/classes for the navbar and footer social link anchors to use that class,
and remove the duplicate CSS blocks; ensure the shared class contains the base
styles (display, size, padding, background, border, border-radius, transition),
the :hover variant contains the hover transforms, border-color and box-shadow,
and an img rule for sizing/object-fit so both navbar and footer use the same
styles.

In `@src/components/pages/footer/Footer.tsx`:
- Line 12: Add explicit width and height attributes to the <img src={Logo}
alt="Djed Alliance logo" /> element in Footer.tsx to prevent layout shift (set
appropriate pixel values matching the actual asset); also add width={20}
height={20} (or equivalent CSS inline size attributes) to the social icon image
elements/components used in the footer so each icon reserves space before
loading. Ensure values match the real image dimensions or intended display size
and update any JSX props (e.g., <img> attributes or icon props) rather than
relying solely on external CSS.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7da6246 and 2645958.

📒 Files selected for processing (2)
  • src/App.css
  • src/components/pages/footer/Footer.tsx

Comment thread src/App.css
}

.footer-copyright {
font-family: 'Montserrat', sans-serif;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Remove quotes around font family name.

Stylelint reports font-family-name-quotes error. Per CSS conventions, generic font family names like Montserrat should not be quoted when they don't contain special characters.

🔧 Proposed fix
 .footer-copyright {
-  font-family: 'Montserrat', sans-serif;
+  font-family: Montserrat, sans-serif;
   font-size: 14px;
   color: `#F9EBDB`;
   margin: 0;
 }
📝 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.

Suggested change
font-family: 'Montserrat', sans-serif;
font-family: Montserrat, sans-serif;
🧰 Tools
🪛 Stylelint (17.3.0)

[error] 424-424: Unexpected quotes around "Montserrat" (font-family-name-quotes)

(font-family-name-quotes)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/App.css` at line 424, The font-family declaration that uses a quoted
Montserrat triggers stylelint's font-family-name-quotes rule; update the
font-family property that currently lists Montserrat in quotes to use the
unquoted Montserrat while keeping the existing sans-serif fallback so the
declaration uses the unquoted font family name.

@reach2saksham

Copy link
Copy Markdown
Contributor

Hi @ankitkr104 ,

Please cross check #33

Just a suggestion from my side, since the website is developed natively using tailwind css, using basic css and classes for simple feats and fixes like glass effect and alignment by removing the original tailwind css and introducing css based classes would be a un-fruitful approach for the future of this website and will also reduce it's maintainability by abnormal increment in code for small things.

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.

UI/UX: Footer Alignment Issue

3 participants