Skip to content

Commit 6d0623e

Browse files
committed
redirect alert added
1 parent ed4dfdc commit 6d0623e

File tree

3 files changed

+130
-5
lines changed

3 files changed

+130
-5
lines changed

.firebase/hosting.ZGlzdA.cache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ vite.svg,1746809387923,699a02e0e68a579f687d364bbbe7633161244f35af068220aee37b1b3
22
nightLogo.png,1747751735476,5e93e8ed1e0028c584960b7d84a55ae5c2d734ad02a03d2d6e99a94644672d96
33
logoBGWhite.png,1747751641716,7ac0504e3fd07bff7c87f7d86e8e1ec782b66567a8f40ef5873771067091f6f8
44
favicon.png,1748088818622,13155c80a4e0e6a7f0069b5096613c3a6d5c4371aff439f7480e72f29d792114
5-
index.html,1748100652555,e84aea9b07d97a6236a842f6bbd62fdc1e27f6833269a065ebe7bdb7de00d3de
6-
assets/react-CHdo91hT.svg,1748100652555,1cd6dd18ca8b73ec7518aee45b3597d0d61e8351a87580ab6c4ef3ab6f83ff02
7-
assets/index-BWePIwo9.css,1748100652555,3d2ccaac7d159a75ed40128f16d12145a62aadbce4359f7baaf329b0539ffc3d
8-
assets/index-BQmq1jFa.js,1748100652557,edf5e8baf33816b21b0d7c909b588d99679fdd85633debc33789a0577fe3764e
5+
index.html,1748104323742,2a981076a680eda7b74ab91b7d3cf9729c05ebc106a563f986c44c816e1f558e
6+
assets/react-CHdo91hT.svg,1748104323742,1cd6dd18ca8b73ec7518aee45b3597d0d61e8351a87580ab6c4ef3ab6f83ff02
7+
assets/index-BWePIwo9.css,1748104323742,3d2ccaac7d159a75ed40128f16d12145a62aadbce4359f7baaf329b0539ffc3d
8+
assets/index-CCcp4Fwu.js,1748104323742,95b9ebae645be6f5b93a7fa67444f4c67d382315986b9f09e2f23441544db6fe

public/data.json

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
[
2+
{
3+
"id": 1,
4+
"title": "Looking for a roommate in Dhanmondi",
5+
"location": "Dhanmondi, Dhaka",
6+
"rentAmount": "8500 BDT/month",
7+
"roomType": "Shared",
8+
"lifestylePreferences": {
9+
"pets": false,
10+
"smoking": false,
11+
"nightOwl": true
12+
},
13+
"availability": true,
14+
"contactInfo": "1234567911",
15+
"name": "Tanvir Ahmed",
16+
"email": "tanvir.dhanmondi@gmail.com",
17+
"description": "Spacious and clean flat in Dhanmondi. Looking for a student or working professional. Wi-Fi, washing machine, and gas available. Bills shared equally."
18+
},
19+
{
20+
"id": 2,
21+
"title": "Roommate wanted near GEC Circle",
22+
"location": "GEC Circle, Chattogram",
23+
"rentAmount": "6000 BDT/month",
24+
"roomType": "Single",
25+
"lifestylePreferences": {
26+
"pets": true,
27+
"smoking": true,
28+
"nightOwl": false
29+
},
30+
"availability": true,
31+
"contactInfo": "1234567911",
32+
"name": "Nafisa Kabir",
33+
"email": "nafisa.gec@gmail.com",
34+
"description": "Single room available with attached bath and balcony. 3rd floor apartment with lift and generator. Prefer calm and clean person."
35+
},
36+
{
37+
"id": 3,
38+
"title": "Shared room available in Uttara",
39+
"location": "Uttara, Dhaka",
40+
"rentAmount": "7000 BDT/month",
41+
"roomType": "Shared",
42+
"lifestylePreferences": {
43+
"pets": false,
44+
"smoking": false,
45+
"nightOwl": false
46+
},
47+
"availability": false,
48+
"contactInfo": "1234567911",
49+
"name": "Mehedi Hasan",
50+
"email": "mehedi.uttara@gmail.com",
51+
"description": "Fully furnished apartment near Rajlaxmi. High-speed internet, fridge, and security included. Only 1 roommate needed."
52+
},
53+
{
54+
"id": 4,
55+
"title": "Student roommate wanted in Mohammadpur",
56+
"location": "Mohammadpur, Dhaka",
57+
"rentAmount": "5000 BDT/month",
58+
"roomType": "Shared",
59+
"lifestylePreferences": {
60+
"pets": false,
61+
"smoking": false,
62+
"nightOwl": true
63+
},
64+
"availability": true,
65+
"contactInfo": "1234567911",
66+
"name": "Arif Hossain",
67+
"email": "arif.mohammadpur@gmail.com",
68+
"description": "Close to bus stops and grocery stores. Students preferred. Calm and clean environment. Water, gas included."
69+
},
70+
{
71+
"id": 5,
72+
"title": "Room in Bashundhara R/A",
73+
"location": "Bashundhara, Dhaka",
74+
"rentAmount": "10000 BDT/month",
75+
"roomType": "Single",
76+
"lifestylePreferences": {
77+
"pets": true,
78+
"smoking": false,
79+
"nightOwl": false
80+
},
81+
"availability": true,
82+
"contactInfo": "1234567911",
83+
"name": "Zahidul Islam",
84+
"email": "zahid.bashundhara@gmail.com",
85+
"description": "Well-furnished room in gated community. All utilities included. Parking space available. Ideal for professionals."
86+
},
87+
{
88+
"id": 6,
89+
"title": "Female roommate needed in Khulshi",
90+
"location": "Khulshi, Chattogram",
91+
"rentAmount": "4500 BDT/month",
92+
"roomType": "Shared",
93+
"lifestylePreferences": {
94+
"pets": false,
95+
"smoking": false,
96+
"nightOwl": false
97+
},
98+
"availability": true,
99+
"contactInfo": "1234567911",
100+
"name": "Rima Aktar",
101+
"email": "rima.khulshi@gmail.com",
102+
"description": "Clean and secure apartment. Only for female students or job holders. Kitchen and Wi-Fi shared."
103+
},
104+
{
105+
"id": 7,
106+
"title": "Shared room for students in Sylhet",
107+
"location": "Zindabazar, Sylhet",
108+
"rentAmount": "4000 BDT/month",
109+
"roomType": "Shared",
110+
"lifestylePreferences": {
111+
"pets": false,
112+
"smoking": false,
113+
"nightOwl": true
114+
},
115+
"availability": true,
116+
"contactInfo": "1234567911",
117+
"name": "Rahat Miah",
118+
"email": "rahat.sylhet@gmail.com",
119+
"description": "Ideal for university students. Shared bathroom and kitchen. Walking distance to Shahjalal University bus stop."
120+
}
121+
]

src/Pages/LogIn.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { use, useState } from "react";
1+
import React, { use, useEffect, useState } from "react";
22
import { Link, useLocation, useNavigate } from "react-router";
33
import { AuthContext } from "../Contexts/AuthContext";
44
import toast from "react-hot-toast";
@@ -9,6 +9,10 @@ const LogIn = () => {
99
const navigate = useNavigate("/");
1010

1111
const { state } = useLocation();
12+
13+
useEffect(() => {
14+
toast.success("LogIn First !!");
15+
}, [state]);
1216
// console.log(location);
1317

1418
const handleGoogleSignIn = () => {

0 commit comments

Comments
 (0)