Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
milad-azami committed Jan 15, 2023
1 parent deeb965 commit 7be1733
Show file tree
Hide file tree
Showing 66 changed files with 3,633 additions and 274 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BASE_URL=https://api-botofood.vercel.app
REVALIDATE=3600
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

Expand Down
26 changes: 26 additions & 0 deletions components/icons/Apple.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
function Apple() {
return (
<svg width="60px" height="60px" viewBox="-5 0 60 60">
<g
id="Icons"
stroke="none"
strokeWidth="1"
fill="none"
fillRule="evenodd"
>
<g
id="Color-"
transform="translate(-204.000000, -560.000000)"
fill="#c7c7c7"
>
<path
d="M231.174735,567.792499 C232.740177,565.771699 233.926883,562.915484 233.497649,560 C230.939077,560.177808 227.948466,561.814769 226.203475,563.948463 C224.612784,565.88177 223.305444,568.757742 223.816036,571.549042 C226.613071,571.636535 229.499881,569.960061 231.174735,567.792499 L231.174735,567.792499 Z M245,595.217241 C243.880625,597.712195 243.341978,598.827022 241.899976,601.03692 C239.888467,604.121745 237.052156,607.962958 233.53412,607.991182 C230.411652,608.02505 229.606488,605.94498 225.367451,605.970382 C221.128414,605.99296 220.244696,608.030695 217.116618,607.999649 C213.601387,607.968603 210.913765,604.502761 208.902256,601.417937 C203.27452,592.79849 202.68257,582.680377 206.152914,577.298162 C208.621711,573.476705 212.515678,571.241407 216.173986,571.241407 C219.89682,571.241407 222.239372,573.296075 225.322563,573.296075 C228.313175,573.296075 230.133913,571.235762 234.440281,571.235762 C237.700215,571.235762 241.153726,573.022307 243.611302,576.10431 C235.554045,580.546683 236.85858,592.121127 245,595.217241 L245,595.217241 Z"
id="Apple"
></path>
</g>
</g>
</svg>
);
}

export default Apple;
10 changes: 10 additions & 0 deletions components/icons/Binance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
function Binance() {
return (
<svg fill="#c7c7c7" width="100px" height="60px" viewBox="0 0 60 32">
<title>binance</title>
<path d="M15.986 1.019l9.189 9.159-3.396 3.393-5.793-5.793-5.793 5.823-3.396-3.393 9.189-9.189zM4.399 12.605l3.365 3.395-3.363 3.365-3.396-3.365zM15.986 12.607l3.394 3.363-3.395 3.395-3.395-3.365 3.395-3.393zM27.572 12.605l3.423 3.395-3.393 3.395-3.395-3.395zM21.778 18.399l3.396 3.393-9.189 9.189-9.189-9.187 3.396-3.395 5.793 5.823 5.793-5.823z"></path>
</svg>
);
}

export default Binance;
22 changes: 22 additions & 0 deletions components/icons/Choice.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
function Choice() {
return (
<svg
fill="#53c60b"
width="50px"
height="50px"
viewBox="-0.26 0 33.549 33.549"
>
<g transform="translate(-607.873 -577.167)">
<path d="M638.546,610.716a1,1,0,0,1-.942-1.334c1.785-5.044,1.745-8.637-.12-10.679-3.26-3.568-11.186-1.6-11.266-1.574l-1.247.318V586l.016-.087a3.188,3.188,0,0,0-.274-2.085.7.7,0,0,0-.609-.226.774.774,0,0,0-.657.247,3.155,3.155,0,0,0-.346,2.033l.011.144v15.115l-1.155-.18c-1.766-.279-2.336.02-2.408.158-.459.9,2.05,4.66,5.264,7.888a1,1,0,0,1-1.418,1.412c-1.681-1.689-7.053-7.412-5.627-10.208.645-1.265,2.182-1.425,3.344-1.359V586.094a4.926,4.926,0,0,1,.822-3.55,2.768,2.768,0,0,1,2.17-.939,2.678,2.678,0,0,1,2.144.944,4.94,4.94,0,0,1,.723,3.624v8.757c2.643-.466,8.781-1.085,11.987,2.42,2.406,2.629,2.585,6.9.532,12.7A1,1,0,0,1,638.546,610.716Z" />

<path d="M612.733,586.792a2.2,2.2,0,0,1-1.562-.646l-3.005-3.005a1,1,0,0,1,1.414-1.414l3.006,3.005a.211.211,0,0,0,.3,0l6.522-6.521a1,1,0,0,1,1.414,1.414l-6.523,6.522A2.2,2.2,0,0,1,612.733,586.792Z" />

<path d="M639.392,587.543a1,1,0,0,1-.707-.293l-8.376-8.376a1,1,0,0,1,1.414-1.414l8.376,8.376a1,1,0,0,1-.707,1.707Z" />

<path d="M631.016,587.543a1,1,0,0,1-.707-1.707l8.376-8.376a1,1,0,0,1,1.414,1.414l-8.376,8.376A1,1,0,0,1,631.016,587.543Z" />
</g>
</svg>
);
}

