-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into Move-NumbersCounter-section-logic-to-numb…
…ersCounterContainer.js-#140
- Loading branch information
Showing
14 changed files
with
175 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
|
||
.section-title.page-name { | ||
font-size: 48px; | ||
margin: 0; | ||
} | ||
|
||
p.section-description { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
.testimonials-slider-content { | ||
display: flex; | ||
position: relative; | ||
justify-content: space-between; | ||
width: 100%; | ||
} | ||
|
||
.testimonials-card { | ||
overflow: hidden; | ||
margin: 20px; | ||
background-color: var(--secondary-color); | ||
} | ||
|
||
.testimonials-content { | ||
display: flex; | ||
align-items: flex-start; | ||
flex-direction: column; | ||
padding: 25px 30px 12px 30px; | ||
} | ||
|
||
.testimonials-content:hover .section-smaller { | ||
color: var(--primary-color); | ||
transition: 0.3s; | ||
cursor: pointer; | ||
} | ||
|
||
.testimonials-content .section-smaller { | ||
color: var(--fourth-color); | ||
} | ||
|
||
.testimonials-content .testimonials-img { | ||
border-radius: 50%; | ||
width: 30px; | ||
} | ||
|
||
.testimonials-actions { | ||
position: absolute; | ||
bottom: -45px; | ||
right: 45%; | ||
} | ||
|
||
@media (min-width: 1025px) { | ||
.testimonials-actions { | ||
right: -45px; | ||
top: 40%; | ||
} | ||
} | ||
@media (min-width: 1025px) { | ||
.carousel-btn { | ||
display: block; | ||
} | ||
} | ||
.carousel-btn { | ||
padding: 14px; | ||
background-color: var(--secondary-color); | ||
box-shadow: -10px 10px 30px 0px rgb(203, 202, 202); | ||
border: 0.5px solid var(--secondary-color); | ||
} | ||
.carousel-btn:hover { | ||
background-color: var(--primary-color); | ||
transition: 0.3s ease; | ||
cursor: pointer; | ||
color: var(--secondary-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
function testimonialsList(selector, data, imgPath) { | ||
const DOM = document.querySelector(selector); | ||
let html = `<div class="testimonials-actions"> | ||
<span class="lnr lnr-arrow-up carousel-btn"></span> | ||
<span class="lnr lnr-arrow-down carousel-btn"></span> | ||
</div>`; | ||
for (const item of data) { | ||
html += `<div class="col-12 testimonials-slider-content"> | ||
<div class="testimonials-card"> | ||
<div class="testimonials-content"> | ||
<img | ||
src="${imgPath}./img/blog-${item.picture}-img.webp" | ||
alt="author" | ||
class="testimonials-img" | ||
/> | ||
<p class="section-description"> | ||
${item.text} | ||
</p> | ||
<h3 class="section-smaller">${item.feedbackProvider}</h3> | ||
<p class="section-description">${item.job}</p> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
} | ||
if (DOM) { | ||
DOM.innerHTML = html; | ||
} | ||
return html; | ||
} | ||
export { testimonialsList }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const testimonialsData = [ | ||
{ | ||
picture: 'author', | ||
text: 'Do you want to be even more successful? Learn to love learning and growth. The more effort you put into improving your skills, the bigger the payoff you.', | ||
feedbackProvider: 'Harriet Maxwell', | ||
job: 'CEO at Google', | ||
}, | ||
{ | ||
picture: 'author2', | ||
text: 'A purpose is the eternal condition for success. Every former smoker can tell you just how hard it is to stop smoking cigarettes. However.', | ||
feedbackProvider: 'Carolyn Craig', | ||
job: 'CEO at Facebook', | ||
}, | ||
]; | ||
export { testimonialsData }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters