Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
SrijaVuppala295 committed Oct 30, 2024
1 parent 7082387 commit acf42b6
Show file tree
Hide file tree
Showing 3 changed files with 259 additions and 15 deletions.
120 changes: 120 additions & 0 deletions src/app/components/header/header.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,123 @@ p.text-indigo-100 {
.logo a:hover {
color: #ffa500;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
}

.testimonials-wrap {
text-align: center;
padding: 50px 0;
}

.heading-section {
margin-bottom: 30px;
}

.sub-heading {
font-size: 18px;
color: #ff5e63;
text-transform: uppercase;
font-weight: bold;
}

.heading-section h2 {
font-size: 32px;
color: #333;
}

.carousel-testimonial {
position: relative;
max-width: 600px;
margin: 0 auto;
}

.arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: #ff5e63;
color: #fff;
padding: 10px;
cursor: pointer;
border-radius: 50%;
z-index: 10;
}

.left-arrow {
left: -30px;
}

.right-arrow {
right: -30px;
}

.testimonial-container {
overflow: hidden;
width: 100%;
}

.testimonial-items {
display: flex;
transition: transform 0.5s ease-in-out;
}

.item {
min-width: 100%;
display: flex;
justify-content: center;
}

.testimonial-box {
background-color: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
display: flex;
max-width: 500px;
}

.user-img {
width: 80px; /* Equal width and height for a perfect circle */
height: 80px;
background-size: cover; /* Ensures the image covers the entire area */
background-position: center; /* Centers the image */
border-radius: 50%; /* Makes the image circular */
margin-right: 20px; /* Space between image and text */
border: 3px solid #ff5e63; /* Adds a border to enhance the look */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
overflow: hidden; /* Prevents overflow to maintain circular shape */
}


.text {
text-align: left;
}

.quote {
font-size: 24px;
color: #ff5e63;
}

.message {
font-size: 16px;
color: #333;
margin: 10px 0;
}

.name {
font-size: 18px;
font-weight: bold;
}

.position {
font-size: 14px;
color: #666;
}
91 changes: 91 additions & 0 deletions src/app/components/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/ScrollTrigger.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/i18next/21.6.10/i18next.min.js"></script>

<!-- <iframe
src="https://www.chatbase.co/chatbot-iframe/L51AYDMWE0tDQxPXKTgeX"
width="100%"
Expand Down Expand Up @@ -453,6 +454,96 @@ <h2>All Threads</h2>
</div>
</div>







<div class="testimonials-wrap">
<div class="container">
<div class="heading-section">
<span class="sub-heading">Testimonials</span>
<h2>Happy Clients &amp; Feedbacks</h2>
</div>

<div class="carousel-testimonial">
<div class="arrow left-arrow" onclick="prevSlide()"><i class="fa fa-arrow-left"></i></div>

<div class="testimonial-container">
<div class="testimonial-items">
<div class="item">
<div class="testimonial-box">
<div class="user-img" style="background-image: url(https://randomuser.me/api/portraits/men/82.jpg)"></div>
<div class="text">
<span class="quote"><i class="fa fa-quote-left"></i></span>
<p class="message">Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.</p>
<p class="name">Mark Huff</p>
<span class="position">Businessman</span>
</div>
</div>
</div>

<div class="item">
<div class="testimonial-box">
<div class="user-img" style="background-image: url(https://randomuser.me/api/portraits/women/79.jpg)"></div>
<div class="text">
<span class="quote"><i class="fa fa-quote-left"></i></span>
<p class="message">Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life.</p>
<p class="name">Anna Kendrick</p>
<span class="position">Designer</span>
</div>
</div>
</div>

<div class="item">
<div class="testimonial-box">
<div class="user-img" style="background-image: url(https://randomuser.me/api/portraits/men/88.jpg)"></div>
<div class="text">
<span class="quote"><i class="fa fa-quote-left"></i></span>
<p class="message">When she reached the first hills of the Italic Mountains, she had a last view back on the skyline.</p>
<p class="name">John Smith</p>
<span class="position">Software Engineer</span>
</div>
</div>
</div>
</div>
</div>

<div class="arrow right-arrow" onclick="nextSlide()"><i class="fa fa-arrow-right"></i></div>
</div>
</div>
</div>




<script>
let currentIndex = 0;
const items = document.querySelectorAll('.testimonial-items .item');
const testimonialItems = document.querySelector('.testimonial-items');
const totalItems = items.length;

function showSlide(index) {
const offset = -index * 100;
testimonialItems.style.transform = `translateX(${offset}%)`;
}

function nextSlide() {
currentIndex = (currentIndex + 1) % totalItems;
showSlide(currentIndex);
}

function prevSlide() {
currentIndex = (currentIndex - 1 + totalItems) % totalItems;
showSlide(currentIndex);
}

// Initial display
showSlide(currentIndex);

</script>

<!-- Inline JavaScript code (previously TypeScript) -->
<script>
// Initialize threads from local storage
Expand Down
63 changes: 48 additions & 15 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,53 @@
border-color: #4caf50;
box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
/* Testimonials Section */
.testimonials {
text-align: center;
padding: 50px 20px;
background-color: #f9f9f9;
}

.testimonials h2 {
font-size: 2em;
margin-bottom: 30px;
color: #333;
}

.testimonial-container {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
}

.testimonial-card {
background: #fff;
border-radius: 8px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
max-width: 300px;
margin: 10px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
transform: translateY(-5px);
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
font-size: 1.1em;
color: #555;
margin-bottom: 15px;
font-style: italic;
}

.testimonial-user {
font-weight: bold;
color: #333;
}


.newsletter-container button {
padding: 12px 20px;
Expand Down Expand Up @@ -954,21 +1001,7 @@ <h2>Contact Us</h2>
</script>

<!-- Testimonials Section -->
<div class="testimonials">
<h2>What Our Users Say</h2>
<div class="testimonial">
<p>"This platform has transformed my understanding of algorithms!"</p>
<p><strong>- User A</strong></p>
</div>
<div class="testimonial">
<p>"The real-time collaboration features are fantastic!"</p>
<p><strong>- User B</strong></p>
</div>
<div class="testimonial">
<p>"I love the interactive courses and challenges!"</p>
<p><strong>- User C</strong></p>
</div>
</div>


</body>

Expand Down

0 comments on commit acf42b6

Please sign in to comment.