export default Choice;
21 changes: 21 additions & 0 deletions components/icons/Clock.js

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

59 changes: 59 additions & 0 deletions components/icons/Dollar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
function Dollar() {
return (
<svg width="40px" height="25px" viewBox="0 0 512 512">
<g>
<path
className="st0"
d="M387.813,349.816c7.25,5.344,16.75,15.141,16.75,15.141c0.891,0.813,2.125,1.141,3.297,0.859
c1.172-0.266,2.141-1.109,2.578-2.234c0,0,51.844-131.953,78.719-200.406c-97.188-106.766-279.078,2.109-387.203-76.813
C94.5,80.91,84.625,70.754,84.625,70.754c-0.906-0.813-2.141-1.125-3.313-0.844c-1.188,0.266-2.156,1.109-2.594,2.234
c0,0-51.828,131.969-78.719,200.406C97.375,379.52,279.75,270.066,387.813,349.816z M317.984,137.207
c39.094-1.234,76.953,0.625,110.234,14.219c-5.234,18.516,2.828,37.734,17.188,52.125c-11.422,29.109-22.859,58.219-34.297,87.328
c-16.672-8.531-35.891,0.688-44.578,17.578c-33.266-13.578-71.125-15.453-110.219-14.219c32.563-16.297,61.25-44.313,74.531-78.125
C344.109,182.363,338.469,151.691,317.984,137.207z M246.375,179.113c1.906-0.531,3.891-0.922,5.859-1.297
c1.313-3.375,2.641-6.734,3.953-10.109c5.531-0.313,11.047-0.656,16.563-0.984c-1.281,3.313-2.594,6.625-3.891,9.938
c3.734,0.078,7.203,0.406,10.313,1c5.281,1.016,9.766,4.781,9.766,4.781c0.625,0.313,0.906,0.906,0.75,1.625
s-0.719,1.453-1.531,2.016c-3.438,2.328-6.906,4.688-10.375,7.047c-1.094,0.766-2.438,0.969-3.313,0.594
c0,0-3.516-2.563-7.156-3.188c-3.609-0.656-7.656-0.797-12.047-0.563c-5.734,0.344-10.359,1.5-13.844,3.531
c-3.469,2.016-5.813,4.531-6.984,7.531c-1.063,2.719-0.906,4.719,0.5,6.047c1.391,1.313,4.313,2.078,8.797,2.203
c4.203,0.063,8.422,0.125,12.656,0.188c9.391,0.141,15.797,1.969,19.297,5.344c3.531,3.375,3.906,8.578,1.172,15.531
c-1.625,4.141-4.016,7.781-7.172,10.969c-3.172,3.219-6.891,5.938-11.109,8.203c-4.266,2.313-8.953,4.078-14.125,5.391
c-2.25,0.578-4.547,1-6.859,1.375c-1.547,3.922-3.094,7.828-4.625,11.734c-5.516,0.328-11.031,0.672-16.563,0.984
c1.5-3.828,3-7.656,4.516-11.484c-4.594-0.063-8.828-0.453-12.672-1.203c-5.875-1.156-11.938-6.875-11.938-6.875
c-0.578-0.328-0.813-0.953-0.641-1.656c0.188-0.672,0.766-1.422,1.531-1.938c3.672-2.438,7.344-4.906,11.016-7.391
c1.156-0.75,2.594-0.969,3.453-0.469c0,0,4.422,4.25,8.672,5.063c4.281,0.797,8.75,1.063,13.406,0.813
c5.875-0.359,11.094-1.516,15.609-3.5c4.547-1.969,7.547-4.828,9.016-8.547c1.031-2.688,0.938-4.766-0.344-6.219
c-1.281-1.469-4.125-2.234-8.469-2.422c-4.813-0.047-9.625-0.125-14.438-0.188c-8.531-0.172-14.5-1.906-17.891-5.078
c-3.422-3.188-3.734-8.281-1.016-15.219c1.5-3.828,3.766-7.297,6.75-10.375c3-3.047,6.5-5.734,10.469-7.938
C237.438,182.145,241.75,180.379,246.375,179.113z M43.75,232.16c11.438-29.109,22.875-58.203,34.313-87.313
c16.656,8.531,35.875-0.719,44.531-17.578c33.281,13.594,71.172,15.469,110.281,14.219c-32.578,16.313-61.266,44.313-74.547,78.125
c-13.266,33.781-7.641,64.469,12.828,78.906c-39.094,1.25-76.969-0.609-110.25-14.219C66.156,265.785,58.125,246.535,43.75,232.16z
"
/>
<path
className="st0"
d="M126.938,226.988c6.219,1.031,13.188-3.047,15.438-8.797c2.25-5.719-1.063-10.938-7.281-11.969
c-6.203-1.031-12.953,2.516-15.203,8.234C117.641,220.191,120.734,225.973,126.938,226.988z"
/>
<path
className="st0"
d="M354.063,229.52c6.219,1.031,12.969-2.516,15.219-8.234c2.25-5.734-0.844-11.516-7.063-12.531
s-13.188,3.063-15.438,8.781C344.531,223.27,347.844,228.52,354.063,229.52z"
/>
<path
className="st0"
d="M500.047,193.348L415.938,408.88c-2.969-4.063-6.375-8.516-10.156-13.047l-0.172-0.203l-0.203-0.203
c-9.594-10.234-24.344-22.125-45.844-31.36c-21.469-9.25-49.656-15.844-85.938-15.844c-1.156,0-2.375,0.016-3.625,0.031l0,0
c-20.016,0-40.906,1.25-60.969,2.453c-20.594,1.234-41.719,2.484-62.094,2.469c-24.109,0.016-51-1.609-77.078-9.141
c-17.547-5.078-34.641-12.828-50.547-24.5l-8.406,18C28,349.473,46.25,357.504,64.469,362.754
c28.766,8.281,57.5,9.891,82.469,9.891c21.156,0,42.656-1.281,63.25-2.516c20.063-1.188,40.594-2.422,59.813-2.406h-0.125
l0.297-0.016c1.109,0,2.266-0.016,3.453-0.016c33.953,0.016,59.344,6.125,78.25,14.25c18.781,8.094,31.188,18.188,39.172,26.626
c5.328,6.422,10.109,12.969,13.516,17.906c1.75,2.5,3.125,4.578,4.063,6.016c0.484,0.719,0.844,1.297,1.094,1.672l0.25,0.422
l0.078,0.109l2.516,4.031c1.469,2.359,4.156,3.688,6.922,3.438c2.766-0.266,5.156-2.063,6.172-4.656L512,216.254L500.047,193.348z"
/>
</g>
</svg>
);
}

