Skip to content

SEO Improvements #1832

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
wants to merge 4 commits into
base: dev-fixes
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@
<meta
name="description"
content="µLearn is a synergic philosophy of education, with a culture of mutual learning through micro groups of peers. µLearn is here to assist you in breaking through the echo chambers and free you from the shackles that have you grounded."
data-react-helmet="true"
/>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />

<meta property="og:title" content="µLearn" />
<meta property="og:site_name" content="µLearn" />
<meta property="og:url" content="https://app.mulearn.org/" />
<meta property="og:title" content="µLearn" data-react-helmet="true" />
<meta property="og:site_name" content="µLearn"/>
<meta property="og:url" content="https://app.mulearn.org/" data-react-helmet="true" />
<meta
property="og:description"
content="µLearn is a synergic philosophy of education, with a culture of mutual learning through micro groups of peers. µLearn is here to assist you in breaking through the echo chambers and free you from the shackles that have you grounded."
data-react-helmet="true"
/>
<meta property="og:image" itemprop="image" content="/assets/µLearn.png" />
<meta name="author" content="µLearn" />
Expand Down Expand Up @@ -77,7 +79,6 @@
<title>µLearn</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script
Expand Down
81 changes: 80 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"react-fast-marquee": "^1.6.4",
"react-google-charts": "^4.0.0",
"react-helmet": "^6.1.0",
"react-helmet-async": "^2.0.5",
"react-hot-toast": "^2.4.1",
"react-icons": "^4.12.0",
"react-qr-code": "^2.0.11",
Expand Down Expand Up @@ -77,6 +78,7 @@
"typescript": "^4.9.3",
"vite": "^6.1.0",
"vite-bundle-visualizer": "^0.10.0",
"vite-plugin-eslint": "^1.8.1"
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-sitemap": "^0.7.1"
}
}
3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

15 changes: 0 additions & 15 deletions public/sitemap.xml

This file was deleted.

4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ function App() {
{ path: "register/", children: [{ path: "", element: <RegisterPage /> }] },
{ path: "login", element: <SignIn /> },
{ path: "forgot-password", element: <ForgetPassword /> },
{ path: "reset-password", element: <ResetPassword /> },
// { path: "reset-password", element: <ResetPassword /> },
{ path: "/register/interests", element: <UserInterest /> },
{ path: "/register/organization", element: <CollegePage /> },
{ path: "/register/pathfinder", element: <PathFinder /> },
{ path: "/signin", element: <SignIn /> },
// { path: "/signin", element: <SignIn /> },
{ path: "register/about", element: <Rolepage /> },
{
path: "/dashboard",
Expand Down
5 changes: 4 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ import ReactDOM from "react-dom/client";
import App from "./App";
import { ChakraProvider } from "@chakra-ui/react";
import ErrorBoundary from "./components/ErrorBoundary";
import { HelmetProvider } from "react-helmet-async";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<ChakraProvider>
<ErrorBoundary>
<App />
<HelmetProvider>
<App />
</HelmetProvider>
</ErrorBoundary>
</ChakraProvider>
</React.StrictMode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { PowerfulButton } from "@/MuLearnComponents/MuButtons/MuButton";
import { forgetPassword } from "../../../services/apis";
import styles from "./ForgetPassword.module.css";
import toast from "react-hot-toast";
import { Helmet } from "react-helmet";

const ForgetPassword = () => {
const [showLoader, setShowLoader] = useState(false);
Expand All @@ -32,6 +33,19 @@ const ForgetPassword = () => {

return (
<>
<Helmet>
<title>Forgot Password | µLearn</title>
<meta
name="description"
content="Reset your µLearn account password."
/>
<meta property="og:title" content="Forgot Password | µLearn" />
<meta property="og:url" content="https://app.mulearn.org/forgot-password" />
<meta
property="og:description"
content="Reset your µLearn account password."
/>
</Helmet>
<OnboardingTemplate>
<OnboardingHeader
title={"Forgot Password"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useEffect, useState } from "react";
import { useNavigate, useSearchParams } from "react-router-dom";
import { submitUserData } from "../../../services/newOnboardingApis";
import AccountCreationComponent from "../../../components/AccountCreation/AccountCreationComponent";
import { Helmet } from "react-helmet";

export default function RegisterPage() {
const navigate = useNavigate();
Expand All @@ -23,13 +24,28 @@ export default function RegisterPage() {
};

return (
<AccountCreationComponent
ruri={ruri ?? undefined}
isLoading={isLoading}
setIsLoading={setIsLoading}
dwmsParam={param ?? undefined}
refferalId={referralId ?? undefined}
onContinue={handleAccountCreation}
/>
<>
<Helmet>
<title>Register | µLearn</title>
<meta
name="description"
content="Join the µLearn movement and become part of a vibrant network of learners. Register now to unlock new possibilities through collaboration and growth."
/>
<meta property="og:title" content="Register | µLearn"/>
<meta property="og:url" content="https://app.mulearn.org/register"/>
<meta
property="og:description"
content="Join the µLearn movement and become part of a vibrant network of learners. Register now to unlock new possibilities through collaboration and growth."
/>
</Helmet>
<AccountCreationComponent
ruri={ruri ?? undefined}
isLoading={isLoading}
setIsLoading={setIsLoading}
dwmsParam={param ?? undefined}
refferalId={referralId ?? undefined}
onContinue={handleAccountCreation}
/>
</>
);
}
Loading