blog, testimonal

This commit is contained in:
2026-11-18 15:40:30 +05:45
parent a41dfbe939
commit 7ea12b20ef
12 changed files with 4527 additions and 38 deletions
+173
View File
@@ -0,0 +1,173 @@
<?php
require_once __DIR__ . '/includes/data.php';
$pageTitle = 'Testimonials | AI Institute';
$pageDescription = 'Search by student or course to read learner experiences from practical AI learning at AI Institute.';
$activePage = 'testimonial';
// Sample content: replace with real, consented student testimonials.
$testimonialCourses = [
'Practical AI Foundations',
'AI for Digital Marketing',
'AI for Business Productivity',
'AI for Content Creation',
'AI Tools for Everyday Work',
'Prompt Writing Essentials',
];
$testimonialTexts = [
'The lessons explained practical AI tools in a clear way. I appreciated the simple examples and the chance to practise step by step, which made it easier to understand how AI can support everyday tasks.',
'This course helped me explore how AI can assist with planning and writing. The activities were easy to follow, and I liked learning how to review and improve AI-generated drafts with care.',
'I found the sessions helpful for understanding basic AI concepts and useful prompts. The guidance focused on practical use, which made the learning experience feel relevant and approachable.',
'The course introduced AI tools in a calm, structured way. I learned how to break tasks into smaller steps and use AI as support while still thinking through my own ideas.',
'I enjoyed learning practical ways to use AI for organising information and creating outlines. The examples were clear, and the exercises encouraged thoughtful and responsible use of the tools.',
'This learning experience gave me a better understanding of how to write clearer prompts. The explanations were simple, and the practice activities helped me feel more confident exploring AI features.',
'The course focused on everyday uses of AI, which I found very useful. I learned how to ask better questions, check responses carefully, and apply tools to common work tasks.',
'I appreciated the practical approach to learning AI. The sessions showed how to use tools for drafting, summarising, and planning while keeping the final decisions in my own hands.',
'The material was easy to understand and focused on real tasks. I learned helpful ways to experiment with AI tools, review the results, and improve my prompts over time.',
'This course made AI feel more approachable. The step-by-step guidance and practical examples helped me understand how AI can support communication and organisation in daily work.',
'I liked how the course balanced simple explanations with hands-on practice. It helped me learn how to use AI tools thoughtfully and adapt them to different kinds of tasks.',
'The lessons offered practical ideas for using AI in content planning and everyday workflows. I found the examples clear and the focus on careful review especially helpful.',
'This course helped me understand the basics of working with AI tools. The activities encouraged me to practise, reflect, and learn how to use AI in a clear and responsible way.',
'I found the learning experience useful for exploring AI in a practical context. The guidance on prompts, drafts, and reviewing output made the process easier to follow.',
'The course provided a helpful introduction to using AI for routine tasks. I learned simple techniques for organising ideas, improving clarity, and checking information before using it.',
'I enjoyed the practical focus of the sessions. They showed how AI can support brainstorming and planning, while reminding me to stay thoughtful about the quality of each response.',
'This experience helped me build a clearer understanding of everyday AI use. The examples were relatable, and the exercises made it easier to practise with confidence.',
'The course offered useful guidance on working with AI tools in a practical way. I learned how to create better prompts and take time to review and refine the results.',
'I appreciated learning how AI can assist with simple work tasks like drafting and summarising. The course kept things clear and encouraged careful, responsible use throughout.',
'The sessions were easy to follow and focused on practical learning. I gained a better sense of how to use AI tools as support while keeping my own judgement involved.',
'This course gave me helpful ways to think about AI in daily tasks. I learned to start with clear goals, try different prompts, and review outputs before moving forward.',
'I found the practical exercises valuable for understanding how AI tools can fit into everyday work. The course encouraged curiosity, clarity, and thoughtful review at each step.',
'The learning materials explained AI concepts in a simple and useful way. I liked practising with real examples and learning how to improve prompts for clearer responses.',
'This course helped me explore practical AI skills at a comfortable pace. The focus on clear instructions, careful checking, and everyday use made the experience very accessible.',
];
$testimonialDates = [
'18 Nov 2026',
'12 Nov 2026',
'05 Nov 2026',
'29 Oct 2026',
'21 Oct 2026',
'14 Oct 2026',
];
$testimonials = [];
for ($i = 1; $i <= 24; $i++) {
$testimonials[] = [
'id' => $i,
'name' => 'Student Name ' . $i,
'course' => $testimonialCourses[($i - 1) % count($testimonialCourses)],
'text' => $testimonialTexts[$i - 1] ?? '',
'date' => $testimonialDates[($i - 1) % count($testimonialDates)],
'initials' => 'S' . $i,
];
}
require __DIR__ . '/includes/header.php';
?>
<main id="main-content">
<!-- ===== TESTIMONIALS HERO ===== -->
<section class="testimonials-hero cert-hero section">
<div class="container">
<div class="testimonials-hero__content reveal">
<nav class="breadcrumb testimonials__breadcrumb" aria-label="Breadcrumb">
<ol class="breadcrumb__list">
<li class="breadcrumb__item"><a href="index.php">Home</a></li>
<li class="breadcrumb__item" aria-current="page">Testimonials</li>
</ol>
</nav>
<span class="eyebrow">Testimonials</span>
<h1 class="section__title">What our students say.</h1>
<p class="section__lead">Search by student or course to read learner experiences.</p>
</div>
</div>
</section>
<!-- ===== TESTIMONIALS ===== -->
<section class="section testimonials" id="testimonials">
<div class="container">
<div class="section__head reveal">
<h2 class="section__title">Search Student/Course to see what our students say about it</h2>
</div>
<div class="testimonials__controls reveal">
<div class="testimonials__search">
<label class="testimonials__search-label" for="testimonial-search">Search by student or course</label>
<div class="testimonials__search-wrap">
<span class="testimonials__search-icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" focusable="false"><circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
</span>
<input class="testimonials__search-input" type="search" id="testimonial-search" name="testimonial-search" placeholder="Search by student or course" autocomplete="off">
</div>
</div>
<div class="testimonials__tabs" role="tablist" aria-label="Testimonial type">
<button class="testimonials__tab is-active" type="button" role="tab" id="testimonials-tab-text" aria-selected="true" aria-controls="testimonials-panel-text" data-tab="text">Text</button>
<button class="testimonials__tab" type="button" role="tab" id="testimonials-tab-video" aria-selected="false" aria-controls="testimonials-panel-video" data-tab="video" tabindex="-1">Video</button>
</div>
</div>
<div class="testimonials__panel" id="testimonials-panel-text" role="tabpanel" aria-labelledby="testimonials-tab-text">
<div class="testimonials__grid">
<?php foreach ($testimonials as $item): ?>
<?php
$itemId = $item['id'] ?? 0;
$itemName = $item['name'] ?? '';
$itemCourse = $item['course'] ?? '';
$itemText = $item['text'] ?? '';
$itemDate = $item['date'] ?? '';
$itemInitials = $item['initials'] ?? '';
?>
<article class="testimonial-card card reveal" data-id="<?= (int) $itemId ?>" data-name="<?= e($itemName) ?>" data-course="<?= e($itemCourse) ?>">
<div class="testimonial-card__avatar" aria-hidden="true"><?= e($itemInitials) ?></div>
<h3 class="testimonial-card__name"><?= e($itemName) ?></h3>
<p class="testimonial-card__course"><?= e($itemCourse) ?></p>
<p class="testimonial-card__text"><?= e($itemText) ?></p>
<button
class="testimonial-card__more"
type="button"
data-id="<?= (int) $itemId ?>"
data-name="<?= e($itemName) ?>"
data-course="<?= e($itemCourse) ?>"
data-text="<?= e($itemText) ?>"
data-date="<?= e($itemDate) ?>"
data-initials="<?= e($itemInitials) ?>"
>Read more</button>
</article>
<?php endforeach; ?>
</div>
<p class="testimonials__empty" hidden>No results found</p>
<div class="testimonials__actions">
<button class="btn btn--ghost testimonials__more" type="button" hidden>Load more</button>
</div>
</div>
<div class="testimonials__panel" id="testimonials-panel-video" role="tabpanel" aria-labelledby="testimonials-tab-video" hidden>
<div class="testimonials__video-empty card">
<p class="testimonials__empty testimonials__empty--video">Video testimonials are coming soon.</p>
</div>
</div>
</div>
</section>
<!-- ===== TESTIMONIAL MODAL ===== -->
<div class="testimonial-modal" id="testimonial-modal" aria-hidden="true">
<div class="testimonial-modal__overlay" data-modal-close></div>
<div class="testimonial-modal__panel" role="dialog" aria-modal="true" aria-labelledby="testimonial-modal-title" tabindex="-1">
<button class="testimonial-modal__close" type="button" data-modal-close>Close</button>
<div class="testimonial-modal__quote" aria-hidden="true"><?= icon('quote') ?></div>
<p class="testimonial-modal__text" id="testimonial-modal-text"></p>
<div class="testimonial-modal__author">
<div class="testimonial-modal__avatar" aria-hidden="true"></div>
<p class="testimonial-modal__name" id="testimonial-modal-title"></p>
<p class="testimonial-modal__course" id="testimonial-modal-course"></p>
<p class="testimonial-modal__date" id="testimonial-modal-date"></p>
</div>
</div>
</div>
</main>
<?php require __DIR__ . '/includes/footer.php'; ?>