export default Dollar;
24 changes: 24 additions & 0 deletions components/icons/Fast.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
function Fast() {
return (
<svg
width="50px"
height="50px"
viewBox="0 0 64 64"
strokeWidth="4"
stroke="#53c60b"
fill="none"
>
<path d="M28.79,44l-9.4-9.4S31.76,5.41,56.77,7C56.77,7,60.25,30.12,28.79,44Z" />
<path d="M56,16.82a10.87,10.87,0,0,1-6-3.08,11,11,0,0,1-3.11-6.15" />
<circle cx="42.32" cy="21.44" r="5.48" />
<path d="M30.61,43.16,30,47.84a.24.24,0,0,0,.33.25l8-3.47A2.32,2.32,0,0,0,39.63,43l1.22-5.83" />
<path d="M20,33.29l-4.69.6a.23.23,0,0,1-.24-.32l3.46-7.95a2.33,2.33,0,0,1,1.67-1.35l5.82-1.22" />
<path d="M21.49,36.68c-6.55,2.1-6.88,12.47-6.88,12.47s10.08.11,12.59-6.76" />
<line x1="10.88" y1="52.82" x2="7.12" y2="56.59" strokeLinecap="round" />
<line x1="10.6" y1="45.63" x2="7.41" y2="48.81" strokeLinecap="round" />
<line x1="17.94" y1="53.11" x2="14.76" y2="56.3" strokeLinecap="round" />
</svg>
);
}

