Skip to content

Commit 24a4baa

Browse files
committed
testimonial added
1 parent cf1e5c3 commit 24a4baa

File tree

23 files changed

+112
-55
lines changed

23 files changed

+112
-55
lines changed

.firebase/hosting.YnVpbGQ.cache

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ logo192.png,1669186773986,3ee59515172ee198f3be375979df15ac5345183e656720a381b887
33
logo512.png,1669186775565,ee7e2f3fdb8209c4b6fd7bef6ba50d1b9dba30a25bb5c3126df057e1cb6f5331
44
manifest.json,1669186766076,aff3449bdc238776f5d6d967f19ec491b36aed5fb7f23ccff6500736fd58494a
55
robots.txt,1669186777799,bfe106a3fb878dc83461c86818bf74fc1bdc7f28538ba613cd3e775516ce8b49
6-
asset-manifest.json,1669698374360,39af39c13c372922d45d6ea4e902923fcecb34fc933d5fc0d9a409d770aca25a
7-
index.html,1669698374308,f12cbd0dea303b8a80e385d15111bde59317bf857bfb6b7e30c4dd7443665c41
8-
static/js/787.c4e7f8f9.chunk.js,1669698374354,91c272bf68adff064c800f366f30728320d116b78ce6c85e37780678453e9a15
9-
static/js/787.c4e7f8f9.chunk.js.map,1669698374357,033fe9275438718e0730acfbe04a0b09fd74cccd39b244c78f4a513c4ddd3a29
10-
static/js/main.b9c2dff4.js.LICENSE.txt,1669698374354,4bc7b9ff46fdf1ee16d1001023f9d7cb038627bcd988dc83776a4348146c4274
11-
static/css/main.6209d208.css.map,1669698374354,36cc8d8e482b174d68d0bd26fb90d57ba9ccbfa712755373a7d63733ac2a770b
12-
static/media/index.cd351d7c31d0d3fccf96.cjs,1669698374354,e93658ec997ed4c029ee70c288a9a53c257e6ac3e71cdf8a54924a8b99df1145
13-
static/media/slick.2630a3e3eab21c607e21.svg,1669698374356,d00477d40ed40fa1dd3bdee27d9286804121b15fea83bae7d5415d902b055de0
14-
static/media/slick.295183786cd8a1389865.woff,1669698374356,029a727c9e1081d2f9e1015f02f18da88f268512ea4f58589a6f17f532928530
15-
static/media/slick.a4e97f5a2a64f0ab1323.eot,1669698374354,52b9a169969e053d43df6bd21c4dc789c2518d99afd8590a17ef50cd24c77cf6
16-
static/media/slick.c94f7671dcc99dce43e2.ttf,1669698374352,6aad751007cf9a89350af287f824ab64f096c472c7c9c679fb3d55b6174fc004
17-
static/css/main.6209d208.css,1669698374355,843ff78e055148a6b939807b4bf45d123ad52476732a08e9e913cb9558785969
18-
static/media/lgoinImage.9c032dd9568f031ad772.png,1669698374356,8c791111174c6dbab833f3c2856acb5e9cc05b2a8ce492558c156836b9af256b
19-
static/media/Sign-up-amico.41f9736f605feac1dd44.png,1669698374354,0750799bf53c9ef3dd702363d4aa44c60202fb7081b385e0f260ded9ae5a1c3c
20-
static/js/main.b9c2dff4.js,1669698374356,b87212cc8f26bf21d1a802f33018921a5037bf0fad750a3aaff6a3ccdbda77d0
21-
static/js/main.b9c2dff4.js.map,1669698374359,4b7b4a07907d91728e37027313beaf4aebfadb06d90c6586b39ed36eb36878aa
6+
asset-manifest.json,1669829154853,774f1c782aa3368373c87364001b6cca34154eb8aff03ace21d7420f6f050339
7+
index.html,1669829154785,d3996a0081064899273df5a5d7facc7c5f0a6b688e8b50ad14fd49efa6e1b59a
8+
static/js/787.c4e7f8f9.chunk.js,1669829154828,91c272bf68adff064c800f366f30728320d116b78ce6c85e37780678453e9a15
9+
static/js/787.c4e7f8f9.chunk.js.map,1669829154828,033fe9275438718e0730acfbe04a0b09fd74cccd39b244c78f4a513c4ddd3a29
10+
static/js/main.e793ef89.js.LICENSE.txt,1669829154828,4bc7b9ff46fdf1ee16d1001023f9d7cb038627bcd988dc83776a4348146c4274
11+
static/media/index.cd351d7c31d0d3fccf96.cjs,1669829154853,e93658ec997ed4c029ee70c288a9a53c257e6ac3e71cdf8a54924a8b99df1145
12+
static/media/slick.2630a3e3eab21c607e21.svg,1669829154855,d00477d40ed40fa1dd3bdee27d9286804121b15fea83bae7d5415d902b055de0
13+
static/css/main.fdda5504.css.map,1669829154827,b591ce371631152a06bfedfa5c176ababa867f5faac4190015fc41ffc04dcf55
14+
static/media/slick.295183786cd8a1389865.woff,1669829154869,029a727c9e1081d2f9e1015f02f18da88f268512ea4f58589a6f17f532928530
15+
static/media/slick.a4e97f5a2a64f0ab1323.eot,1669829154807,52b9a169969e053d43df6bd21c4dc789c2518d99afd8590a17ef50cd24c77cf6
16+
static/media/slick.c94f7671dcc99dce43e2.ttf,1669829154807,6aad751007cf9a89350af287f824ab64f096c472c7c9c679fb3d55b6174fc004
17+
static/css/main.fdda5504.css,1669829154828,ae47436391caec741ea028d712ed74710bcfaea4c594446aae5fa4ca33a78e47
18+
static/media/lgoinImage.9c032dd9568f031ad772.png,1669829154826,8c791111174c6dbab833f3c2856acb5e9cc05b2a8ce492558c156836b9af256b
19+
static/media/Sign-up-amico.41f9736f605feac1dd44.png,1669829154807,0750799bf53c9ef3dd702363d4aa44c60202fb7081b385e0f260ded9ae5a1c3c
20+
static/js/main.e793ef89.js,1669829154827,026949d2a2b5baa397e157c2643c5aa19487376f74a3a8e1815c1025c235f8d7
21+
static/js/main.e793ef89.js.map,1669829154855,bb2811499c15e1029233837f6d2107726d5d2fff48022eabb06a35934bee5c31

