Skip to content

Add GitHub link to footer - #63

Open
raj-aryan-official wants to merge 2 commits into
DjedAlliance:mainfrom
raj-aryan-official:feat/ui-improvements
Open

Add GitHub link to footer#63
raj-aryan-official wants to merge 2 commits into
DjedAlliance:mainfrom
raj-aryan-official:feat/ui-improvements

Conversation

@raj-aryan-official

@raj-aryan-official raj-aryan-official commented Mar 30, 2026

Copy link
Copy Markdown

Title: Fix footer GitHub link

Addressed issue:
Fixes #6

What I changed:
I updated the GitHub link in the footer so that it correctly points to the official repository. I also ensured that the link opens in a new tab with the appropriate attributes.

Testing:
I tested the change locally and verified that the link redirects properly.

Notes:
This is a small fix to improve navigation and make sure users are directed to the correct GitHub repository. No other parts of the UI were modified.

Checklist:
This PR addresses a single issue
Code follows the project’s style and conventions
Changes tested locally
No new warnings or errors

Summary by CodeRabbit

  • New Features

    • Added favicon and Apple touch icon support for improved brand visibility
    • Added theme color metadata for enhanced browser UI integration
  • Bug Fixes

    • Fixed GitHub footer link to correct repository URL
    • GitHub link now opens in new tab with proper security handling

@coderabbitai

coderabbitai Bot commented Mar 30, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Added a default Head component supplying favicon and theme-color meta tags; updated the Footer GitHub link URL, corrected its label to "GitHub", and set it to open securely in a new tab.

Changes

Cohort / File(s) Summary
Head component
src/app/head.tsx
Added default-exported Head component that includes favicon link tags and a <meta name="theme-color"> tag.
Footer GitHub Link Update
src/sections/Footer.tsx
Replaced placeholder href with the repository URL, changed label capitalization to "GitHub", and added target="_blank" and rel="noreferrer" for external link security.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • Tanya-ruby

Poem

🐰 I hopped through code both near and far,
A favicon gleams like a tiny star,
The GitHub link now points just right,
Opens safe and bright in the night,
Code carrots crunch with pure delight 🥕✨

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (3 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR partially addresses issue #6: it updates the GitHub link in Footer.tsx with correct href and attributes, but fails to add the required github.svg icon file to src/assets/svg/ directory. Add a properly named github.svg file to src/assets/svg/ directory and import it in Footer.tsx to fully comply with issue #6 requirements.
Out of Scope Changes check ⚠️ Warning The addition of src/app/head.tsx with favicon and theme-color meta tags is out of scope; issue #6 only requires GitHub link updates in the footer. Either remove the Head component changes or create a separate PR for favicon/theme-color setup if those changes are needed.
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 (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add GitHub link to footer' accurately summarizes the main change to src/sections/Footer.tsx, though it omits the addition of the new Head component in src/app/head.tsx.

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

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

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 (1)
src/sections/Footer.tsx (1)

25-32: Consider adding screen reader indication for new tab behavior.

The link opens in a new tab but does not inform screen reader users of this behavior. Adding an aria-label or visually hidden text improves accessibility.

♿ Proposed accessibility improvement
 <a
   href="https://github.com/DjedAlliance/StablePay-LandingPage"
   target="_blank"
   rel="noopener noreferrer"
+  aria-label="GitHub (opens in new tab)"
   className="text-white/70 hover:text-white text-xs sm:text-sm transition"
 >
   GitHub
 </a>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/sections/Footer.tsx` around lines 25 - 32, The GitHub anchor in the
Footer component currently opens a new tab (target="_blank") but lacks
screen-reader indication; update the anchor (the <a> element linking to
"https://github.com/DjedAlliance/StablePay-LandingPage" in Footer.tsx) to
include an accessible cue such as adding an aria-label like "GitHub (opens in
new tab)" or adding a visually hidden span (e.g., className="sr-only") that
reads "opens in new tab" so assistive technologies announce the new-tab
behavior; keep existing target and rel attributes (consider adding noopener if
not present) and ensure the visible text remains "GitHub".
🤖 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/sections/Footer.tsx`:
- Around line 25-32: The anchor element in the Footer component that links to
the GitHub repo uses rel="noreferrer" only; update that <a> (the GitHub link) to
include both noopener and noreferrer (e.g., rel="noopener noreferrer") to ensure
defensive compatibility and explicit opener isolation when target="_blank" is
used.

---

Nitpick comments:
In `@src/sections/Footer.tsx`:
- Around line 25-32: The GitHub anchor in the Footer component currently opens a
new tab (target="_blank") but lacks screen-reader indication; update the anchor
(the <a> element linking to
"https://github.com/DjedAlliance/StablePay-LandingPage" in Footer.tsx) to
include an accessible cue such as adding an aria-label like "GitHub (opens in
new tab)" or adding a visually hidden span (e.g., className="sr-only") that
reads "opens in new tab" so assistive technologies announce the new-tab
behavior; keep existing target and rel attributes (consider adding noopener if
not present) and ensure the visible text remains "GitHub".
🪄 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 82ecca90-307c-4288-bb2b-ca3a0feab5fd

📥 Commits

Reviewing files that changed from the base of the PR and between 072747f and bb23a25.

📒 Files selected for processing (1)
  • src/sections/Footer.tsx

Comment thread src/sections/Footer.tsx

@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: 2

🧹 Nitpick comments (1)
src/app/head.tsx (1)

4-5: Redundant duplicate favicon link.

Lines 4 and 5 both declare rel="icon" pointing to the same file. The sizes="any" attribute on line 5 is the SVG default behavior, making line 5 effectively redundant.

♻️ Proposed simplification
-      <link rel="icon" href="/favicon.svg" />
-      <link rel="icon" href="/favicon.svg" sizes="any" />
+      <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/app/head.tsx` around lines 4 - 5, Remove the redundant duplicate favicon
link: there are two <link rel="icon" href="/favicon.svg" /> entries (one with
sizes="any"); keep a single favicon <link> (either plain or with sizes="any")
and delete the other to avoid duplicate declarations in head.tsx.
🤖 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/head.tsx`:
- Line 6: Replace the SVG apple-touch-icon with a proper PNG asset and add a
size attribute: change the existing <link rel="apple-touch-icon"
href="/favicon.svg" /> usage by linking to a 180x180 PNG (e.g.,
"/apple-touch-icon.png") and include sizes="180x180" to ensure iOS picks the
correct image; you can keep the SVG favicon for browsers but ensure the
apple-touch-icon link and filename reference a generated 180×180 PNG so iOS
home-screen icons render reliably.
- Around line 1-10: Remove the Head component (function Head in head.tsx)
entirely; stop using link/meta tags there and instead rely on file-based icons
by placing favicon.svg next to your app layout so Next automatically serves it
as the favicon; then add an export named viewport in your layout file (export
const viewport = { ... }) to configure the theme color (replacing the meta
theme-color) and, if you need Apple touch support, add a separate apple-icon
file next to the layout and reference it via file-based assets rather than
head.tsx.

---

Nitpick comments:
In `@src/app/head.tsx`:
- Around line 4-5: Remove the redundant duplicate favicon link: there are two
<link rel="icon" href="/favicon.svg" /> entries (one with sizes="any"); keep a
single favicon <link> (either plain or with sizes="any") and delete the other to
avoid duplicate declarations in head.tsx.
🪄 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: ebfe818b-412f-435f-911d-334d89098e52

📥 Commits

Reviewing files that changed from the base of the PR and between bb23a25 and 22d7396.

⛔ Files ignored due to path filters (1)
  • public/favicon.svg is excluded by !**/*.svg
📒 Files selected for processing (1)
  • src/app/head.tsx

Comment thread src/app/head.tsx
Comment thread src/app/head.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.

Add GitHub Label and Link to the Footer

1 participant