export default Fast;
9 changes: 9 additions & 0 deletions components/icons/Food.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function Food() {
return (
<svg fill="#53c60b" width="50px" height="50px" viewBox="0 0 24 24">
<path d="M16.84,11.63A3,3,0,0,0,19,10.75l2.83-2.83a1,1,0,0,0,0-1.41,1,1,0,0,0-1.42,0L17.55,9.33a1,1,0,0,1-1.42,0h0L19.67,5.8a1,1,0,1,0-1.42-1.42L14.72,7.92a1,1,0,0,1,0-1.41l2.83-2.83a1,1,0,1,0-1.42-1.42L13.3,5.09a3,3,0,0,0,0,4.24h0L12,10.62,3.73,2.32l-.1-.06a.71.71,0,0,0-.17-.11l-.18-.07L3.16,2H3.09l-.2,0a.57.57,0,0,0-.18,0,.7.7,0,0,0-.17.09l-.16.1-.07,0-.06.1a1,1,0,0,0-.11.17,1.07,1.07,0,0,0-.07.19s0,.07,0,.11a11,11,0,0,0,3.11,9.34l2.64,2.63-5.41,5.4a1,1,0,0,0,0,1.42,1,1,0,0,0,.71.29,1,1,0,0,0,.71-.29L9.9,15.57h0l2.83-2.83h0l2-2A3,3,0,0,0,16.84,11.63ZM9.19,13.45,6.56,10.81A9.06,9.06,0,0,1,4,5.4L10.61,12Zm6.24.57A1,1,0,0,0,14,15.44l6.3,6.3A1,1,0,0,0,21,22a1,1,0,0,0,.71-.29,1,1,0,0,0,0-1.42Z" />
</svg>
);
}

export default Food;
26 changes: 26 additions & 0 deletions components/icons/Location.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
function Location() {
return (
<svg width="20px" height="15px" viewBox="0 0 24 24" fill="none">
<g id="style=linear">
<g id="location">
<path
id="vector"
d="M9.17891 20.3113C9.25802 20.3888 9.33618 20.4651 9.41324 20.54C9.432 20.5582 9.4507 20.5762 9.46932 20.594M9.17891 20.3113C6.44969 17.6366 2.58692 13.4269 3.69458 8.49C5.64705 -0.169998 18.3629 -0.159997 20.3054 8.5C21.4452 13.58 17.3222 17.88 14.5769 20.54C12.6034 22.4618 11.4373 22.4798 9.46932 20.594M9.17891 20.3113L9.46932 20.594"
stroke="grey"
strokeWidth="1.5"
/>
<circle
id="ellipse"
cx="12"
cy="9.5"
r="2.5"
stroke="grey"
strokeWidth="1.5"
/>
</g>
</g>
</svg>
);
}

