Skip to content

Commit

Permalink
upgrade user recioe user fav tab user userViewPr
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogapinarr committed May 25, 2024
1 parent c00e847 commit 5ffd3e2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
22 changes: 11 additions & 11 deletions scripts/userRecipeDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,17 @@ let slideIndex = 0;
const slidesContainer = document.getElementById('slides');

// AI'dan gelen verileri burada tanımlayın
const aiData = [
{ img: "image1.jpg", alt: "AI verisi 1" },
{ img: "image2.jpg", alt: "AI verisi 2" },
{ img: "image3.jpg", alt: "AI verisi 3" },
{ img: "image4.jpg", alt: "AI verisi 4" },
{ img: "image5.jpg", alt: "AI verisi 5" },
{ img: "image6.jpg", alt: "AI verisi 6" },
{ img: "image7.jpg", alt: "AI verisi 7" },
{ img: "image8.jpg", alt: "AI verisi 8" },
{ img: "image9.jpg", alt: "AI verisi 9" }
];
// const aiData = [
// { img: "image1.jpg", alt: "AI verisi 1" },
// { img: "image2.jpg", alt: "AI verisi 2" },
// { img: "image3.jpg", alt: "AI verisi 3" },
// { img: "image4.jpg", alt: "AI verisi 4" },
// { img: "image5.jpg", alt: "AI verisi 5" },
// { img: "image6.jpg", alt: "AI verisi 6" },
// { img: "image7.jpg", alt: "AI verisi 7" },
// { img: "image8.jpg", alt: "AI verisi 8" },
// { img: "image9.jpg", alt: "AI verisi 9" }
// ];

// Verileri 3'erli gruplar halinde slider'a eklemek
for (let i = 0; i < aiData.length; i += 3) {
Expand Down
8 changes: 5 additions & 3 deletions styles/userViewProfile.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,12 @@ body {
}

.recipe-photo {
width: 200px; /* Example width */
height: auto; /* Maintain aspect ratio */
margin-right: 20px; /* Space between photo and details */
width: 200px; /* Sabit genişlik */
height: 200px; /* Sabit yükseklik */
object-fit: cover; /* Fotoğrafı kırparak sabit boyuta sığdır */
margin-right: 20px; /* Fotoğraf ile detaylar arasında boşluk */
}

@media only screen and (max-width: 600px) {
.recipe-photo {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion templates/userFavTab.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<button id="back-arrow-button">
<ion-icon class="back-arrow" name="chevron-back-circle-outline"></ion-icon>
</button>
<h1 class="header-title" style="margin-left:650px; color: #c4bbf0; -webkit-text-stroke: 0;">Favorite Recipes</h1>
<h1 class="header-title" style="margin-left:625px; color: #c4bbf0; -webkit-text-stroke: 0;">Favorite Recipes</h1>
</div>
</div>
</header>
Expand Down

0 comments on commit 5ffd3e2

Please sign in to comment.