-
Notifications
You must be signed in to change notification settings - Fork 51
feat: improve SEO/a11y, add Contact route, env API URL, 404 page, rob… #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MananGilhotra
wants to merge
1
commit into
Open-Source-Kashmir:main
Choose a base branch
from
MananGilhotra:feat/seo-contact-404
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| User-agent: * | ||
| Allow: / | ||
|
|
||
| Sitemap: https://osk-open-source.netlify.app/sitemap.xml | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
| <url> | ||
| <loc>https://osk-open-source.netlify.app/</loc> | ||
| <priority>1.0</priority> | ||
| </url> | ||
| <url> | ||
| <loc>https://osk-open-source.netlify.app/programs</loc> | ||
| </url> | ||
| <url> | ||
| <loc>https://osk-open-source.netlify.app/mentors</loc> | ||
| </url> | ||
| <url> | ||
| <loc>https://osk-open-source.netlify.app/contributors</loc> | ||
| </url> | ||
| <url> | ||
| <loc>https://osk-open-source.netlify.app/community</loc> | ||
| </url> | ||
| <url> | ||
| <loc>https://osk-open-source.netlify.app/learning</loc> | ||
| </url> | ||
| <url> | ||
| <loc>https://osk-open-source.netlify.app/contact</loc> | ||
| </url> | ||
| </urlset> | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import { Link } from 'react-router-dom' | ||
|
|
||
| export default function NotFound() { | ||
| return ( | ||
| <div className="min-h-[60vh] flex flex-col items-center justify-center text-center px-6"> | ||
| <p className="text-sm font-semibold text-blue-600">404</p> | ||
| <h1 className="mt-2 text-4xl font-bold tracking-tight text-gray-900 dark:text-gray-100">Page not found</h1> | ||
| <p className="mt-2 text-base text-gray-600 dark:text-gray-300">Sorry, we couldn’t find the page you’re looking for.</p> | ||
| <div className="mt-6 flex items-center gap-4"> | ||
| <Link to="/" className="no-underline bg-blue-600 hover:bg-blue-700 text-white px-5 py-2.5 rounded-lg transition"> | ||
| Go back home | ||
| </Link> | ||
| <Link to="/community" className="no-underline text-blue-700 dark:text-blue-400 hover:underline"> | ||
| Visit community | ||
| </Link> | ||
| </div> | ||
| </div> | ||
| ) | ||
| } | ||
|
|
||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Canonical URL should be dynamic per route.
The hardcoded canonical URL will incorrectly apply to all routes (/contact, /programs, etc.), causing all pages to declare the homepage as canonical. This harms SEO by preventing proper indexing of individual pages.
Consider using a dynamic solution:
react-helmetorreact-helmet-asyncto set canonical URLs per route.Example with react-helmet:
🤖 Prompt for AI Agents