Skip to content

Commit 2cc646a

Browse files
committed
add new database, fix errors
1 parent f0eb43a commit 2cc646a

File tree

5 files changed

+32
-21
lines changed

5 files changed

+32
-21
lines changed

app/globals.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,12 @@ html {
379379
.recipe-link:hover {
380380
background-color: #12232b;
381381
}
382-
382+
/*
383383
.recipe-link-img {
384384
transform: rotate(180deg);
385385
width: 1.3rem;
386386
padding-left: 0.4rem;
387-
}
387+
} */
388388

389389
.all-recipe-link {
390390
font-size: 1.7rem;
@@ -409,13 +409,13 @@ html {
409409

410410
/* about us section */
411411

412-
#aboutus {
413-
/* background-image: url(/images/aboutus.jpg); */
412+
/* #aboutus {
413+
background-image: url(/images/aboutus.jpg);
414414
background-repeat: no-repeat;
415415
background-size: cover;
416416
height: 100vh;
417417
padding: 1.5rem 0;
418-
}
418+
} */
419419

420420
#aboutus .section-title {
421421
margin: 0;
@@ -550,13 +550,13 @@ html {
550550
}
551551

552552

553-
553+
/*
554554
.subscribe-img {
555-
/* background-image: url(/images/subsc.jpg); */
555+
background-image: url(/images/subsc.jpg);
556556
background-size: cover;
557557
height: 20rem;
558558
border-radius: 5rem;
559-
}
559+
} */
560560

561561
.subscribe-input {
562562
border: none;
@@ -597,12 +597,12 @@ html {
597597
background-color: #f9f8f8;
598598
}
599599

600-
.footer .svg-bg {
600+
/* .footer .svg-bg {
601601
position: absolute;
602602
z-index: -1;
603603
bottom: 23.8rem;
604604
width: 100%;
605-
}
605+
} */
606606

607607
.footer {
608608
display: flex;
@@ -817,7 +817,7 @@ html {
817817
border-top-right-radius: 2.5rem;
818818
border-top-left-radius: 2.5rem;
819819
padding: 1.5rem 1rem;
820-
top: 11.76rem;
820+
top: 8rem;
821821
right: 15%;
822822
position: absolute;
823823
}

components/Footer.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ const Footer: React.FC = () => {
88
<footer id="footer" className=" sticky bottom-0 border-t-2 border-gray-100">
99
<div className="container">
1010
<div className="footer">
11-
<svg className="svg-bg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
12-
<path
13-
fill="#f9f8f8"
14-
fillOpacity="1"
15-
d="M0,288L48,272C96,256,192,224,288,192C384,160,480,128,576,149.3C672,171,768,245,864,261.3C960,277,1056,235,1152,218.7C1248,203,1344,213,1392,218.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"
16-
></path>
17-
</svg>
1811
<div className="footer-pages">
1912
<h4 className="footer-title">بخش های سایت</h4>
2013
<ul>

lib/mongodb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import mongoose, { connect, connection } from 'mongoose'
22

33
// const { MONGODB = 'mongodb://root:root@localhost:27017/?authSource=admin&readPreference=primary&appname=MongoDB%20Compass&ssl=false' } = process.env;
4-
const DATABASE = process.env.DB_LOCAL_URL || 'mongodb://mongo:27017/denizpaz'
4+
const DATABASE = "mongodb+srv://ghafari5000:[email protected]/?retryWrites=true&w=majority"
55
const options: any = {
66
useUnifiedTopology: true,
77
useNewUrlParser: true

package-lock.json

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@
3434
"tailwindcss": "3.3.2",
3535
"tailwindcss-animate": "^1.0.6",
3636
"typescript": "5.1.3",
37+
"uuid": "^9.0.0",
3738
"vazirmatn": "^33.0.3"
3839
},
3940
"devDependencies": {
4041
"@tailwindcss/forms": "^0.5.3",
41-
"@types/mime": "^3.0.1"
42+
"@types/mime": "^3.0.1",
43+
"@types/uuid": "^9.0.2"
4244
}
4345
}

0 commit comments

Comments
 (0)