Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
saaqi committed Jun 12, 2024
1 parent 7641cb6 commit f182eb4
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 42 deletions.
36 changes: 18 additions & 18 deletions src/js/deals.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ const alertBoxesData = [
},
];
const alertBoxHtml = alertBoxesData.map((bx) => {
const body = bx.body ? bx.body : ``;
const output =
`<li>${body}</li>`;
return output;
const body = bx.body ? bx.body : ``
return `<li>${body}</li>`
});
const alertBoxesElement = document.querySelector("#alert-boxes .card-body");
if (alertBoxesElement) alertBoxesElement.innerHTML = alertBoxHtml.join("");
const alertBoxesElement = document.querySelector("#alert-boxes .card-body")
if (alertBoxesElement) alertBoxesElement.innerHTML = alertBoxHtml.join("")



Expand Down Expand Up @@ -79,16 +77,18 @@ const dealsSlidesData = [
},
];
const dealsSlidesHtml = dealsSlidesData.map((sl) => {
return `<li class="glide__slide h-auto">
<div class="ag-courses_item h-100 bg-primary p-3 text-light rounded">
<div class="ag-courses-item_bg"></div>
<div class="ag-courses-item_title fs-5 fw-medium mb-2">
<div>${sl.icon}</div>
<div>${sl.title}</div>
</div>
<div class="ag-course-body"> ${sl.body}</div>
</div>
</li>`;
const output =
`<li class="glide__slide h-auto">`+
`<div class="ag-courses_item h-100 bg-primary p-3 text-light rounded">`+
`<div class="ag-courses-item_bg"></div>`+
`<div class="ag-courses-item_title fs-5 fw-medium mb-2">`+
`<div>${sl.icon}</div>`+
`<div>${sl.title}</div>`+
`</div>`+
`<div class="ag-course-body">${sl.body}</div>`+
`</div>`+
`</li>`
return output
});
const dealsSlidesElement = document.getElementById("deals-slides");
if (dealsSlidesElement) dealsSlidesElement.innerHTML = dealsSlidesHtml.join("");
const dealsSlidesElement = document.getElementById("deals-slides")
if (dealsSlidesElement) dealsSlidesElement.innerHTML = dealsSlidesHtml.join("")
49 changes: 25 additions & 24 deletions src/js/testimonials.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,36 +90,37 @@ const alertBoxesData = [
name: `Maybelline Sierra`,
body: `I needed 4 new tires, a wheel alignment and rear brake pads and rotors for my 2018 Honda Accord. I called at least 6 places for quotes and Car Club gave me the best deal by far. I called them back several times with new questions while I was still shopping around for price quotes and each time, they were super patien+t and kind with me. When I finally decided to go with them, they got me in for service the very next day and did a great job! Now we will be bringing them our second car as well for some needed routine maintenance. I highly recommend them!`,
},
];
]

const aletBoxHtml = alertBoxesData.map((rv) => {
const avatar = rv.img
? `<img decoding="async" loading="lazy" width="26" height="26" src="${rv.img}" alt="Google Reviewer's Photo">`
: `<i class='bx bx-user p-1 border rounded-circle'></i>`;
const url = rv.url ? rv.url : ``;
const name = rv.name ? rv.name : ``;
const body = rv.body ? rv.body : ``;
: `<i class='bx bx-user p-1 border rounded-circle'></i>`
const url = rv.url ? rv.url : ``
const name = rv.name ? rv.name : ``
const body = rv.body ? rv.body : ``

const output = `<li class="glide__slide h-auto">
<figure class="h-100">
<figcaption class="text-center text-md-start mb-2 fw-medium">
<a href="${url}" title="5 star Google Review" target="_blank" rel="nofollow">
${avatar} ${name} &#8212; <i class="bx bxl-google"></i> <i class="bx bx-map-alt"></i>
</a>
</figcaption>
<div class="star-ratings mb-2 text-center text-md-start">
<i class="bxs-star bx"></i>
<i class="bxs-star bx"></i>
<i class="bxs-star bx"></i>
<i class="bxs-star bx"></i>
<i class="bxs-star bx"></i>
</div>
<blockquote class="blockquote">"${body}"</blockquote>
</figure>
</li>`;
const output =
`<li class="glide__slide h-auto">`+
`<figure class="h-100">`+
`<figcaption class="text-center text-md-start mb-2 fw-medium">`+
`<a href="${url}" title="5 star Google Review" target="_blank" rel="nofollow">`+
`${avatar} ${name} &#8212; <i class="bx bxl-google"></i> <i class="bx bx-map-alt"></i>`+
`</a>`+
`</figcaption>`+
`<div class="star-ratings mb-2 text-center text-md-start">`+
`<i class="bxs-star bx"></i>`+
`<i class="bxs-star bx"></i>`+
`<i class="bxs-star bx"></i>`+
`<i class="bxs-star bx"></i>`+
`<i class="bxs-star bx"></i>`+
`</div>`+
`<blockquote class="blockquote">"${body}"</blockquote>`+
`</figure>`+
`</li>`

return output;
});

const aletBoxesElement = document.getElementById(`review-slides`);
if (aletBoxesElement) aletBoxesElement.innerHTML = aletBoxHtml.join(``);
const aletBoxesElement = document.getElementById(`review-slides`)
if (aletBoxesElement) aletBoxesElement.innerHTML = aletBoxHtml.join(``)
Binary file added src/media/reviewers/Africans_In_Orlando.webp
Binary file not shown.
Binary file added src/media/reviewers/Danielle_Marie.webp
Binary file not shown.
Binary file added src/media/reviewers/Eddrina-Delmont.webp
Binary file not shown.
Binary file added src/media/reviewers/Lex_Scooter.webp
Binary file not shown.
Binary file added src/media/reviewers/Mercy_Ares.webp
Binary file not shown.
Binary file added src/media/reviewers/Virag_Anna_Szolgyemy.webp
Binary file not shown.
Binary file added src/media/reviewers/usman_shah.webp
Binary file not shown.
Binary file added src/media/reviewers/xavier_marin.webp
Binary file not shown.

0 comments on commit f182eb4

Please sign in to comment.