Skip to content

Commit bc0a9c5

Browse files
committed
updet
1 parent aa72c0c commit bc0a9c5

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

Home/getAllProducts.Js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ function displayCategories(CategoriesToDisplay) {
2525
CategoriesToDisplay.forEach((element) => {
2626
Div_category.innerHTML += `
2727
<div class="Card">
28-
<a href="./categoryProduct.html?category=${element.slug}" class="link" target="_blank">${element.name}</a>
28+
<a href="./Home/categoryProduct.html?category=${element.slug}" class="link" target="_blank">${element.name}</a>
2929
</div>
3030
`;
3131
Div_Category_1.innerHTML += `
3232
<li class="list-group-item">
33-
<a href="./categoryProduct.html?category=${element.slug}" class="link" target="_blank">${element.name}</a>
33+
<a href="./Home/categoryProduct.html?category=${element.slug}" class="link" target="_blank">${element.name}</a>
3434
</li>
3535
`;
3636
});
@@ -66,7 +66,7 @@ function displayProducts(productsToDisplay) {
6666
<div class="card-body">
6767
<h5 class="card-title">${element.brand}</h5>
6868
<p class="card-text">${element.description}</p>
69-
<a href="../Home/ProductDetails.html?id=${element.id}" class="btn" target="_blank">Show Details</a>
69+
<a href="./Home/ProductDetails.html?id=${element.id}" class="btn" target="_blank">Show Details</a>
7070
</div>
7171
</div>
7272
</div>

css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
}
7676
.containers {
7777
margin: 0;
78+
padding: 0;
7879
}
7980
}
8081
/* End navbar */

index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Home</title>
8-
<link rel="stylesheet" href="../css/swiper-bundle.min.css" />
9-
<link rel="stylesheet" href="../css/normalize.css">
10-
<link rel="stylesheet" href="../css/main.css">
8+
<link rel="stylesheet" href="./css/swiper-bundle.min.css" />
9+
<link rel="stylesheet" href="./css/normalize.css">
10+
<link rel="stylesheet" href="./css/main.css">
1111
<!-- bootstrap link -->
1212
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
1313
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
@@ -52,25 +52,25 @@
5252
<a class="nav-link active" aria-current="page" href="./index.html">Home</a>
5353
</li>
5454
<li class="nav-item">
55-
<a class="nav-link" href="../contact_ page/contact.html">Contact</a>
55+
<a class="nav-link" href="./contact_ page/contact.html">Contact</a>
5656
</li>
5757
<li class="nav-item">
58-
<a class="nav-link" href="../about/about.html">About</a>
58+
<a class="nav-link" href="./about/about.html">About</a>
5959
</li>
6060
<li class="nav-item">
61-
<a class="nav-link" href="../create acount/create.htm">Sign up</a>
61+
<a class="nav-link" href="./create acount/create.htm">Sign up</a>
6262
</li>
6363
</ul>
6464
<form class="d-flex" role="search">
6565
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search"
6666
id="searchInput" onkeyup="searchProducts()">
6767
<i class="fa-solid fa-magnifying-glass"></i>
6868
<div class="ico">
69-
<a href="../Cart/cart.html"><i class="fa-solid fa-cart-shopping"></i></a>
69+
<a href="./Cart/cart.html"><i class="fa-solid fa-cart-shopping"></i></a>
7070
</div>
7171

7272
<div class="person">
73-
<a href="../editProfilePage/EditProfilePage.html"><img src="../image/MR.png"></a>
73+
<a href="./editProfilePage/EditProfilePage.html"><img src="./image/MR.png"></a>
7474
<p id="login-message"></p>
7575
</div>
7676
</form>
@@ -121,16 +121,16 @@ <h2>Our Story</h2>
121121
</div>
122122
<div class="carousel-inner" style="height: 100%;">
123123
<div class="carousel-item active" style="position: relative; object-fit: cover;">
124-
<img src="../image/artbreeder-image-2025-04-12T14_38_56.077Z.jpeg" class="d-block w-100" alt="..." style="object-fit: cover; height: 100%; width: 100%;">
124+
<img src="./image/artbreeder-image-2025-04-12T14_38_56.077Z.jpeg" class="d-block w-md-100 w-sm-75" alt="..." style="object-fit: cover; height: 100%; width: 100%;">
125125
</div>
126126
<div class="carousel-item" style="position: relative;">
127-
<img src="../image/artbreeder-image-2025-04-12T14_46_45.276Z.jpeg" class="d-block w-100" alt="..." style="object-fit: cover; height: 100%; width: 100%;">
127+
<img src="./image/artbreeder-image-2025-04-12T14_46_45.276Z.jpeg" class="d-block w-md-100 w-sm-75" alt="..." style="object-fit: cover; height: 100%; width: 100%;">
128128
</div>
129129
<div class="carousel-item" style="position: relative;">
130-
<img src="../image/artbreeder-image-2025-04-12T14_47_44.347Z.jpeg" class="d-block w-100" alt="..." style="object-fit: cover; height: 100%; width: 100%;">
130+
<img src="./image/artbreeder-image-2025-04-12T14_47_44.347Z.jpeg" class="d-block w-md-100 w-sm-75" alt="..." style="object-fit: cover; height: 100%; width: 100%;">
131131
</div>
132132
<div class="carousel-item" style="position: relative;">
133-
<img src="../image/artbreeder-image-2025-04-12T14_48_21.651Z.jpeg" class="d-block w-100" alt="..." style="object-fit: cover; height: 100%; width: 100%;">
133+
<img src="./image/artbreeder-image-2025-04-12T14_48_21.651Z.jpeg" class="d-block w-md-100 w-sm-75" alt="..." style="object-fit: cover; height: 100%; width: 100%;">
134134
</div>
135135
</div>
136136
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">

0 commit comments

Comments
 (0)