Skip to content

Commit b6d4624

Browse files
committed
add testimonials section to homepage with first testimonial
1 parent 86941dc commit b6d4624

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed

assets/scss/_styles_project.scss

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,101 @@ code {
277277
border-color: $scale-pale transparent transparent transparent !important;
278278
}
279279

280+
// Testimonial section (td-box--4) - darkest green for contrast
281+
.td-box--4 {
282+
background-color: $scale-dark !important;
283+
color: #ffffff !important;
284+
285+
h1, h2, h3, h4, h5, h6, p, li, td, th {
286+
color: #ffffff !important;
287+
}
288+
}
289+
290+
// Testimonial card
291+
.testimonial-section {
292+
max-width: 640px;
293+
margin: 0 auto;
294+
text-align: center;
295+
}
296+
297+
.testimonial-heading {
298+
font-size: 1.1rem;
299+
font-weight: 500;
300+
text-transform: uppercase;
301+
letter-spacing: 0.15em;
302+
color: rgba(255, 255, 255, 0.6) !important;
303+
margin-bottom: 2.5rem;
304+
}
305+
306+
.testimonial-card {
307+
display: flex;
308+
flex-direction: column;
309+
align-items: center;
310+
}
311+
312+
.testimonial-photo {
313+
width: 96px;
314+
height: 96px;
315+
border-radius: 50%;
316+
object-fit: cover;
317+
border: 3px solid rgba(16, 185, 129, 0.4);
318+
box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
319+
margin-bottom: 1.75rem;
320+
}
321+
322+
.testimonial-quote {
323+
font-size: 1.25rem;
324+
font-style: italic;
325+
line-height: 1.7;
326+
color: #e2e8f0 !important;
327+
margin: 0 0 1.5rem 0;
328+
padding: 0;
329+
border: none;
330+
position: relative;
331+
332+
&::before {
333+
content: "\201C";
334+
font-size: 3rem;
335+
color: rgba(16, 185, 129, 0.4);
336+
position: absolute;
337+
top: -1.2rem;
338+
left: -1.5rem;
339+
font-style: normal;
340+
line-height: 1;
341+
}
342+
343+
&::after {
344+
content: "\201D";
345+
font-size: 3rem;
346+
color: rgba(16, 185, 129, 0.4);
347+
position: absolute;
348+
bottom: -1.5rem;
349+
right: -0.5rem;
350+
font-style: normal;
351+
line-height: 1;
352+
}
353+
}
354+
355+
.testimonial-author {
356+
font-size: 1rem;
357+
font-weight: 600;
358+
color: #ffffff !important;
359+
margin-bottom: 0.25rem;
360+
}
361+
362+
.testimonial-title {
363+
font-size: 0.875rem;
364+
color: rgba(255, 255, 255, 0.5) !important;
365+
}
366+
367+
.testimonial-logo {
368+
max-width: 160px;
369+
height: auto;
370+
margin-top: 1.5rem;
371+
opacity: 0.7;
372+
filter: brightness(1.5);
373+
}
374+
280375
// Scroll down link button
281376
.td-link-down {
282377
display: block;

content/en/_index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,20 @@ let one_per_day = factory
7878
</div>
7979

8080
{{% /blocks/section %}}
81+
82+
{{% blocks/section %}}
83+
84+
<div class="testimonial-section">
85+
<h2 class="testimonial-heading">What people say</h2>
86+
<div class="testimonial-card">
87+
<img class="testimonial-photo" src="/images/testimonials/fawaz-halwani.jpeg" alt="Fawaz Halwani">
88+
<blockquote class="testimonial-quote">
89+
I have incorporated SolverForge in my new Rust application for staff scheduling and it's working like a charm, A+
90+
</blockquote>
91+
<div class="testimonial-author">Fawaz Halwani</div>
92+
<div class="testimonial-title">Pathologist, The Ottawa Hospital</div>
93+
<img class="testimonial-logo" src="/images/testimonials/ottawa-hospital.jpg" alt="The Ottawa Hospital">
94+
</div>
95+
</div>
96+
97+
{{% /blocks/section %}}
26.3 KB
Loading
90 KB
Loading

0 commit comments

Comments
 (0)