export default Location;
16 changes: 16 additions & 0 deletions components/icons/SpaceX.js

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions components/icons/Tesla.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
function Tesla() {
return (
<svg
width="200px"
height="240px"
viewBox="0 -121.2 278.7 278.7"
fill="#c7c7c7"
>
<g id="TESLA">
<path
className="st0"
d="M238.1 14.4v21.9h7V21.7h25.6v14.6h7V14.4h-39.6M244.3 7.3h27c3.8-.7 6.5-4.1 7.3-7.3H237c.8 3.2 3.6 6.5 7.3 7.3M216.8 36.3c3.5-1.5 5.4-4.1 6.2-7.1h-31.5V.1h-7.1v36.2h32.4M131.9 7.2h25c3.8-1.1 6.9-4 7.7-7.1H125v21.4h32.4V29H132c-4 1.1-7.4 3.8-9.1 7.3h41.5V14.4H132l-.1-7.2M70.3 7.3h27c3.8-.7 6.6-4.1 7.3-7.3H62.9c.8 3.2 3.6 6.5 7.4 7.3M70.3 21.6h27c3.8-.7 6.6-4.1 7.3-7.3H62.9c.8 3.2 3.6 6.5 7.4 7.3M70.3 36.3h27c3.8-.7 6.6-4.1 7.3-7.3H62.9c.8 3.2 3.6 6.6 7.4 7.3"
/>

<g>
<path
className="st0"
d="M0 .1c.8 3.2 3.6 6.4 7.3 7.2h11.4l.6.2v28.7h7.1V7.5l.6-.2h11.4c3.8-1 6.5-4 7.3-7.2V0L0 .1"
/>
</g>
</g>
</svg>
);
}

export default Tesla;
27 changes: 27 additions & 0 deletions components/layout/Layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import Link from "next/link";
import styles from "./Layout.module.css";

function Layout({ children }) {
return (
<>
<header className={styles.header}>
<div className={styles.left}>
<Link href="/">BotoFood</Link>
</div>
<div className={styles.right}>
<Link href="/menu">Menu</Link>
<Link href="/categories">Categories</Link>
</div>
</header>
<div className={styles.container}>{children}</div>
<footer className={styles.footer}>
<a href="https://botostart.ir" target="_blank" rel="noreferrer">
Botostart
</a>
Next.js course | BotoFood Project &copy;
</footer>
</>
);
}

export default Layout;
49 changes: 49 additions & 0 deletions components/layout/Layout.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.header {
max-width: 900px;
margin: auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0px;
}

.left a {
color: #53c60b;
font-weight: 600;
font-size: 1.2rem;
}

.right a {
margin-left: 15px;
color: dimgrey;
font-weight: 500;
}

.footer {
background-color: #53c60b;
text-align: center;
color: #fff;
padding: 10px 0;
margin-top: 30px;
}

.footer a {
text-decoration: none;
color: #234a0b;
}

.container {
min-height: 1000px;
}

@media (max-width: 900px) {
.header {
padding: 20px;
}
}

@media (max-width: 600px) {
.header {
padding: 10px;
}
}
33 changes: 33 additions & 0 deletions components/modules/Attributes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import Choice from "../icons/Choice";
import Clock from "../icons/Clock";
import Fast from "../icons/Fast";
import Food from "../icons/Food";
import styles from "./Attributes.module.css";

function Attributes() {
return (
<div className={styles.container}>
<h3>Why us?</h3>
<div className={styles.subContainer}>
<div>
<Fast />
<p>Fast</p>
</div>
<div>
<Food />
<p>Best Restaurants</p>
</div>
<div>
<Choice />
<p>Your Choice</p>
</div>
<div>
<Clock />
<p>24-7</p>
</div>
</div>
</div>
);
}

export default Attributes;
35 changes: 35 additions & 0 deletions components/modules/Attributes.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.container {
margin-top: 100px;
}

.container h3 {
font-size: 1.5rem;
color: #53c60b;
margin: 24px 0;
}

.subContainer {
display: flex;
justify-content: space-between;
}

.subContainer div {
width: 150px;
border-radius: 10px;
box-shadow: rgba(92, 245, 115, 0.123) 0px 4px 16px,
rgba(17, 17, 26, 0.05) 0px 8px 32px;
text-align: center;
padding: 25px 20px 20px;
margin-top: 20px;
}

.subContainer p {
font-weight: 600;
margin-top: 20px;
}

@media (max-width: 900px) {
.subContainer {
flex-wrap: wrap;
}
}
Loading

1 comment on commit 7be1733

@vercel
Copy link

@vercel vercel bot commented on 7be1733 Jan 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

botofood – ./

botofood-git-main-miladazami.vercel.app
botofood-miladazami.vercel.app
botofood.vercel.app

Please sign in to comment.