Skip to content

Commit 0c05d8f

Browse files
authored
Merge pull request #11 from abdofola/frontend
Frontend
2 parents 42378df + 49ddf1a commit 0c05d8f

15 files changed

+11
-7
lines changed

build.zip

-3.05 MB
Binary file not shown.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "client",
33
"version": "0.1.0",
44
"private": true,
5+
"homepage":"https://momo-japan-market.com/",
56
"dependencies": {
67
"@react-hook/intersection-observer": "^3.1.1",
78
"@react-hook/resize-observer": "^1.2.2",

public/favicon.ico

-508 Bytes
Binary file not shown.

public/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<head>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
7-
<meta name="description" content="Web site created using create-react-app" />
7+
<meta name="description" content="Momo Alrayah is a company trades in products based in Japan,
8+
and provides viable, reliable commidities in terms of finance and shipping to all african countries. " />
89
<meta name="author" content="Developed by Abdallah Alkaser" />
910
<title>Momo Store</title>
1011
</head>

public/logo_colored.svg

+1
Loading

public/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Create React App Sample",
44
"icons": [
55
{
6-
"src": "favicon.ico",
6+
"src": "logo_colored.ico",
77
"sizes": "64x64 32x32 24x24 16x16",
88
"type": "image/x-icon"
99
},

src/assets/bicycle/cross-bike.jpeg

-38.3 KB
Binary file not shown.

src/assets/bicycle/elec-bike.jpeg

-378 KB
Binary file not shown.

src/assets/bicycle/kid-mount.jpeg

-57.8 KB
Binary file not shown.

src/assets/bicycle/road-bike.jpeg

-94 KB
Binary file not shown.

src/components/Content.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { css } from "@emotion/react";
1010
import ClipLoader from "react-spinners/ClipLoader";
1111

1212
function Content() {
13-
const url = "https://momo-japan-market.com/products";
13+
const url = "https://api.momo-japan-market.com/products";
1414
const initState = {
1515
showAll: true,
1616
showBicycle: false,

src/components/Form.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const override = css`
1515
`;
1616

1717
function Form({ social }) {
18-
const url = "https://momo-japan-market.com/contact";
18+
const url = "https://api.momo-japan-market.com/contact";
1919
const msgRef = useRef(null);
2020
const [loading, setLoading] = useState(false);
2121
// custom hooks

src/components/ProductDetail.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import logo from "../logos/logo_trans.svg";
1111
const ProductDetail = () => {
1212
const [form, setForm] = useState(false);
1313
const { id } = useParams();
14-
const url = "https://momo-japan-market.com/product?id=" + id;
14+
const url = "https://api.momo-japan-market.com/product?id=" + id;
1515
const { data: product, isPending, error } = useFetch(url);
1616
const override = css`
1717
display: block;

src/components/Search.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import useInput from "../custom_hooks/useInput";
66

77

88
function Search() {
9+
const url = "https://api.momo-japan-market.com/products/";
910
const ref = useRef(null);
1011
const [searchProps, resetSearch] = useInput("");
1112
const [searchResult, setSearchResult] = useState([]);
1213
const [change, setChange] = useState(false);
13-
const { data: products } = useFetch("https://momo-japan-market.com/products/");
14+
const { data: products } = useFetch(url);
1415

1516

1617
// Return array of matching names : string

src/styles/_App.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
background: $white;
128128
border-radius: 5px;
129129
overflow: hidden;
130-
box-shadow: 1px 2px 3px rgba($black, 0.5), -1px -2px 3px rgba($black, 0.5);
130+
// box-shadow: 1px 2px 3px rgba($black, 0.5), -1px -2px 3px rgba($black, 0.5);
131131
transform: translateY(5em);
132132
opacity: 0;
133133
@include transition-ease;

0 commit comments

Comments
 (0)