Skip to content

Commit

Permalink
title helmate use
Browse files Browse the repository at this point in the history
  • Loading branch information
saagor16 committed Apr 14, 2024
1 parent 954b203 commit 6388e09
Show file tree
Hide file tree
Showing 9 changed files with 176 additions and 3 deletions.
143 changes: 142 additions & 1 deletion package-lock.json

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

10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,25 @@
"preview": "vite preview"
},
"dependencies": {
"animate.css": "^4.1.1",
"aos": "^2.3.4",
"firebase": "^10.10.0",
"leaflet": "^1.9.4",
"localforage": "^1.10.0",
"match-sorter": "^6.3.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"react-hook-form": "^7.51.3",
"react-leaflet": "^4.2.1",
"react-loading": "^2.0.3",
"react-router-dom": "^6.22.3",
"react-toastify": "^10.0.5",
"sort-by": "^1.2.0"
"sort-by": "^1.2.0",
"swiper": "^11.1.1"
},
"devDependencies": {
"@types/leaflet": "^1.9.10",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
Expand Down
2 changes: 2 additions & 0 deletions src/Error/Error.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Link } from "react-router-dom";
import PageTitle from "../PageTitle/PageTitle";

const Error = () => {
return (
<div>
<PageTitle title="Error"></PageTitle>
<section className="flex items-center h-full lg:h-[720px] sm:p-16 bg-gray-300 text-black mt-20">
<div className="container flex flex-col items-center justify-center px-5 mx-auto my-8 space-y-8 text-center sm:max-w-md">
<svg
Expand Down
2 changes: 2 additions & 0 deletions src/Home/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import PageTitle from "../PageTitle/PageTitle";
import Banner from "./Banner";
import Card from "./Card";

const Home = () => {
return (
<div>
<PageTitle title="Home"></PageTitle>
<div className="mt-10">
<Banner></Banner>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Link, useLocation, useNavigate } from "react-router-dom";
import { AuthContext } from "../providers/AuthProvider";
import { toast } from "react-toastify";
import 'react-toastify/dist/ReactToastify.css';
import PageTitle from "../PageTitle/PageTitle";

const Login = () => {
const { signIn, googleLogin, githubLogin } = useContext(AuthContext);
Expand Down Expand Up @@ -42,6 +43,7 @@ const Login = () => {

return (
<div className="md:w-3/4 lg:w-1/2 border rounded-2xl p-2 mx-auto my-10">
<PageTitle title="Login"></PageTitle>
<form
onSubmit={handleLogin}>
<p className="text-3xl text-center mb-4 font-bold text-primary underline">
Expand Down
13 changes: 13 additions & 0 deletions src/PageTitle/PageTitle.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable react/prop-types */
import {Helmet} from "react-helmet";
const PageTitle = ({title}) => {
return (
<div>
<Helmet>
<title>{title}</title>
</Helmet>
</div>
);
};

export default PageTitle;
3 changes: 2 additions & 1 deletion src/Register/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Link } from "react-router-dom";
import { AuthContext } from "../providers/AuthProvider";
import { toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import PageTitle from "../PageTitle/PageTitle";

const Register = () => {
const {registerUser, updateProfileInfo} = useContext(AuthContext);
Expand Down Expand Up @@ -46,7 +47,7 @@ const Register = () => {
onSubmit={handleRegister}
className=" md:w-3/4 lg:w-1/2 border rounded-2xl p-4 mx-auto my-10"
>
{/* <PageTitle title="pPortal-register"></PageTitle> */}
<PageTitle title="Register"></PageTitle>
<p className="text-3xl text-center mb-4 font-bold text-primary underline">
Please Register
</p>
Expand Down
2 changes: 2 additions & 0 deletions src/UpdateProfile/UpdateProfile.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useContext, useState } from "react";
import { AuthContext } from "../providers/AuthProvider";
import PageTitle from "../PageTitle/PageTitle";

const UpdateProfile = () => {
const { user, updateProfileInfo } = useContext(AuthContext);
Expand All @@ -26,6 +27,7 @@ const UpdateProfile = () => {

return (
<div className="border-2 border-violet-700 rounded-xl mt-5 lg:mt-10 p-5 lg:p-10 w-full lg:w-96 mx-auto">
<PageTitle title="UpdateProfile"></PageTitle>
<form className="flex gap-5 flex-col justify-center items-center" onSubmit={handleUpdateProfile}>
<h1 className="font-bold text-4xl underline text-primary">My Profile</h1>
<div>
Expand Down
2 changes: 2 additions & 0 deletions src/UserProfile/Profile.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useContext } from "react";
import { AuthContext } from "../providers/AuthProvider";
import PageTitle from "../PageTitle/PageTitle";

const Profile = () => {
const { user, userProfile } = useContext(AuthContext);
Expand All @@ -12,6 +13,7 @@ const Profile = () => {

return (
<div className="container mx-auto mt-10 ">
<PageTitle title="Profile"></PageTitle>
<form className="flex gap-5 flex-col justify-center items-center" onSubmit={handleUserProfile}>
<div className="card w-3/4 lg:w-96 h-full shadow-xl bg-cyan-500 hover:bg-cyan-600">
<figure className="px-10 pt-10">
Expand Down

0 comments on commit 6388e09

Please sign in to comment.