src/Contexts/AuthProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const AuthProvider = ({children}) => {
5050
const userEmailQueryData = (email) => {
5151

5252

53-
fetch(`https://server-git-sujon.vercel.app/users?email=${email}`, {
53+
fetch(`http://localhost:5000/users?email=${email}`, {
5454
method: "GET",
5555

5656
})

src/Hooks/IsAdmin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const IsAdmin = (email) => {
88

99
useEffect(() => {
1010
if (email) {
11-
fetch(`https://server-git-sujon.vercel.app/users/admin/${email}`)
11+
fetch(`http://localhost:5000/users/admin/${email}`)
1212
.then((res) => res.json())
1313
.then((data) => {
1414
console.log(data);

src/Hooks/UseToken.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const UseToken = (email) => {
44
const [token, setToken] = useState("");
55
useEffect(() => {
66
if (email) {
7-
fetch(`https://server-git-sujon.vercel.app/jwt?email=${email}`)
7+
fetch(`http://localhost:5000/jwt?email=${email}`)
88
.then((res) => res.json())
99
.then((data) => {
1010
if (data.accessToken) {

src/Pages/Buyer/MyOrders.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const MyOrders = () => {
1414
queryKey: ["bookings", user?.email],
1515
queryFn: async () => {
1616
const res = await fetch(
17-
`https://server-git-sujon.vercel.app/bookings?buyerEmail=${user?.email}`
17+
`http://localhost:5000/bookings?buyerEmail=${user?.email}`
1818
);
1919
const data = await res.json();
2020
return data;
@@ -24,7 +24,7 @@ const MyOrders = () => {
2424

2525
const deleteHandler = (booking) => {
2626

27-
fetch(`https://server-git-sujon.vercel.app/bookings/${booking._id}`, {
27+
fetch(`http://localhost:5000/bookings/${booking._id}`, {
2828
method: "DELETE",
2929
})
3030
.then((res) => res.json())

src/Pages/Catagories/CatagoriesShowcase/CatagoriesShowcase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const CatagoriesShowcase = () => {
1111
const {data:catagories = [] , isLoading} = useQuery({
1212
queryKey:['catagories'],
1313
queryFn: ()=>{
14-
const data = axios.get(`https://server-git-sujon.vercel.app/catagories`)
14+
const data = axios.get(`http://localhost:5000/catagories`)
1515
return data
1616
}
1717
})

src/Pages/Dashboard/AllBuyers/AllBuyers.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ const AllBuyers = () => {
99
const {data:users = [], isLoading, refetch} = useQuery({
1010
queryKey: ['users'],
1111
queryFn: async()=> {
12-
const res= await fetch(`https://server-git-sujon.vercel.app/Buyers?accountType=Buyer`)
12+
const res= await fetch(`http://localhost:5000/Buyers?accountType=Buyer`)
1313
const data = await res.json()
1414
return data
1515
}
1616
})
1717

1818

1919
const varifingHandler = (user) => {
20-
fetch(`https://server-git-sujon.vercel.app/users/${user?._id}`, {
20+
fetch(`http://localhost:5000/users/${user?._id}`, {
2121
method: "PUT",
2222
headers: {
2323
"content-type": "application/json",
@@ -37,7 +37,7 @@ const AllBuyers = () => {
3737
setToggle(!toggle);
3838
refetch();
3939

40-
// fetch(`https://server-git-sujon.vercel.app/products?isVerified=isVerified`,{
40+
// fetch(`http://localhost:5000/products?isVerified=isVerified`,{
4141
// method: 'GET',
4242
// headers: {
4343
// "content-type": "application/json",
@@ -55,7 +55,7 @@ const AllBuyers = () => {
5555
}
5656

5757
const deleteUserHndler = (user) => {
58-
fetch(`https://server-git-sujon.vercel.app/users/${user?._id}`, {
58+
fetch(`http://localhost:5000/users/${user?._id}`, {
5959
method: "DELETE",
6060

6161
})

src/Pages/Dashboard/AllProduct/AllProduct.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const AllProduct = () => {
1717
queryKey: ["products", ],
1818
queryFn: async () => {
1919
const res = await fetch(
20-
`https://server-git-sujon.vercel.app/products`
20+
`http://localhost:5000/products`
2121
);
2222
const data = await res.json();
2323
return data;
@@ -26,7 +26,7 @@ const AllProduct = () => {
2626

2727
const deleteHandler = (product) => {
2828

29-
fetch(`https://server-git-sujon.vercel.app/products/${product._id}`, {
29+
fetch(`http://localhost:5000/products/${product._id}`, {
3030
method: "DELETE",
3131
})
3232
.then((res) => res.json())
@@ -38,7 +38,7 @@ const AllProduct = () => {
3838
};
3939

4040
const makeAdvertizedHandler = (product) => {
41-
fetch(`https://server-git-sujon.vercel.app/products/${product._id}`, {
41+
fetch(`http://localhost:5000/products/${product._id}`, {
4242
method: "PUT",
4343
headers: {
4444
"content-type": "application/json",

src/Pages/Dashboard/AllReports/AllReports.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const AllReports = () => {
1717
queryKey: ["products", user?.email],
1818
queryFn: async () => {
1919
const res = await fetch(
20-
`https://server-git-sujon.vercel.app/reportedProduct`
20+
`http://localhost:5000/reportedProduct`
2121
);
2222
const data = await res.json();
2323
return data;
@@ -27,7 +27,7 @@ const AllReports = () => {
2727

2828
const deleteHandler = (product) => {
2929

30-
fetch(`https://server-git-sujon.vercel.app/reportedProduct/${product._id}`, {
30+
fetch(`http://localhost:5000/reportedProduct/${product._id}`, {
3131
method: "DELETE",
3232
})
3333
.then((res) => res.json())
@@ -43,7 +43,7 @@ const AllReports = () => {
4343
};
4444

4545
const deleteOrginalProduct = (product) => {
46-
fetch(`https://server-git-sujon.vercel.app/products/${product.origin_id}`, {
46+
fetch(`http://localhost:5000/products/${product.origin_id}`, {
4747
method: "DELETE",
4848
})
4949
.then((res) => res.json())

src/Pages/Dashboard/AllSeller/AllSeller.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ const AllSeller = () => {
1111
const {data:users = [], isLoading, refetch} = useQuery({
1212
queryKey: ['users'],
1313
queryFn: async()=> {
14-
const res= await fetch(`https://server-git-sujon.vercel.app/sellers?accountType=Seller`)
14+
const res= await fetch(`http://localhost:5000/sellers?accountType=Seller`)
1515
const data = await res.json()
1616
return data
1717
}
1818
})
1919

2020

2121
const varifingHandler = (user) => {
22-
fetch(`https://server-git-sujon.vercel.app/users/${user?._id}`, {
22+
fetch(`http://localhost:5000/users/${user?._id}`, {
2323
method: "PUT",
2424
headers: {
2525
"content-type": "application/json",
@@ -40,7 +40,7 @@ const AllSeller = () => {
4040

4141
refetch();
4242

43-
// fetch(`https://server-git-sujon.vercel.app/products?isVerified=isVerified`,{
43+
// fetch(`http://localhost:5000/products?isVerified=isVerified`,{
4444
// method: 'GET',
4545
// headers: {
4646
// "content-type": "application/json",
@@ -60,7 +60,7 @@ const AllSeller = () => {
6060

6161

6262
const deleteUserHndler = (user) => {
63-
fetch(`https://server-git-sujon.vercel.app/users/${user?._id}`, {
63+
fetch(`http://localhost:5000/users/${user?._id}`, {
6464
method: "DELETE",
6565

6666
})

src/Pages/Dashboard/Payment/Checkout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Checkout = ({ bookingData }) => {
2929

3030
useEffect(() => {
3131
// Create PaymentIntent as soon as the page loads
32-
fetch("https://server-git-sujon.vercel.app/create-payment-intent", {
32+
fetch("http://localhost:5000/create-payment-intent", {
3333
method: "POST",
3434
headers: {
3535
"Content-Type": "application/json",
@@ -93,7 +93,7 @@ const Checkout = ({ bookingData }) => {
9393
buyerEmail,
9494
bookingId: _id
9595
}
96-
fetch('https://server-git-sujon.vercel.app/payments', {
96+
fetch('http://localhost:5000/payments', {
9797
method: 'POST',
9898
headers: {
9999
'content-type': 'application/json',
@@ -116,7 +116,7 @@ const Checkout = ({ bookingData }) => {
116116
setProcessing(false);
117117

118118
const deleteOrginalProduct = (productId) => {
119-
fetch(`https://server-git-sujon.vercel.app/products/${productId}`, {
119+
fetch(`http://localhost:5000/products/${productId}`, {
120120
method: "DELETE",
121121
})
122122
.then((res) => res.json())

src/Pages/Home/Advertised/Advertised.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Advertised = () => {
1717
} = useQuery({
1818
queryKey: ["products"],
1919
queryFn: async () => {
20-
const res = await fetch(`https://server-git-sujon.vercel.app/products`);
20+
const res = await fetch(`http://localhost:5000/products`);
2121
const data = await res.json();
2222
return data;
2323
},

src/Pages/Home/Home.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import CatagoriesShowcase from '../Catagories/CatagoriesShowcase/CatagoriesShowc
33
import Advertised from './Advertised/Advertised';
44
import HomeBanner from './HomeBanner/HomeBanner';
55
import SubscribeCTA from './SubscribeCTA/SubscribeCTA';
6+
import Testimonials from './Testimonials/Testimonials'
67

78
const Home = () => {
89
return (
@@ -11,7 +12,9 @@ const Home = () => {
1112
<div className='container px-5 mx-auto'>
1213
<CatagoriesShowcase></CatagoriesShowcase>
1314
<Advertised></Advertised>
15+
<Testimonials></Testimonials>
1416
<SubscribeCTA></SubscribeCTA>
17+
1518

1619
</div>
1720
</div>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import React from 'react';
2+
3+
const Testimonials = () => {
4+
const customers = [
5+
{
6+
name: 'John Doe',
7+
photo: '/images/customer-1.jpg',
8+
testimonial: 'I had a great experience working with the team at this website when I was buying my first home. They were very helpful and made the process stress-free.',
9+
category: 'Buying a House'
10+
},
11+
{
12+
name: 'Jane Smith',
13+
photo: '/images/customer-2.jpg',
14+
testimonial: 'The team at this website was amazing when I was selling my home. They went above and beyond to help me get the best price possible. I would highly recommend them to anyone looking to buy or sell a property.',
15+
category: 'Selling a House'
16+
},
17+
{
18+
name: 'Bob Johnson',
19+
photo: '/images/customer-3.jpg',
20+
testimonial: 'I was very impressed with the level of service I received from this website when I was selling my home. They made the process quick and easy, and I was able to get my asking price.',
21+
category: 'Selling a House'
22+
},
23+
{
24+
name: 'Sarah Williams',
25+
photo: '/images/customer-4.jpg',
26+
testimonial: 'The team at this website was incredibly helpful and professional when I was buying my first home. They made the process of finding the perfect house a breeze.',
27+
category: 'Buying a House'
28+
},
29+
];
30+
31+
32+
return (
33+
<div className="bg-gray-200 py-8">
34+
<div className="container mx-auto px-4">
35+
<h2 className="text-2xl font-bold text-center text-gray-800 mb-4">What Our Customers Are Saying</h2>
36+
<div className="flex flex-wrap -mx-4">
37+
{customers.map(customer => (
38+
<div className="w-full md:w-1/2 px-4 mb-8" key={customer.name}>
39+
<div className="bg-white rounded shadow-md py-6 px-8 flex items-center">
40+
<img src={customer.photo} alt={customer.name} className="w-16 h-16 rounded-full mr-4" />
41+
<div>
42+
<p className="mb-4 text-gray-700">{customer.testimonial}</p>
43+
<p className="text-gray-600 text-xs">- {customer.name}</p>
44+
</div>
45+
</div>
46+
</div>
47+
))}
48+
</div>
49+
</div>
50+
</div>
51+
);
52+
};
53+
54+
export default Testimonials;

src/Pages/Products/ProductCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const ProductCard = ({ product, setProduct }) => {
6363
category: event.category,
6464
isVerified: event.isVerified,
6565
};
66-
fetch(`https://server-git-sujon.vercel.app/reportedProduct`, {
66+
fetch(`http://localhost:5000/reportedProduct`, {
6767
method: "POST",
6868
headers: {
6969
"content-type": "application/json",

src/Pages/Products/Products.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Products = () => {
1717
const { data: products = [], isLoading } = useQuery({
1818
queryKey: ["products", category?.catagoriesName],
1919
queryFn: async () => {
20-
const res = await fetch(`https://server-git-sujon.vercel.app/products?category=${category.catagoriesName}`);
20+
const res = await fetch(`http://localhost:5000/products?category=${category.catagoriesName}`);
2121
const data = await res.json();
2222
return data;
2323
},

src/Pages/Seller/AddProducts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const AddProducts = () => {
6666
const {data:catagories = [] , isLoading} = useQuery({
6767
queryKey:['catagories'],
6868
queryFn: ()=>{
69-
const data = axios.get(`https://server-git-sujon.vercel.app/catagories`)
69+
const data = axios.get(`http://localhost:5000/catagories`)
7070
return data
7171
}
7272
})
@@ -121,7 +121,7 @@ const AddProducts = () => {
121121
// ImageHosting(event?.productPhoto[0]);
122122
// }
123123
// if (hostedPhotoUrl) {
124-
fetch(`https://server-git-sujon.vercel.app/products`, {
124+
fetch(`http://localhost:5000/products`, {
125125
method: "POST",
126126
headers: {
127127
"content-type": "application/json",

src/Pages/Seller/MyProducts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const MyProducts = () => {
1919
queryKey: ["products", user?.email],
2020
queryFn: async () => {
2121
const res = await fetch(
22-
`https://server-git-sujon.vercel.app/products?email=${user?.email}`
22+
`http://localhost:5000/products?email=${user?.email}`
2323
);
2424
const data = await res.json();
2525
return data;
@@ -28,7 +28,7 @@ const MyProducts = () => {
2828

2929
const deleteHandler = (product) => {
3030

31-
fetch(`https://server-git-sujon.vercel.app/products/${product._id}`, {
31+
fetch(`http://localhost:5000/products/${product._id}`, {
3232
method: "DELETE",
3333
})
3434
.then((res) => res.json())
@@ -40,7 +40,7 @@ const MyProducts = () => {
4040
};
4141

4242
const makeAdvertizedHandler = (product) => {
43-
fetch(`https://server-git-sujon.vercel.app/products/${product._id}`, {
43+
fetch(`http://localhost:5000/products/${product._id}`, {
4444
method: "PUT",
4545
headers: {
4646
"content-type": "application/json",

src/Pages/Shared/ConfirmationModal/ConfirmationModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const ConfirmationModal = ({ product, setBooking }) => {
3838

3939
};
4040

41-
fetch(`https://server-git-sujon.vercel.app/bookings`,{
41+
fetch(`http://localhost:5000/bookings`,{
4242
method: "POST",
4343
headers:{
4444
"content-type":"application/json"

0 commit comments

Comments
 (0)