blog, testimonal
This commit is contained in:
+2103
-3
File diff suppressed because it is too large
Load Diff
@@ -1612,3 +1612,510 @@
|
|||||||
initApplicationForm();
|
initApplicationForm();
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
// ===== STUDENT WORK GALLERY FILTERS
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
function initStudentWorkFilters() {
|
||||||
|
var page = document.querySelector('.student-work');
|
||||||
|
var grid = document.getElementById('student-work-grid');
|
||||||
|
|
||||||
|
if (!page || !grid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (grid.getAttribute('data-student-filters-init') === 'true') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
grid.setAttribute('data-student-filters-init', 'true');
|
||||||
|
|
||||||
|
var cards = Array.prototype.slice.call(
|
||||||
|
grid.querySelectorAll('.student-card')
|
||||||
|
);
|
||||||
|
var courseSelect = page.querySelector('[data-filter="course"]');
|
||||||
|
var skillSelect = page.querySelector('[data-filter="skill"]');
|
||||||
|
var batchSelect = page.querySelector('[data-filter="batch"]');
|
||||||
|
var resetButton = page.querySelector('.student-work__reset');
|
||||||
|
var count = page.querySelector('.student-work__count');
|
||||||
|
var emptyState = page.querySelector('.student-work__empty');
|
||||||
|
|
||||||
|
if (!cards.length || !courseSelect || !skillSelect || !batchSelect) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getSkills(card) {
|
||||||
|
var raw = card.getAttribute('data-skills') || '';
|
||||||
|
if (!raw) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return raw.split('|').filter(function (skill) {
|
||||||
|
return skill !== '';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function populateSelect(select, values, allLabel) {
|
||||||
|
var selected = select.value || 'all';
|
||||||
|
select.innerHTML = '';
|
||||||
|
|
||||||
|
var allOption = document.createElement('option');
|
||||||
|
allOption.value = 'all';
|
||||||
|
allOption.textContent = allLabel;
|
||||||
|
select.appendChild(allOption);
|
||||||
|
|
||||||
|
values.forEach(function (value) {
|
||||||
|
var option = document.createElement('option');
|
||||||
|
option.value = value;
|
||||||
|
option.textContent = value;
|
||||||
|
select.appendChild(option);
|
||||||
|
});
|
||||||
|
|
||||||
|
if (values.indexOf(selected) !== -1) {
|
||||||
|
select.value = selected;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function collectValues() {
|
||||||
|
var courses = [];
|
||||||
|
var skills = [];
|
||||||
|
var batches = [];
|
||||||
|
|
||||||
|
cards.forEach(function (card) {
|
||||||
|
var course = card.getAttribute('data-course') || '';
|
||||||
|
var batch = card.getAttribute('data-batch') || '';
|
||||||
|
|
||||||
|
if (course && courses.indexOf(course) === -1) {
|
||||||
|
courses.push(course);
|
||||||
|
}
|
||||||
|
if (batch && batches.indexOf(batch) === -1) {
|
||||||
|
batches.push(batch);
|
||||||
|
}
|
||||||
|
|
||||||
|
getSkills(card).forEach(function (skill) {
|
||||||
|
if (skills.indexOf(skill) === -1) {
|
||||||
|
skills.push(skill);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
courses.sort();
|
||||||
|
skills.sort();
|
||||||
|
batches.sort();
|
||||||
|
|
||||||
|
populateSelect(courseSelect, courses, 'All courses');
|
||||||
|
populateSelect(skillSelect, skills, 'All skills');
|
||||||
|
populateSelect(batchSelect, batches, 'All batches');
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateCount(visible) {
|
||||||
|
if (count) {
|
||||||
|
count.textContent = 'Showing ' + visible + ' illustrative concept' + (visible === 1 ? '' : 's');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyFilters() {
|
||||||
|
var course = courseSelect.value;
|
||||||
|
var skill = skillSelect.value;
|
||||||
|
var batch = batchSelect.value;
|
||||||
|
var visible = 0;
|
||||||
|
|
||||||
|
cards.forEach(function (card) {
|
||||||
|
var cardCourse = card.getAttribute('data-course') || '';
|
||||||
|
var cardBatch = card.getAttribute('data-batch') || '';
|
||||||
|
var cardSkills = getSkills(card);
|
||||||
|
var matchesCourse = course === 'all' || cardCourse === course;
|
||||||
|
var matchesSkill = skill === 'all' || cardSkills.indexOf(skill) !== -1;
|
||||||
|
var matchesBatch = batch === 'all' || cardBatch === batch;
|
||||||
|
var show = matchesCourse && matchesSkill && matchesBatch;
|
||||||
|
|
||||||
|
card.classList.toggle('is-hidden', !show);
|
||||||
|
if (show) {
|
||||||
|
visible += 1;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
updateCount(visible);
|
||||||
|
|
||||||
|
if (emptyState) {
|
||||||
|
emptyState.hidden = visible !== 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
collectValues();
|
||||||
|
applyFilters();
|
||||||
|
|
||||||
|
[courseSelect, skillSelect, batchSelect].forEach(function (select) {
|
||||||
|
select.addEventListener('change', applyFilters);
|
||||||
|
});
|
||||||
|
|
||||||
|
if (resetButton) {
|
||||||
|
resetButton.addEventListener('click', function () {
|
||||||
|
courseSelect.value = 'all';
|
||||||
|
skillSelect.value = 'all';
|
||||||
|
batchSelect.value = 'all';
|
||||||
|
applyFilters();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', initStudentWorkFilters);
|
||||||
|
} else {
|
||||||
|
initStudentWorkFilters();
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
// ===== BLOG DETAIL PAGE =====
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
function initBlogDetail() {
|
||||||
|
var page = document.querySelector('.blog-detail');
|
||||||
|
if (!page || page.getAttribute('data-blog-detail-init') === 'true') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
page.setAttribute('data-blog-detail-init', 'true');
|
||||||
|
|
||||||
|
var progressBar = page.querySelector('.reading-progress__bar');
|
||||||
|
function updateProgress() {
|
||||||
|
if (!progressBar) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var doc = document.documentElement;
|
||||||
|
var scrollTop = window.scrollY || doc.scrollTop || 0;
|
||||||
|
var scrollHeight = doc.scrollHeight - window.innerHeight;
|
||||||
|
var progress = scrollHeight > 0 ? (scrollTop / scrollHeight) * 100 : 0;
|
||||||
|
|
||||||
|
if (progress < 0) {
|
||||||
|
progress = 0;
|
||||||
|
}
|
||||||
|
if (progress > 100) {
|
||||||
|
progress = 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
progressBar.style.width = progress + '%';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (progressBar) {
|
||||||
|
updateProgress();
|
||||||
|
window.addEventListener('scroll', updateProgress, { passive: true });
|
||||||
|
window.addEventListener('resize', updateProgress);
|
||||||
|
}
|
||||||
|
|
||||||
|
var tocLinks = Array.prototype.slice.call(page.querySelectorAll('.blog-toc__link'));
|
||||||
|
var sections = [];
|
||||||
|
|
||||||
|
tocLinks.forEach(function (link) {
|
||||||
|
var href = link.getAttribute('href') || '';
|
||||||
|
if (href.charAt(0) !== '#') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var section = document.getElementById(href.slice(1));
|
||||||
|
if (section) {
|
||||||
|
sections.push({ link: link, section: section });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function setActiveLink(activeLink) {
|
||||||
|
tocLinks.forEach(function (link) {
|
||||||
|
link.classList.toggle('is-active', link === activeLink);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sections.length && 'IntersectionObserver' in window) {
|
||||||
|
var observer = new IntersectionObserver(function (entries) {
|
||||||
|
entries.forEach(function (entry) {
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
sections.forEach(function (item) {
|
||||||
|
if (item.section === entry.target) {
|
||||||
|
setActiveLink(item.link);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, {
|
||||||
|
rootMargin: '-20% 0px -60% 0px',
|
||||||
|
threshold: 0.1
|
||||||
|
});
|
||||||
|
|
||||||
|
sections.forEach(function (item) {
|
||||||
|
observer.observe(item.section);
|
||||||
|
});
|
||||||
|
} else if (sections.length) {
|
||||||
|
setActiveLink(sections[0].link);
|
||||||
|
}
|
||||||
|
|
||||||
|
var form = page.querySelector('.blog-comment__form');
|
||||||
|
if (form) {
|
||||||
|
var status = form.querySelector('.blog-comment__status');
|
||||||
|
form.addEventListener('submit', function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
var requiredNames = ['comment', 'name', 'email'];
|
||||||
|
var isValid = true;
|
||||||
|
|
||||||
|
requiredNames.forEach(function (name) {
|
||||||
|
var field = form.querySelector('[name="' + name + '"]');
|
||||||
|
if (!field) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var value = (field.value || '').trim();
|
||||||
|
if (!value) {
|
||||||
|
isValid = false;
|
||||||
|
field.setAttribute('aria-invalid', 'true');
|
||||||
|
} else {
|
||||||
|
field.removeAttribute('aria-invalid');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (status) {
|
||||||
|
status.textContent = isValid ? 'Comments are not enabled yet.' : 'Please fill in the required fields.';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', initBlogDetail);
|
||||||
|
} else {
|
||||||
|
initBlogDetail();
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
// ===== TESTIMONIALS PAGE =====
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
function initTestimonialsPage() {
|
||||||
|
var page = document.querySelector('.testimonials');
|
||||||
|
if (!page || page.getAttribute('data-testimonials-init') === 'true') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
page.setAttribute('data-testimonials-init', 'true');
|
||||||
|
|
||||||
|
var searchInput = page.querySelector('.testimonials__search-input');
|
||||||
|
var tabs = Array.prototype.slice.call(page.querySelectorAll('.testimonials__tab'));
|
||||||
|
var textPanel = document.getElementById('testimonials-panel-text');
|
||||||
|
var videoPanel = document.getElementById('testimonials-panel-video');
|
||||||
|
var grid = page.querySelector('.testimonials__grid');
|
||||||
|
var cards = grid ? Array.prototype.slice.call(grid.querySelectorAll('.testimonial-card')) : [];
|
||||||
|
var emptyState = page.querySelector('.testimonials__empty:not(.testimonials__empty--video)');
|
||||||
|
var loadMoreButton = page.querySelector('.testimonials__more');
|
||||||
|
var modal = document.getElementById('testimonial-modal');
|
||||||
|
|
||||||
|
var batchSize = 12;
|
||||||
|
var visibleCount = 0;
|
||||||
|
var matchingCards = cards.slice();
|
||||||
|
var reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||||
|
|
||||||
|
function setActiveTab(tabName) {
|
||||||
|
tabs.forEach(function (tab) {
|
||||||
|
var isActive = (tab.getAttribute('data-tab') || '') === tabName;
|
||||||
|
tab.classList.toggle('is-active', isActive);
|
||||||
|
tab.setAttribute('aria-selected', String(isActive));
|
||||||
|
tab.tabIndex = isActive ? 0 : -1;
|
||||||
|
});
|
||||||
|
|
||||||
|
if (textPanel) {
|
||||||
|
textPanel.hidden = tabName !== 'text';
|
||||||
|
}
|
||||||
|
if (videoPanel) {
|
||||||
|
videoPanel.hidden = tabName !== 'video';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderCards(resetCount) {
|
||||||
|
if (resetCount) {
|
||||||
|
visibleCount = Math.min(batchSize, matchingCards.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
cards.forEach(function (card) {
|
||||||
|
card.hidden = true;
|
||||||
|
});
|
||||||
|
|
||||||
|
matchingCards.forEach(function (card, index) {
|
||||||
|
card.hidden = index >= visibleCount;
|
||||||
|
});
|
||||||
|
|
||||||
|
if (emptyState) {
|
||||||
|
emptyState.hidden = matchingCards.length !== 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (loadMoreButton) {
|
||||||
|
loadMoreButton.hidden = matchingCards.length <= visibleCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function applySearch() {
|
||||||
|
var query = searchInput ? (searchInput.value || '').trim().toLowerCase() : '';
|
||||||
|
|
||||||
|
matchingCards = cards.filter(function (card) {
|
||||||
|
var name = (card.getAttribute('data-name') || '').toLowerCase();
|
||||||
|
var course = (card.getAttribute('data-course') || '').toLowerCase();
|
||||||
|
return query === '' || name.indexOf(query) !== -1 || course.indexOf(query) !== -1;
|
||||||
|
});
|
||||||
|
|
||||||
|
renderCards(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
tabs.forEach(function (tab) {
|
||||||
|
tab.addEventListener('click', function () {
|
||||||
|
setActiveTab(tab.getAttribute('data-tab') || 'text');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
if (searchInput) {
|
||||||
|
searchInput.addEventListener('input', applySearch);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (loadMoreButton) {
|
||||||
|
loadMoreButton.addEventListener('click', function () {
|
||||||
|
visibleCount = Math.min(visibleCount + batchSize, matchingCards.length);
|
||||||
|
renderCards(false);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
applySearch();
|
||||||
|
setActiveTab('text');
|
||||||
|
|
||||||
|
if (!modal) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var panel = modal.querySelector('.testimonial-modal__panel');
|
||||||
|
var closeButtons = Array.prototype.slice.call(modal.querySelectorAll('[data-modal-close]'));
|
||||||
|
var modalText = modal.querySelector('.testimonial-modal__text');
|
||||||
|
var modalName = modal.querySelector('.testimonial-modal__name');
|
||||||
|
var modalCourse = modal.querySelector('.testimonial-modal__course');
|
||||||
|
var modalDate = modal.querySelector('.testimonial-modal__date');
|
||||||
|
var modalAvatar = modal.querySelector('.testimonial-modal__avatar');
|
||||||
|
var lastFocused = null;
|
||||||
|
|
||||||
|
function getFocusableElements() {
|
||||||
|
if (!panel) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return Array.prototype.slice.call(panel.querySelectorAll(
|
||||||
|
'a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])'
|
||||||
|
)).filter(function (el) {
|
||||||
|
return !el.hasAttribute('disabled') && el.getAttribute('aria-hidden') !== 'true';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function openModal(data, opener) {
|
||||||
|
lastFocused = opener || document.activeElement;
|
||||||
|
|
||||||
|
if (modalText) {
|
||||||
|
modalText.textContent = data.text || '';
|
||||||
|
}
|
||||||
|
if (modalName) {
|
||||||
|
modalName.textContent = data.name || '';
|
||||||
|
}
|
||||||
|
if (modalCourse) {
|
||||||
|
modalCourse.textContent = data.course || '';
|
||||||
|
}
|
||||||
|
if (modalDate) {
|
||||||
|
modalDate.textContent = data.date ? 'Posted on: ' + data.date : '';
|
||||||
|
}
|
||||||
|
if (modalAvatar) {
|
||||||
|
modalAvatar.textContent = data.initials || '';
|
||||||
|
}
|
||||||
|
|
||||||
|
modal.classList.add('is-open');
|
||||||
|
modal.setAttribute('aria-hidden', 'false');
|
||||||
|
document.body.classList.add('modal-open');
|
||||||
|
|
||||||
|
var focusables = getFocusableElements();
|
||||||
|
if (focusables.length) {
|
||||||
|
focusables[0].focus();
|
||||||
|
} else if (panel) {
|
||||||
|
panel.focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeModal() {
|
||||||
|
if (!modal.classList.contains('is-open')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
modal.classList.remove('is-open');
|
||||||
|
modal.setAttribute('aria-hidden', 'true');
|
||||||
|
document.body.classList.remove('modal-open');
|
||||||
|
|
||||||
|
if (lastFocused && typeof lastFocused.focus === 'function') {
|
||||||
|
lastFocused.focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cards.forEach(function (card) {
|
||||||
|
var button = card.querySelector('.testimonial-card__more');
|
||||||
|
if (!button) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.addEventListener('click', function () {
|
||||||
|
openModal({
|
||||||
|
name: button.getAttribute('data-name') || '',
|
||||||
|
course: button.getAttribute('data-course') || '',
|
||||||
|
text: button.getAttribute('data-text') || '',
|
||||||
|
date: button.getAttribute('data-date') || '',
|
||||||
|
initials: button.getAttribute('data-initials') || ''
|
||||||
|
}, button);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
closeButtons.forEach(function (button) {
|
||||||
|
button.addEventListener('click', closeModal);
|
||||||
|
});
|
||||||
|
|
||||||
|
modal.addEventListener('click', function (event) {
|
||||||
|
if (event.target && event.target.hasAttribute('data-modal-close')) {
|
||||||
|
closeModal();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener('keydown', function (event) {
|
||||||
|
if (!modal.classList.contains('is-open')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event.key === 'Escape' || event.key === 'Esc') {
|
||||||
|
event.preventDefault();
|
||||||
|
closeModal();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event.key === 'Tab') {
|
||||||
|
var focusables = getFocusableElements();
|
||||||
|
if (!focusables.length) {
|
||||||
|
event.preventDefault();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var first = focusables[0];
|
||||||
|
var last = focusables[focusables.length - 1];
|
||||||
|
|
||||||
|
if (event.shiftKey && document.activeElement === first) {
|
||||||
|
event.preventDefault();
|
||||||
|
last.focus();
|
||||||
|
} else if (!event.shiftKey && document.activeElement === last) {
|
||||||
|
event.preventDefault();
|
||||||
|
first.focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', initTestimonialsPage);
|
||||||
|
} else {
|
||||||
|
initTestimonialsPage();
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|||||||
+279
@@ -0,0 +1,279 @@
|
|||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/includes/data.php';
|
||||||
|
|
||||||
|
$slug = isset($_GET['slug']) ? (string) $_GET['slug'] : '';
|
||||||
|
$slug = preg_replace('/[^a-z0-9-]/', '', strtolower($slug));
|
||||||
|
|
||||||
|
$post = null;
|
||||||
|
$posts = $posts ?? [];
|
||||||
|
foreach ($posts as $candidate) {
|
||||||
|
if (($candidate['slug'] ?? '') === $slug && $slug !== '') {
|
||||||
|
$post = $candidate;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$activePage = 'blog';
|
||||||
|
|
||||||
|
if ($post === null) {
|
||||||
|
http_response_code(404);
|
||||||
|
$pageTitle = 'Article not found | AI Institute';
|
||||||
|
$pageDescription = 'The requested article could not be found.';
|
||||||
|
require __DIR__ . '/includes/header.php';
|
||||||
|
?>
|
||||||
|
<main id="main-content" class="blog-detail">
|
||||||
|
<section class="blog-detail__hero cert-hero section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="blog-detail__hero-content reveal">
|
||||||
|
<nav class="breadcrumb blog-detail__breadcrumb" aria-label="Breadcrumb">
|
||||||
|
<ol class="breadcrumb__list">
|
||||||
|
<li class="breadcrumb__item"><a href="index.php">Home</a></li>
|
||||||
|
<li class="breadcrumb__item"><a href="blog.php">Blog</a></li>
|
||||||
|
<li class="breadcrumb__item" aria-current="page">Article not found</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
<span class="eyebrow">Blog</span>
|
||||||
|
<h1 class="blog-detail__title">Article not found</h1>
|
||||||
|
<p class="blog-detail__lead">The article you are looking for may have been moved or is not available.</p>
|
||||||
|
<a class="btn btn--primary blog-detail__back" href="blog.php#posts">Back to Blog</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
<?php require __DIR__ . '/includes/footer.php'; ?>
|
||||||
|
<?php
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$pageTitle = ($post['title'] ?? 'Blog Article') . ' | AI Institute';
|
||||||
|
$pageDescription = $post['excerpt'] ?? 'Read practical AI insights from AI Institute.';
|
||||||
|
$sections = isset($post['sections']) && is_array($post['sections']) ? $post['sections'] : [];
|
||||||
|
$author = isset($post['author']) && is_array($post['author']) ? $post['author'] : [];
|
||||||
|
$tags = isset($post['tags']) && is_array($post['tags']) ? $post['tags'] : [];
|
||||||
|
|
||||||
|
$authorName = $author['name'] ?? 'AI Institute Editorial Team';
|
||||||
|
$authorInitials = '';
|
||||||
|
$nameParts = preg_split('/\s+/', trim($authorName));
|
||||||
|
if (is_array($nameParts)) {
|
||||||
|
foreach ($nameParts as $part) {
|
||||||
|
if ($part !== '') {
|
||||||
|
$authorInitials .= strtoupper(substr($part, 0, 1));
|
||||||
|
}
|
||||||
|
if (strlen($authorInitials) >= 2) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($authorInitials === '') {
|
||||||
|
$authorInitials = 'AI';
|
||||||
|
}
|
||||||
|
|
||||||
|
$relatedPosts = [];
|
||||||
|
foreach ($posts as $candidate) {
|
||||||
|
if (($candidate['slug'] ?? '') === ($post['slug'] ?? '')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$relatedPosts[] = $candidate;
|
||||||
|
if (count($relatedPosts) >= 3) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
require __DIR__ . '/includes/header.php';
|
||||||
|
?>
|
||||||
|
|
||||||
|
<main id="main-content" class="blog-detail">
|
||||||
|
<div class="reading-progress" aria-hidden="true"><span class="reading-progress__bar"></span></div>
|
||||||
|
|
||||||
|
<!-- ===== BLOG DETAIL HERO ===== -->
|
||||||
|
<section class="blog-detail__hero cert-hero section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="blog-detail__hero-content reveal">
|
||||||
|
<nav class="breadcrumb blog-detail__breadcrumb" aria-label="Breadcrumb">
|
||||||
|
<ol class="breadcrumb__list">
|
||||||
|
<li class="breadcrumb__item"><a href="index.php">Home</a></li>
|
||||||
|
<li class="breadcrumb__item"><a href="blog.php">Blog</a></li>
|
||||||
|
<li class="breadcrumb__item" aria-current="page"><?= e($post['title'] ?? '') ?></li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
<?php if (!empty($post['category'])): ?>
|
||||||
|
<span class="eyebrow"><?= e($post['category']) ?></span>
|
||||||
|
<?php endif; ?>
|
||||||
|
<h1 class="blog-detail__title"><?= e($post['title'] ?? '') ?></h1>
|
||||||
|
<p class="blog-detail__meta"><?= e($post['date'] ?? '') ?> · <?= (int) ($post['read_time'] ?? 0) ?> min read</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- ===== ARTICLE ===== -->
|
||||||
|
<section class="section blog-detail__article" id="article">
|
||||||
|
<div class="container">
|
||||||
|
<div class="blog-detail__layout">
|
||||||
|
<aside class="blog-toc reveal" aria-label="Contents">
|
||||||
|
<div class="blog-toc__inner">
|
||||||
|
<p class="blog-toc__title">Contents</p>
|
||||||
|
<?php if (!empty($sections)): ?>
|
||||||
|
<nav>
|
||||||
|
<ol class="blog-toc__list">
|
||||||
|
<?php foreach ($sections as $section): ?>
|
||||||
|
<?php
|
||||||
|
$sectionId = $section['id'] ?? '';
|
||||||
|
$sectionHeading = $section['heading'] ?? '';
|
||||||
|
if ($sectionId === '' || $sectionHeading === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<li class="blog-toc__item">
|
||||||
|
<a class="blog-toc__link" href="#<?= e($sectionId) ?>"><?= e($sectionHeading) ?></a>
|
||||||
|
</li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
<?php else: ?>
|
||||||
|
<p class="blog-toc__empty">No sections available.</p>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<article class="blog-article reveal">
|
||||||
|
<div class="blog-article__image-wrap">
|
||||||
|
<img
|
||||||
|
class="blog-article__image"
|
||||||
|
src="<?= e($post['image'] ?? '') ?>"
|
||||||
|
alt="<?= e($post['alt'] ?? '') ?>"
|
||||||
|
width="1200"
|
||||||
|
height="675"
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="blog-article__content">
|
||||||
|
<p class="blog-article__intro"><?= e($post['excerpt'] ?? '') ?></p>
|
||||||
|
|
||||||
|
<?php foreach ($sections as $section): ?>
|
||||||
|
<?php
|
||||||
|
$sectionId = $section['id'] ?? '';
|
||||||
|
$sectionHeading = $section['heading'] ?? '';
|
||||||
|
$paragraphs = isset($section['paragraphs']) && is_array($section['paragraphs']) ? $section['paragraphs'] : [];
|
||||||
|
$listItems = isset($section['list']) && is_array($section['list']) ? $section['list'] : [];
|
||||||
|
if ($sectionId === '' || $sectionHeading === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<section class="blog-article__section" id="<?= e($sectionId) ?>">
|
||||||
|
<h2 class="blog-article__heading"><?= e($sectionHeading) ?></h2>
|
||||||
|
<?php foreach ($paragraphs as $paragraph): ?>
|
||||||
|
<p><?= e((string) $paragraph) ?></p>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
<?php if (!empty($listItems)): ?>
|
||||||
|
<ul class="blog-article__list">
|
||||||
|
<?php foreach ($listItems as $item): ?>
|
||||||
|
<li><?= e((string) $item) ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
|
</section>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section class="blog-author" aria-labelledby="blog-author-title">
|
||||||
|
<div class="blog-author__avatar" aria-hidden="true"><?= e($authorInitials) ?></div>
|
||||||
|
<div class="blog-author__body">
|
||||||
|
<p class="blog-author__label" id="blog-author-title">Written by</p>
|
||||||
|
<div class="blog-author__top">
|
||||||
|
<h2 class="blog-author__name"><?= e($authorName) ?></h2>
|
||||||
|
<?php if (!empty($author['role'])): ?>
|
||||||
|
<span class="blog-author__role"><?= e($author['role']) ?></span>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
<?php if (!empty($author['bio'])): ?>
|
||||||
|
<p class="blog-author__bio"><?= e($author['bio']) ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<p class="blog-author__count"><?= (int) ($author['articles'] ?? 0) ?> articles</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<?php if (!empty($tags)): ?>
|
||||||
|
<div class="blog-tags" aria-label="Tags">
|
||||||
|
<?php foreach ($tags as $tag): ?>
|
||||||
|
<span class="blog-tag"><?= e((string) $tag) ?></span>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<!-- ===== LEAVE A REPLY ===== -->
|
||||||
|
<section class="blog-comment" aria-labelledby="leave-a-reply-title">
|
||||||
|
<h2 class="blog-comment__title" id="leave-a-reply-title">Leave a reply</h2>
|
||||||
|
<p class="blog-comment__intro">Share your thoughts about this article.</p>
|
||||||
|
<form class="blog-comment__form" novalidate>
|
||||||
|
<!-- TODO: connect this form to a backend or comment service when available -->
|
||||||
|
<div class="blog-comment__field">
|
||||||
|
<label class="blog-comment__label" for="comment-message">Comment <span aria-hidden="true">*</span></label>
|
||||||
|
<textarea class="blog-comment__input blog-comment__textarea" id="comment-message" name="comment" rows="5" required></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="blog-comment__grid">
|
||||||
|
<div class="blog-comment__field">
|
||||||
|
<label class="blog-comment__label" for="comment-name">Name <span aria-hidden="true">*</span></label>
|
||||||
|
<input class="blog-comment__input" type="text" id="comment-name" name="name" autocomplete="name" required>
|
||||||
|
</div>
|
||||||
|
<div class="blog-comment__field">
|
||||||
|
<label class="blog-comment__label" for="comment-email">Email <span aria-hidden="true">*</span></label>
|
||||||
|
<input class="blog-comment__input" type="email" id="comment-email" name="email" autocomplete="email" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="blog-comment__field">
|
||||||
|
<label class="blog-comment__label" for="comment-website">Website</label>
|
||||||
|
<input class="blog-comment__input" type="url" id="comment-website" name="website" autocomplete="url" placeholder="https://">
|
||||||
|
</div>
|
||||||
|
<div class="blog-comment__checkbox">
|
||||||
|
<input type="checkbox" id="comment-save" name="save_details" value="1">
|
||||||
|
<label for="comment-save">Save my details for next time</label>
|
||||||
|
</div>
|
||||||
|
<button class="btn btn--primary blog-comment__submit" type="submit">Post Comment</button>
|
||||||
|
<p class="blog-comment__status" role="status" aria-live="polite"></p>
|
||||||
|
</form>
|
||||||
|
</section>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- ===== RELATED POSTS ===== -->
|
||||||
|
<?php if (!empty($relatedPosts)): ?>
|
||||||
|
<section class="section blog-related">
|
||||||
|
<div class="container">
|
||||||
|
<div class="section__head reveal">
|
||||||
|
<span class="eyebrow">Keep reading</span>
|
||||||
|
<h2 class="section__title">Related posts</h2>
|
||||||
|
</div>
|
||||||
|
<div class="blog blog-related__cards">
|
||||||
|
<div class="blog-grid blog-related__grid">
|
||||||
|
<?php foreach ($relatedPosts as $related): ?>
|
||||||
|
<article class="blog-card card reveal">
|
||||||
|
<div class="blog-card__media">
|
||||||
|
<img
|
||||||
|
class="blog-card__img"
|
||||||
|
src="<?= e($related['image'] ?? '') ?>"
|
||||||
|
alt="<?= e($related['alt'] ?? '') ?>"
|
||||||
|
width="1200"
|
||||||
|
height="675"
|
||||||
|
loading="lazy"
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<div class="blog-card__body">
|
||||||
|
<h3 class="blog-card__title">
|
||||||
|
<a class="blog-card__link" href="blog-detail.php?slug=<?= e($related['slug'] ?? '') ?>"><?= e($related['title'] ?? '') ?></a>
|
||||||
|
</h3>
|
||||||
|
<p class="blog-card__meta"><?= e($related['date'] ?? '') ?> · <?= (int) ($related['read_time'] ?? 0) ?> min read</p>
|
||||||
|
<p class="blog-card__excerpt"><?= e($related['excerpt'] ?? '') ?></p>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<?php require __DIR__ . '/includes/footer.php'; ?>
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/includes/data.php';
|
||||||
|
|
||||||
|
$pageTitle = 'Blog | AI Institute';
|
||||||
|
$pageDescription = 'Guides, tutorials and ideas to help you learn AI tools and use them in your work, business and everyday life.';
|
||||||
|
$activePage = 'blog';
|
||||||
|
|
||||||
|
$posts = $posts ?? [];
|
||||||
|
$postsPerPage = 9;
|
||||||
|
$totalPosts = count($posts);
|
||||||
|
$totalPages = $totalPosts > 0 ? (int) ceil($totalPosts / $postsPerPage) : 1;
|
||||||
|
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
|
||||||
|
if ($page < 1) {
|
||||||
|
$page = 1;
|
||||||
|
}
|
||||||
|
if ($page > $totalPages) {
|
||||||
|
$page = $totalPages;
|
||||||
|
}
|
||||||
|
$offset = ($page - 1) * $postsPerPage;
|
||||||
|
$pagePosts = array_slice($posts, $offset, $postsPerPage);
|
||||||
|
|
||||||
|
require __DIR__ . '/includes/header.php';
|
||||||
|
?>
|
||||||
|
|
||||||
|
<main id="main-content" class="blog">
|
||||||
|
|
||||||
|
<!-- ===== BLOG HERO ===== -->
|
||||||
|
<section class="blog-hero cert-hero section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="section__head reveal">
|
||||||
|
<span class="eyebrow">Blog</span>
|
||||||
|
<h1 class="section__title">Insights on practical AI.</h1>
|
||||||
|
<p class="section__lead">Guides, tutorials and ideas to help you learn AI tools and use them in your work, business and everyday life.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- ===== BLOG POSTS ===== -->
|
||||||
|
<section class="section blog-posts" id="posts">
|
||||||
|
<div class="container">
|
||||||
|
<div class="blog-grid">
|
||||||
|
<?php foreach ($pagePosts as $post): ?>
|
||||||
|
<article class="blog-card card reveal">
|
||||||
|
<div class="blog-card__media">
|
||||||
|
<img
|
||||||
|
class="blog-card__img"
|
||||||
|
src="<?= e($post['image'] ?? '') ?>"
|
||||||
|
alt="<?= e($post['alt'] ?? '') ?>"
|
||||||
|
width="1200"
|
||||||
|
height="675"
|
||||||
|
loading="lazy"
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<div class="blog-card__body">
|
||||||
|
<h2 class="blog-card__title">
|
||||||
|
<a class="blog-card__link" href="blog-detail.php?slug=<?= e($post['slug'] ?? '') ?>"><?= e($post['title'] ?? '') ?></a>
|
||||||
|
</h2>
|
||||||
|
<p class="blog-card__meta"><?= e($post['date'] ?? '') ?> · <?= (int) ($post['read_time'] ?? 0) ?> min read</p>
|
||||||
|
<p class="blog-card__excerpt"><?= e($post['excerpt'] ?? '') ?></p>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav class="pagination" aria-label="Blog pagination">
|
||||||
|
<?php if ($page <= 1): ?>
|
||||||
|
<span class="pagination__link is-disabled" aria-disabled="true">First</span>
|
||||||
|
<?php else: ?>
|
||||||
|
<a class="pagination__link" href="blog.php?page=1#posts">First</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php for ($i = 1; $i <= $totalPages; $i++): ?>
|
||||||
|
<?php if ($i === $page): ?>
|
||||||
|
<a class="pagination__link is-active" href="blog.php?page=<?= $i ?>#posts" aria-current="page"><?= $i ?></a>
|
||||||
|
<?php else: ?>
|
||||||
|
<a class="pagination__link" href="blog.php?page=<?= $i ?>#posts"><?= $i ?></a>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php endfor; ?>
|
||||||
|
|
||||||
|
<?php if ($page >= $totalPages): ?>
|
||||||
|
<span class="pagination__link is-disabled" aria-disabled="true">Last</span>
|
||||||
|
<?php else: ?>
|
||||||
|
<a class="pagination__link" href="blog.php?page=<?= $totalPages ?>#posts">Last</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<?php require __DIR__ . '/includes/footer.php'; ?>
|
||||||
+803
-9
@@ -257,29 +257,119 @@ $certSteps = [
|
|||||||
|
|
||||||
$projects = [
|
$projects = [
|
||||||
[
|
[
|
||||||
|
'id' => 1,
|
||||||
'title' => 'A campaign from a single idea',
|
'title' => 'A campaign from a single idea',
|
||||||
'tag' => 'Digital Marketing',
|
'tag' => 'Digital Marketing',
|
||||||
|
'course' => 'AI for Digital Marketing',
|
||||||
|
'batch' => 'Batch A (placeholder)',
|
||||||
|
'student' => 'Student name placeholder',
|
||||||
'image' => 'assets/img/heroimage2.jpg',
|
'image' => 'assets/img/heroimage2.jpg',
|
||||||
'alt' => 'A marketing team planning a campaign with notes on a table',
|
'alt' => 'A marketing team planning a campaign with notes on a table',
|
||||||
|
'description' => 'An illustrative campaign concept connecting an audience brief, content themes, and a draft channel plan.',
|
||||||
|
'skills' => ['Audience research', 'Content planning'],
|
||||||
|
// 'skill_icons' => [
|
||||||
|
// ['icon' => 'users', 'label' => 'Audience research'],
|
||||||
|
// ['icon' => 'lightbulb', 'label' => 'Content planning'],
|
||||||
|
// ],
|
||||||
|
'tools' => ['Campaign brief template', 'Content planner', 'AI drafting support'],
|
||||||
|
'overview' => 'This illustrative concept explores how a single idea could grow into a practical campaign plan. It focuses on understanding an audience, shaping a message, and outlining a simple channel approach.',
|
||||||
|
'built' => [
|
||||||
|
'A draft audience brief with goals and key messages',
|
||||||
|
'A set of content themes and sample campaign ideas',
|
||||||
|
'A simple channel plan showing how the concept could be shared',
|
||||||
|
],
|
||||||
|
'brief' => 'Explain the question, intended audience, and boundaries of the task.',
|
||||||
|
'process' => 'Make the research, AI use, human decisions, and revisions visible.',
|
||||||
|
'reflection' => 'Describe what was learned, what needs checking, and what could improve.',
|
||||||
|
'gallery' => [
|
||||||
|
['image' => 'assets/img/heroimage2.jpg', 'alt' => 'Illustrative campaign planning materials arranged on a table'],
|
||||||
|
['image' => 'assets/img/student.jpg', 'alt' => 'Illustrative workspace showing collaboration on campaign ideas'],
|
||||||
|
],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
'id' => 2,
|
||||||
'title' => 'A smarter business workflow',
|
'title' => 'A smarter business workflow',
|
||||||
'tag' => 'AI Automation',
|
'tag' => 'AI Automation',
|
||||||
|
'course' => 'AI for Business & Entrepreneurship',
|
||||||
|
'batch' => 'Batch B (placeholder)',
|
||||||
|
'student' => 'Student name placeholder',
|
||||||
'image' => 'assets/img/student.jpg',
|
'image' => 'assets/img/student.jpg',
|
||||||
'alt' => 'A professional mapping out an automated workflow',
|
'alt' => 'A professional mapping out an automated workflow',
|
||||||
|
'description' => 'A sample process map exploring how repetitive information could move through an AI-assisted workflow.',
|
||||||
|
'skills' => ['Process mapping', 'Critical thinking'],
|
||||||
|
'skill_icons' => [
|
||||||
|
['icon' => 'layers', 'label' => 'Process mapping'],
|
||||||
|
['icon' => 'lightbulb', 'label' => 'Critical thinking'],
|
||||||
|
],
|
||||||
|
'tools' => ['Workflow map', 'Prompt draft', 'Review checklist'],
|
||||||
|
'overview' => 'This placeholder concept looks at a repetitive business task and explores where AI assistance might help. The focus stays on clarity, human review, and thoughtful process design.',
|
||||||
|
'built' => [
|
||||||
|
'A sample process map showing steps, handoffs, and review points',
|
||||||
|
'A draft prompt outline for handling routine information',
|
||||||
|
'A checklist for testing assumptions and keeping human oversight',
|
||||||
|
],
|
||||||
|
'brief' => 'Explain the question, intended audience, and boundaries of the task.',
|
||||||
|
'process' => 'Make the research, AI use, human decisions, and revisions visible.',
|
||||||
|
'reflection' => 'Describe what was learned, what needs checking, and what could improve.',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Turning data into a clearer story',
|
'id' => 3,
|
||||||
|
'title' => "Finding a brand's visual voice",
|
||||||
|
'tag' => 'AI Content',
|
||||||
|
'course' => 'AI Content · Course placeholder',
|
||||||
|
'batch' => 'Batch C (placeholder)',
|
||||||
|
'student' => 'Student name placeholder',
|
||||||
|
'image' => 'assets/img/heroimage.png',
|
||||||
|
'alt' => 'A monitor displaying a glowing AI visual in a modern workspace',
|
||||||
|
'description' => 'A placeholder creative direction bringing together a visual moodboard, draft story, and content examples.',
|
||||||
|
'skills' => ['Storytelling', 'Moodboarding'],
|
||||||
|
'skill_icons' => [
|
||||||
|
['icon' => 'clapperboard', 'label' => 'Storytelling'],
|
||||||
|
['icon' => 'sparkles', 'label' => 'Moodboarding'],
|
||||||
|
],
|
||||||
|
'tools' => ['Moodboard', 'Story outline', 'Content examples'],
|
||||||
|
'overview' => 'This illustrative concept explores how a brand idea could be translated into a visual and narrative direction. It combines inspiration, story, and sample content in one draft concept.',
|
||||||
|
'built' => [
|
||||||
|
'A moodboard concept showing tone, colour, and visual references',
|
||||||
|
'A short draft story outlining the brand voice and message',
|
||||||
|
'Sample content examples to show how the direction could be applied',
|
||||||
|
],
|
||||||
|
'brief' => 'Explain the question, intended audience, and boundaries of the task.',
|
||||||
|
'process' => 'Make the research, AI use, human decisions, and revisions visible.',
|
||||||
|
'reflection' => 'Describe what was learned, what needs checking, and what could improve.',
|
||||||
|
'gallery' => [
|
||||||
|
['image' => 'assets/img/heroimage.png', 'alt' => 'Illustrative creative workspace with a glowing visual on screen'],
|
||||||
|
['image' => 'assets/img/heroimage2.jpg', 'alt' => 'Illustrative materials used to explore a visual direction'],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 4,
|
||||||
|
'title' => 'Making sample data readable',
|
||||||
'tag' => 'Data & Insights',
|
'tag' => 'Data & Insights',
|
||||||
'image' => 'assets/img/student.jpg',
|
'course' => 'AI for Finance & Accounting',
|
||||||
'alt' => 'A student presenting data visualisations on a screen',
|
'batch' => 'Batch D (placeholder)',
|
||||||
],
|
'student' => 'Student name placeholder',
|
||||||
[
|
'image' => 'assets/img/interview.jpg',
|
||||||
'title' => 'A structured market research journal',
|
'alt' => 'People collaborating around a table during an AI workshop',
|
||||||
'tag' => 'Research',
|
'description' => 'A fictional reporting exercise using non-sensitive sample data to explain a draft financial summary.',
|
||||||
'image' => 'assets/img/heroimage2.jpg',
|
'skills' => ['Data interpretation', 'Communication'],
|
||||||
'alt' => 'A researcher reviewing notes and market research documents',
|
'skill_icons' => [
|
||||||
|
['icon' => 'chart', 'label' => 'Data interpretation'],
|
||||||
|
['icon' => 'users', 'label' => 'Communication'],
|
||||||
|
],
|
||||||
|
'tools' => ['Sample dataset', 'Charts', 'Summary draft'],
|
||||||
|
'overview' => 'This placeholder project shows how sample data could be organised and explained in plain language. The emphasis is on clarity, careful interpretation, and communicating a draft summary.',
|
||||||
|
'built' => [
|
||||||
|
'A set of non-sensitive sample data arranged for review',
|
||||||
|
'Simple visual charts to highlight key points',
|
||||||
|
'A draft summary explaining what the sample information may suggest',
|
||||||
|
],
|
||||||
|
'brief' => 'Explain the question, intended audience, and boundaries of the task.',
|
||||||
|
'process' => 'Make the research, AI use, human decisions, and revisions visible.',
|
||||||
|
'reflection' => 'Describe what was learned, what needs checking, and what could improve.',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------
|
/* -------------------------------------------------------------------------
|
||||||
@@ -355,3 +445,707 @@ $faqs = [
|
|||||||
'answer' => 'Start by talking to an advisor or applying online. We will review your goals, recommend a programme and guide you through the simple enrollment process.',
|
'answer' => 'Start by talking to an advisor or applying online. We will review your goals, recommend a programme and guide you through the simple enrollment process.',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------------
|
||||||
|
* Blog posts
|
||||||
|
* Sample content: replace with real blog posts or a CMS/data source when available.
|
||||||
|
* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
$posts = [
|
||||||
|
[
|
||||||
|
'title' => 'Getting Started with AI: A Practical Beginner Guide',
|
||||||
|
'slug' => 'getting-started-with-ai',
|
||||||
|
'date' => 'March 12, 2026',
|
||||||
|
'read_time' => 6,
|
||||||
|
'category' => 'Beginner Guide',
|
||||||
|
'excerpt' => 'Learn what AI can and cannot do, how to choose your first tools, and simple ways to start building useful skills with confidence.',
|
||||||
|
'image' => 'assets/img/heroimage2.jpg',
|
||||||
|
'alt' => 'A workspace with notes and a laptop used for planning',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['AI Basics', 'Getting Started', 'Learning', 'Productivity'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'why-it-matters',
|
||||||
|
'heading' => 'Why practical AI matters',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Artificial intelligence can feel complex, but getting started does not have to be. Practical AI is about using tools to support everyday tasks such as writing, planning, organising information, and exploring ideas.',
|
||||||
|
'When you focus on clear goals and simple workflows, AI becomes a helpful assistant rather than a confusing technology. The key is to learn by doing and to treat each tool as part of your process, not a replacement for your judgement.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'what-ai-can-do',
|
||||||
|
'heading' => 'What AI can and cannot do',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI tools are good at generating drafts, summarising content, suggesting options, and helping you work through routine steps more quickly. They can save time when you need a starting point or a different way to look at a problem.',
|
||||||
|
'At the same time, AI can make mistakes, miss context, or produce information that needs checking. It works best when you review the output, add your own knowledge, and make the final decisions yourself.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Use AI for drafts, summaries, and idea generation.',
|
||||||
|
'Review facts, tone, and details before sharing anything.',
|
||||||
|
'Keep sensitive or private information out of prompts when possible.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'choose-your-first-tools',
|
||||||
|
'heading' => 'Choosing your first tools',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Start with one or two tools that match tasks you already do. If you write often, try an AI writing assistant. If you work with meetings or research, explore tools that help summarise notes or organise information.',
|
||||||
|
'Look for tools with clear interfaces, helpful guidance, and settings that fit your comfort level. You do not need the most advanced option to begin learning effectively.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'build-simple-habits',
|
||||||
|
'heading' => 'Build simple learning habits',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Consistency matters more than speed. Set aside a little time each week to practise one task, such as drafting an email, creating a checklist, or brainstorming ideas for a project.',
|
||||||
|
'Keep notes on what worked, what did not, and how you improved your prompts. These small reflections help you build confidence and develop practical skills over time.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'next-steps',
|
||||||
|
'heading' => 'Next steps for beginners',
|
||||||
|
'paragraphs' => [
|
||||||
|
'As you grow more comfortable, try applying AI to a real project in your work, studies, or daily life. Choose a clear outcome, experiment with different approaches, and ask for feedback when possible.',
|
||||||
|
'Practical learning is an ongoing process. With curiosity and care, you can build skills that support your goals and help you use AI responsibly.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Using AI to Boost Everyday Productivity',
|
||||||
|
'slug' => 'ai-for-everyday-productivity',
|
||||||
|
'date' => 'March 10, 2026',
|
||||||
|
'read_time' => 5,
|
||||||
|
'category' => 'Productivity',
|
||||||
|
'excerpt' => 'Discover practical ways to use AI for routine tasks, clearer communication, and better time management in your daily work.',
|
||||||
|
'image' => 'assets/img/student.jpg',
|
||||||
|
'alt' => 'A person working at a desk with a laptop in a modern workspace',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Productivity', 'Workflows', 'Planning', 'Communication'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'everyday-opportunities',
|
||||||
|
'heading' => 'Everyday opportunities for AI',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Productivity is often about reducing friction in small, repeated tasks. AI can help you organise your day, prepare drafts, and turn rough notes into clearer information.',
|
||||||
|
'Instead of trying to automate everything at once, look for moments where a quick prompt can save time or make a task easier to start.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'clear-communication',
|
||||||
|
'heading' => 'Improve communication and clarity',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI tools can help you rewrite messages, summarise long threads, or create outlines for meetings and updates. This can be especially useful when you need to communicate clearly and quickly.',
|
||||||
|
'Always review the tone and details before sending. A short human check ensures the message reflects your intent and includes the right context.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Draft emails and follow-up messages.',
|
||||||
|
'Summarise meeting notes into action items.',
|
||||||
|
'Turn rough ideas into structured outlines.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'plan-and-prioritise',
|
||||||
|
'heading' => 'Plan and prioritise your work',
|
||||||
|
'paragraphs' => [
|
||||||
|
'You can use AI to break large goals into smaller steps, estimate time blocks, or create a simple checklist for the day. This helps you focus on what matters most.',
|
||||||
|
'Try asking for a plan, then adjust it based on your real schedule and priorities. The best systems are the ones you can actually follow.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'avoid-common-pitfalls',
|
||||||
|
'heading' => 'Avoid common productivity pitfalls',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI can speed things up, but it can also create extra work if you rely on it without a clear purpose. Avoid using tools just because they are available.',
|
||||||
|
'Focus on outcomes: better clarity, saved time, or improved organisation. If a workflow feels more complicated, simplify it.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'make-it-a-habit',
|
||||||
|
'heading' => 'Make AI part of a sustainable routine',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Choose one or two repeatable tasks where AI consistently helps, and build them into your routine. Over time, these small improvements can add up to meaningful productivity gains.',
|
||||||
|
'Keep experimenting, but stay practical. The goal is to support your work, not to add unnecessary steps.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Prompt Writing Basics for Clearer Results',
|
||||||
|
'slug' => 'prompt-writing-basics',
|
||||||
|
'date' => 'March 8, 2026',
|
||||||
|
'read_time' => 7,
|
||||||
|
'category' => 'Skills',
|
||||||
|
'excerpt' => 'A simple guide to writing effective prompts, giving helpful context, and refining instructions to get more useful AI responses.',
|
||||||
|
'image' => 'assets/img/heroimage.png',
|
||||||
|
'alt' => 'A monitor displaying a glowing AI visual in a workspace',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Prompts', 'Skills', 'Writing', 'Best Practices'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'why-prompts-matter',
|
||||||
|
'heading' => 'Why prompts matter',
|
||||||
|
'paragraphs' => [
|
||||||
|
'A prompt is the instruction you give to an AI tool. Clear prompts help the tool understand what you need, who the output is for, and how you want it presented.',
|
||||||
|
'You do not need special language to write good prompts. Simple, specific instructions usually produce better results than vague requests.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'start-with-context',
|
||||||
|
'heading' => 'Start with context and a goal',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Explain the situation, the audience, and the outcome you want. For example, instead of asking for "a summary," ask for "a short summary for a beginner audience in three bullet points."',
|
||||||
|
'Context helps the AI make better choices about tone, length, and detail.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'State your goal clearly.',
|
||||||
|
'Describe the audience or use case.',
|
||||||
|
'Specify the format, length, or style you prefer.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'iterate-and-refine',
|
||||||
|
'heading' => 'Iterate and refine your request',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Good prompting is often a conversation. If the first response is not quite right, ask for changes: make it shorter, more detailed, more formal, or focused on a specific point.',
|
||||||
|
'Treat each response as a draft. Refining your instructions is a normal and useful part of working with AI.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'use-examples',
|
||||||
|
'heading' => 'Use examples when helpful',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Examples can guide the AI toward the kind of output you want. You might share a sample sentence, a preferred structure, or a list of points to include.',
|
||||||
|
'This is especially helpful for creative tasks, consistent formatting, or when you have a specific tone in mind.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'review-the-output',
|
||||||
|
'heading' => 'Review and improve the output',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Even a strong prompt can produce an imperfect result. Check for accuracy, relevance, and clarity, and make edits so the final work reflects your voice and purpose.',
|
||||||
|
'With practice, you will learn which details matter most in your prompts and how to get useful results more consistently.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'AI Tools for Better Presentations',
|
||||||
|
'slug' => 'ai-tools-for-presentations',
|
||||||
|
'date' => 'March 5, 2026',
|
||||||
|
'read_time' => 5,
|
||||||
|
'category' => 'Communication',
|
||||||
|
'excerpt' => 'Explore how AI can help you plan slides, organise ideas, and present information more clearly without losing your own voice.',
|
||||||
|
'image' => 'assets/img/interview.jpg',
|
||||||
|
'alt' => 'People collaborating around a table during a workshop',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Presentations', 'Communication', 'Design', 'Planning'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'plan-your-message',
|
||||||
|
'heading' => 'Plan your message first',
|
||||||
|
'paragraphs' => [
|
||||||
|
'A strong presentation starts with a clear message. AI can help you define your goal, identify key points, and organise ideas into a logical flow before you create slides.',
|
||||||
|
'Begin by outlining what your audience needs to know and what you want them to remember or do after the presentation.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'structure-slides',
|
||||||
|
'heading' => 'Structure slides with support from AI',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Once you have an outline, AI can suggest slide titles, talking points, and simple ways to break complex information into smaller parts. This can make your content easier to follow.',
|
||||||
|
'Keep slides focused. Use AI to simplify text, but make sure each slide supports your main message.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Create a clear opening, middle, and closing.',
|
||||||
|
'Limit each slide to one key idea.',
|
||||||
|
'Use speaker notes to add detail without crowding slides.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'refine-visuals',
|
||||||
|
'heading' => 'Refine visuals and examples',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI can help you brainstorm visual ideas, examples, or analogies that make your topic more engaging. It can also suggest ways to present data or explain a process clearly.',
|
||||||
|
'Choose visuals that support understanding, and keep your design consistent so the audience can focus on the content.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'practice-delivery',
|
||||||
|
'heading' => 'Practise and improve delivery',
|
||||||
|
'paragraphs' => [
|
||||||
|
'You can ask AI to generate practice questions, suggest transitions, or help you rehearse explanations in simpler language. This can build confidence before you present.',
|
||||||
|
'Remember that your voice and presence matter. Use AI as preparation support, then deliver the presentation in a way that feels natural to you.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Working Smarter with AI in Spreadsheets',
|
||||||
|
'slug' => 'ai-in-spreadsheets',
|
||||||
|
'date' => 'March 2, 2026',
|
||||||
|
'read_time' => 6,
|
||||||
|
'category' => 'Data Skills',
|
||||||
|
'excerpt' => 'See how AI can support formulas, summaries, and data organisation so you can spend more time understanding what the numbers mean.',
|
||||||
|
'image' => 'assets/img/heroimage2.jpg',
|
||||||
|
'alt' => 'A planning workspace with charts and materials on a table',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Spreadsheets', 'Data', 'Analysis', 'Efficiency'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'make-data-approachable',
|
||||||
|
'heading' => 'Make spreadsheet work more approachable',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Spreadsheets are powerful, but they can feel intimidating when formulas or large datasets are involved. AI tools can help you understand patterns, suggest formulas, and organise information more clearly.',
|
||||||
|
'The goal is not to skip learning, but to make everyday data tasks easier and more accessible.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'formulas-and-cleanup',
|
||||||
|
'heading' => 'Support formulas and data cleanup',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI can assist with writing formulas, explaining what a function does, or suggesting steps to clean and format data. This can save time when you are working with unfamiliar tasks.',
|
||||||
|
'Always test formulas on a small sample and review results carefully, especially when decisions depend on the data.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Ask for formula explanations in plain language.',
|
||||||
|
'Use AI to suggest ways to sort or categorise data.',
|
||||||
|
'Double-check outputs before sharing reports.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'summaries-and-insights',
|
||||||
|
'heading' => 'Create summaries and simple insights',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI can help turn rows of data into short summaries or highlight trends worth exploring. This is useful when you need to communicate findings to others quickly.',
|
||||||
|
'Treat AI-generated insights as a starting point. Look at the underlying data to confirm what is accurate and relevant.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'stay-in-control',
|
||||||
|
'heading' => 'Stay in control of your analysis',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Good spreadsheet practice still depends on clear questions, clean data, and careful review. AI can support the process, but your understanding of the context is essential.',
|
||||||
|
'By combining practical AI help with basic data skills, you can work more efficiently and make more informed decisions.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Practical AI Ideas for Small Businesses',
|
||||||
|
'slug' => 'ai-for-small-business',
|
||||||
|
'date' => 'February 27, 2026',
|
||||||
|
'read_time' => 7,
|
||||||
|
'category' => 'Business',
|
||||||
|
'excerpt' => 'From customer messages to planning and content, learn realistic ways small businesses can use AI to save time and improve workflows.',
|
||||||
|
'image' => 'assets/img/student.jpg',
|
||||||
|
'alt' => 'A professional working through ideas at a laptop',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Small Business', 'Operations', 'Marketing', 'Customer Support'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'start-with-real-needs',
|
||||||
|
'heading' => 'Start with real business needs',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Small businesses often have limited time and resources, so AI works best when it solves a specific problem. Look for tasks that are repetitive, time-consuming, or easy to standardise.',
|
||||||
|
'Common starting points include drafting messages, organising information, and planning content or schedules.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'support-customer-communication',
|
||||||
|
'heading' => 'Support customer communication',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI can help draft responses to common questions, create clear service descriptions, or prepare follow-up messages. This can improve consistency while saving time.',
|
||||||
|
'Always personalise important messages and review responses to ensure they are accurate and appropriate for your customers.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Draft replies to frequently asked questions.',
|
||||||
|
'Prepare clear product or service summaries.',
|
||||||
|
'Create templates for routine follow-ups.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'improve-planning',
|
||||||
|
'heading' => 'Improve planning and internal workflows',
|
||||||
|
'paragraphs' => [
|
||||||
|
'From meeting agendas to task lists, AI can help organise work and reduce administrative effort. It can also support brainstorming for offers, campaigns, or process improvements.',
|
||||||
|
'Keep workflows simple and document what works so your team can use AI tools consistently.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'use-ai-responsibly',
|
||||||
|
'heading' => 'Use AI responsibly in your business',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Be mindful of privacy, accuracy, and customer trust. Avoid sharing sensitive information in prompts and make sure any public-facing content is reviewed carefully.',
|
||||||
|
'Practical AI adoption is about steady improvement. Start small, measure what helps, and build from there.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'AI for Content Creation: From Idea to Draft',
|
||||||
|
'slug' => 'ai-for-content-creation',
|
||||||
|
'date' => 'February 24, 2026',
|
||||||
|
'read_time' => 6,
|
||||||
|
'category' => 'Content Creation',
|
||||||
|
'excerpt' => 'Find out how to use AI to brainstorm topics, outline content, and create first drafts while keeping your message clear and original.',
|
||||||
|
'image' => 'assets/img/heroimage.png',
|
||||||
|
'alt' => 'A glowing AI visual on a monitor in a creative workspace',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Content', 'Writing', 'Creativity', 'Workflow'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'brainstorm-ideas',
|
||||||
|
'heading' => 'Brainstorm ideas with direction',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI can be a helpful partner when you are starting from a blank page. Use it to explore topics, angles, and questions your audience may care about.',
|
||||||
|
'Provide context about your goals and audience so the ideas you receive are relevant and useful.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'build-an-outline',
|
||||||
|
'heading' => 'Build a clear outline',
|
||||||
|
'paragraphs' => [
|
||||||
|
'An outline helps turn ideas into structure. Ask AI to suggest sections, key points, or a logical flow, then adjust it to match your voice and purpose.',
|
||||||
|
'A strong outline makes drafting faster and helps keep your content focused.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Define the main message of the piece.',
|
||||||
|
'Organise points in a logical order.',
|
||||||
|
'Include examples or takeaways for readers.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'draft-and-refine',
|
||||||
|
'heading' => 'Draft and refine with care',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI can generate first drafts or alternative versions of sections, which can help you overcome writer’s block. Use these drafts as material to shape, not as final copy.',
|
||||||
|
'Edit for clarity, accuracy, and originality. Your perspective and experience are what make content meaningful.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'keep-your-voice',
|
||||||
|
'heading' => 'Keep your voice and quality standards',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Review tone, facts, and structure before publishing. Make sure the final piece reflects your brand or personal style and provides real value to readers.',
|
||||||
|
'When used thoughtfully, AI can support a creative workflow while leaving room for human insight and quality control.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Using AI to Support Research and Learning',
|
||||||
|
'slug' => 'ai-for-research-and-learning',
|
||||||
|
'date' => 'February 21, 2026',
|
||||||
|
'read_time' => 5,
|
||||||
|
'category' => 'Learning',
|
||||||
|
'excerpt' => 'Learn how AI can help you summarise information, explore questions, and organise notes while still checking sources carefully.',
|
||||||
|
'image' => 'assets/img/interview.jpg',
|
||||||
|
'alt' => 'A team discussion in a collaborative learning space',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Research', 'Learning', 'Study Skills', 'Notes'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'explore-topics',
|
||||||
|
'heading' => 'Explore topics and questions',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI can help you break down a topic, identify related questions, and create a starting point for deeper learning. This is useful when you are new to a subject or need direction.',
|
||||||
|
'Use these suggestions to guide your research, not to replace it.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'summarise-and-organise',
|
||||||
|
'heading' => 'Summarise and organise information',
|
||||||
|
'paragraphs' => [
|
||||||
|
'When working with notes or long materials, AI can help create summaries, highlight key points, or organise information into themes. This can make studying more efficient.',
|
||||||
|
'Be sure to compare summaries with the original material so important details are not missed.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Turn notes into clear study outlines.',
|
||||||
|
'Group ideas by topic or question.',
|
||||||
|
'Create short revision summaries for review.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'check-sources',
|
||||||
|
'heading' => 'Check sources and accuracy',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI tools may not always provide complete or accurate information. Verify key facts, consult reliable sources, and use your own judgement when evaluating what you learn.',
|
||||||
|
'Critical thinking is an essential part of using AI effectively in research and learning.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'build-understanding',
|
||||||
|
'heading' => 'Build understanding over time',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Use AI to support practice, ask follow-up questions, and explain concepts in different ways. These approaches can help reinforce understanding and make learning more engaging.',
|
||||||
|
'With careful use, AI can become a helpful study companion that supports curiosity and growth.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Planning and Scheduling with AI Assistants',
|
||||||
|
'slug' => 'ai-for-planning-and-scheduling',
|
||||||
|
'date' => 'February 18, 2026',
|
||||||
|
'read_time' => 4,
|
||||||
|
'category' => 'Productivity',
|
||||||
|
'excerpt' => 'Use AI to organise tasks, prepare agendas, and build simple schedules that make your day easier to manage.',
|
||||||
|
'image' => 'assets/img/student.jpg',
|
||||||
|
'alt' => 'A student organising work at a desk with a laptop',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Planning', 'Scheduling', 'Time Management', 'Organisation'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'organise-tasks',
|
||||||
|
'heading' => 'Organise tasks with clarity',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Planning becomes easier when tasks are visible and prioritised. AI can help you turn a list of to-dos into a structured plan with clear next steps.',
|
||||||
|
'Start by sharing your goals, deadlines, and available time so the plan reflects your real situation.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'prepare-agendas',
|
||||||
|
'heading' => 'Prepare agendas and routines',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI assistants can suggest meeting agendas, daily routines, or weekly checklists. This can reduce planning time and help you stay focused on what matters.',
|
||||||
|
'Review and adjust suggestions to fit your priorities and working style.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Create simple meeting agendas with time blocks.',
|
||||||
|
'Group related tasks to reduce context switching.',
|
||||||
|
'Set realistic goals for each day or week.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'adapt-your-schedule',
|
||||||
|
'heading' => 'Adapt when plans change',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Schedules often need to change. AI can help you quickly reorganise tasks, adjust priorities, or find alternative time blocks when something unexpected comes up.',
|
||||||
|
'Flexibility is key. Use AI to support quick adjustments without losing sight of your main goals.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'keep-it-simple',
|
||||||
|
'heading' => 'Keep your planning system simple',
|
||||||
|
'paragraphs' => [
|
||||||
|
'The most effective planning tools are the ones you use consistently. Choose a simple approach, review it regularly, and refine it based on what works for you.',
|
||||||
|
'AI can make planning easier, but your habits and priorities are what make a schedule successful.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Organising Files and Notes with AI Tools',
|
||||||
|
'slug' => 'ai-for-file-organization',
|
||||||
|
'date' => 'February 15, 2026',
|
||||||
|
'read_time' => 5,
|
||||||
|
'category' => 'Organisation',
|
||||||
|
'excerpt' => 'Keep your digital workspace tidy with AI-supported naming, sorting, and summarising so important information is easier to find.',
|
||||||
|
'image' => 'assets/img/heroimage2.jpg',
|
||||||
|
'alt' => 'A tidy desk setup with planning materials and a laptop',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Organisation', 'Files', 'Notes', 'Workflows'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'create-clear-structure',
|
||||||
|
'heading' => 'Create a clear structure',
|
||||||
|
'paragraphs' => [
|
||||||
|
'A tidy digital workspace starts with simple, consistent organisation. AI can help you suggest folder structures, naming conventions, or categories based on how you work.',
|
||||||
|
'Choose a structure that is easy to maintain so it continues to be useful over time.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'summarise-notes',
|
||||||
|
'heading' => 'Summarise and label notes',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI tools can help turn long notes into summaries, action items, or clear labels. This makes it easier to find important information later.',
|
||||||
|
'Review summaries for accuracy and keep key details that may be needed in the future.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Use consistent file and note names.',
|
||||||
|
'Add short summaries for quick reference.',
|
||||||
|
'Group related materials by project or topic.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'maintain-good-habits',
|
||||||
|
'heading' => 'Maintain good organisation habits',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Organisation works best when it becomes part of your routine. Set aside time to review files, archive old materials, and keep your system up to date.',
|
||||||
|
'AI can support these habits, but regular attention and clear decisions are what keep your workspace manageable.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'find-information-faster',
|
||||||
|
'heading' => 'Find information faster',
|
||||||
|
'paragraphs' => [
|
||||||
|
'When files and notes are well organised, you spend less time searching and more time doing meaningful work. AI can help by suggesting tags, summaries, or ways to group related content.',
|
||||||
|
'Start small, improve gradually, and focus on a system that supports your daily needs.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Learning AI Skills as a Beginner',
|
||||||
|
'slug' => 'learning-ai-as-a-beginner',
|
||||||
|
'date' => 'February 12, 2026',
|
||||||
|
'read_time' => 6,
|
||||||
|
'category' => 'Learning',
|
||||||
|
'excerpt' => 'A step-by-step approach to learning AI fundamentals, practising with real tasks, and building confidence over time.',
|
||||||
|
'image' => 'assets/img/heroimage.png',
|
||||||
|
'alt' => 'A modern workspace with an AI-themed screen display',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Beginner', 'Learning Path', 'Skills', 'Confidence'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'set-a-clear-goal',
|
||||||
|
'heading' => 'Set a clear learning goal',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Learning AI is easier when you know why you are learning it. Your goal might be to improve productivity, explore a new career direction, or understand how AI tools can support your work.',
|
||||||
|
'A clear goal helps you choose the right topics and stay motivated as you practise.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'learn-by-doing',
|
||||||
|
'heading' => 'Learn by doing real tasks',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Hands-on practice is one of the best ways to build confidence. Apply AI to tasks you already understand, such as writing, planning, or organising information.',
|
||||||
|
'Each small project helps you learn what works, what needs improvement, and how to ask better questions.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Practise with familiar, low-risk tasks.',
|
||||||
|
'Experiment with different prompts and approaches.',
|
||||||
|
'Reflect on results and adjust your process.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'build-foundations',
|
||||||
|
'heading' => 'Build foundations gradually',
|
||||||
|
'paragraphs' => [
|
||||||
|
'You do not need to learn everything at once. Focus on core ideas like how to give clear instructions, review outputs, and use AI responsibly.',
|
||||||
|
'As your confidence grows, you can explore more advanced tools and workflows that match your interests.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'stay-curious',
|
||||||
|
'heading' => 'Stay curious and keep practising',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI tools and use cases continue to evolve, so ongoing learning is part of the journey. Stay curious, ask questions, and look for practical ways to apply new skills.',
|
||||||
|
'Progress comes from consistent effort. With time and practice, you can build a strong foundation for using AI effectively.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => 'Exploring Practical AI Career Paths',
|
||||||
|
'slug' => 'ai-career-paths',
|
||||||
|
'date' => 'February 9, 2026',
|
||||||
|
'read_time' => 7,
|
||||||
|
'category' => 'Career',
|
||||||
|
'excerpt' => 'Understand how AI skills can support different roles, from marketing and business to content, research, and technical work.',
|
||||||
|
'image' => 'assets/img/interview.jpg',
|
||||||
|
'alt' => 'People discussing opportunities in a professional setting',
|
||||||
|
'author' => [
|
||||||
|
'name' => 'AI Institute Editorial Team',
|
||||||
|
'role' => 'Learning Content Team',
|
||||||
|
'bio' => 'Our editorial team creates practical, beginner-friendly resources to help learners explore AI tools with clarity and confidence.',
|
||||||
|
'articles' => 12,
|
||||||
|
],
|
||||||
|
'tags' => ['Career', 'Skills', 'Opportunities', 'Professional Growth'],
|
||||||
|
'sections' => [
|
||||||
|
[
|
||||||
|
'id' => 'ai-across-roles',
|
||||||
|
'heading' => 'AI skills across different roles',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI is influencing many types of work, not just technical roles. People in marketing, operations, content, research, and business can all benefit from practical AI skills.',
|
||||||
|
'Understanding how AI fits into your current or future role can help you focus on the most relevant tools and learning paths.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'combine-skills',
|
||||||
|
'heading' => 'Combine AI with existing strengths',
|
||||||
|
'paragraphs' => [
|
||||||
|
'AI skills are often most valuable when combined with domain knowledge, communication, and problem-solving abilities. Think about how AI can enhance what you already do well.',
|
||||||
|
'This combination can help you contribute more effectively and explore new opportunities over time.',
|
||||||
|
],
|
||||||
|
'list' => [
|
||||||
|
'Pair AI tools with your industry knowledge.',
|
||||||
|
'Develop communication and critical thinking skills.',
|
||||||
|
'Build a portfolio of practical projects and examples.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'learn-with-purpose',
|
||||||
|
'heading' => 'Learn with purpose and direction',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Choose learning activities that align with your goals. If you are interested in content, focus on writing and creative workflows. If you prefer analysis, explore data and research tasks.',
|
||||||
|
'Purposeful learning helps you build skills that are relevant and easier to apply in real situations.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'id' => 'plan-your-next-step',
|
||||||
|
'heading' => 'Plan your next step',
|
||||||
|
'paragraphs' => [
|
||||||
|
'Career growth is a gradual process. Use AI learning to build confidence, create evidence of your skills, and explore opportunities that match your interests.',
|
||||||
|
'By staying practical and curious, you can shape a learning path that supports your long-term goals.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|||||||
+5
-4
@@ -28,8 +28,7 @@
|
|||||||
<ul class="footer-links">
|
<ul class="footer-links">
|
||||||
<li><a href="index.php">Home</a></li>
|
<li><a href="index.php">Home</a></li>
|
||||||
<li><a href="about.php">About</a></li>
|
<li><a href="about.php">About</a></li>
|
||||||
<li><a href="index.php#projects">Student Work</a></li>
|
<li><a href="student-work.php">Student Work</a></li>
|
||||||
<li><a href="index.php#contact">Contact</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -46,9 +45,11 @@
|
|||||||
<div class="footer-col">
|
<div class="footer-col">
|
||||||
<h4 class="footer-col__title">Get started</h4>
|
<h4 class="footer-col__title">Get started</h4>
|
||||||
<ul class="footer-links">
|
<ul class="footer-links">
|
||||||
<li><a href="index.php#projects">Resources</a></li>
|
<li><a href="student-work.php#gallery">Resources</a></li>
|
||||||
|
<li><a href="blog.php">Blog</a></li>
|
||||||
|
<li><a href="testimonial.php">Testimonials</a></li>
|
||||||
<!-- TODO: no login page exists yet; update this link once one is available -->
|
<!-- TODO: no login page exists yet; update this link once one is available -->
|
||||||
<li><a href="#apply">Login</a></li>
|
<!-- <li><a href="#apply">Login</a></li> -->
|
||||||
<li><a href="application.php">Apply Now</a></li>
|
<li><a href="application.php">Apply Now</a></li>
|
||||||
<li><a href="index.php#contact">Talk to an Advisor</a></li>
|
<li><a href="index.php#contact">Talk to an Advisor</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -65,6 +65,9 @@ $activePage = $activePage ?? 'home';
|
|||||||
<li class="nav__item">
|
<li class="nav__item">
|
||||||
<a class="nav__link<?= $activePage === 'certification' ? ' is-active' : '' ?>" href="certificate.php"<?= $activePage === 'certification' ? ' aria-current="page"' : '' ?>>Certification</a>
|
<a class="nav__link<?= $activePage === 'certification' ? ' is-active' : '' ?>" href="certificate.php"<?= $activePage === 'certification' ? ' aria-current="page"' : '' ?>>Certification</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav__item">
|
||||||
|
<a class="nav__link<?= $activePage === 'student-work' ? ' is-active' : '' ?>" href="student-work.php"<?= $activePage === 'student-work' ? ' aria-current="page"' : '' ?>>Student Work</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|||||||
@@ -277,27 +277,27 @@ require __DIR__ . '/includes/header.php';
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="project-grid">
|
<div class="project-grid">
|
||||||
<?php foreach ($projects as $project): ?>
|
<?php foreach ($projects as $project): ?>
|
||||||
<article class="project-card card reveal">
|
<article class="project-card card reveal">
|
||||||
<div class="project-card__media">
|
<div class="project-card__media">
|
||||||
<img
|
<img
|
||||||
class="project-card__img"
|
class="project-card__img"
|
||||||
src="<?= e($project['image']) ?>"
|
src="<?= e($project['image']) ?>"
|
||||||
alt="<?= e($project['alt']) ?>"
|
alt="<?= e($project['alt']) ?>"
|
||||||
width="1000"
|
width="1000"
|
||||||
height="640"
|
height="640"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
>
|
>
|
||||||
<span class="project-card__tag"><?= e($project['tag']) ?></span>
|
<span class="project-card__tag"><?= e($project['tag']) ?></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="project-card__body">
|
<div class="project-card__body">
|
||||||
<h3 class="project-card__title"><?= e($project['title']) ?></h3>
|
<h3 class="project-card__title"><?= e($project['title']) ?></h3>
|
||||||
<a class="project-card__link" href="#apply">
|
<a class="project-card__link" href="view-project.php?id=<?= (int) $project['id'] ?>">
|
||||||
View Project <?= icon('arrow-right') ?>
|
View Project <?= icon('arrow-right') ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
+1
-1
@@ -124,7 +124,7 @@ include 'includes/header.php';
|
|||||||
<section class="intern-cta">
|
<section class="intern-cta">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="intern-cta__inner">
|
<div class="intern-cta__inner">
|
||||||
<h2 class="intern-cta__title">Ready to start your internship pathway?</h2>
|
<h2 class="intern-cta__title">Ready to Get Started?</h2>
|
||||||
<p class="intern-cta__text">
|
<p class="intern-cta__text">
|
||||||
Talk to an advisor about which course gets you there, or apply today.
|
Talk to an advisor about which course gets you there, or apply today.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -0,0 +1,202 @@
|
|||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/includes/data.php';
|
||||||
|
|
||||||
|
$pageTitle = 'Student Work | AI Institute';
|
||||||
|
$pageDescription = 'Explore an illustrative gallery of practical student project concepts and learning journeys at AI Institute.';
|
||||||
|
$activePage = 'student-work';
|
||||||
|
|
||||||
|
require __DIR__ . '/includes/header.php';
|
||||||
|
?>
|
||||||
|
|
||||||
|
<main id="main-content" class="student-work">
|
||||||
|
|
||||||
|
<!-- ===== STUDENT WORK HERO ===== -->
|
||||||
|
<section class="student-work__hero section">
|
||||||
|
<div class="container student-work__hero-grid">
|
||||||
|
<div class="student-work__hero-content reveal">
|
||||||
|
<span class="eyebrow">Student work · Illustrative gallery</span>
|
||||||
|
<h1 class="student-work__title">
|
||||||
|
<span class="student-work__title-line">Ideas into action.</span>
|
||||||
|
<!-- <span class="student-work__title-line student-work__title-line--accent">Learning made visible.</span> -->
|
||||||
|
</h1>
|
||||||
|
<p class="student-work__text">
|
||||||
|
Explore the kinds of practical work a learning journey could include. This gallery is a collection of placeholder project concepts; genuine student submissions will be featured when available.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <div class="student-work__hero-media reveal">
|
||||||
|
<div class="student-work__hero-image-wrap">
|
||||||
|
<img
|
||||||
|
class="student-work__hero-image"
|
||||||
|
src="assets/img/student.jpg"
|
||||||
|
alt="Illustrative workspace showing students collaborating on project ideas"
|
||||||
|
width="1100"
|
||||||
|
height="900"
|
||||||
|
>
|
||||||
|
<div class="student-work__float card">
|
||||||
|
<span class="student-work__float-icon"><?= icon('lightbulb') ?></span>
|
||||||
|
<div class="student-work__float-body">
|
||||||
|
<p class="student-work__float-title">Build around useful work</p>
|
||||||
|
<p class="student-work__float-text">Learn. Practice. Build. Apply.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="student-work__caption">Illustrative workspace imagery · not actual students or faculty</p>
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- ===== GALLERY ===== -->
|
||||||
|
<section class="section section--alt student-work__gallery" id="gallery">
|
||||||
|
<div class="container">
|
||||||
|
<div class="section__head reveal">
|
||||||
|
<span class="eyebrow">Explore the possibilities</span>
|
||||||
|
<h2 class="section__title">A space for thoughtful, practical work.</h2>
|
||||||
|
<p class="section__lead">
|
||||||
|
Browse by course, skill, or batch in the proposed gallery experience. Filters and project links are static design elements.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="student-work__notice reveal" role="note">
|
||||||
|
<span class="student-work__notice-icon"><?= icon('sparkles') ?></span>
|
||||||
|
<p class="student-work__notice-text">All projects, student names, batches, descriptions, skills, and thumbnails are editable placeholders—not actual submissions, student facts, or achievements. Visuals are illustrative. No project performance or outcomes are claimed.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="student-work__filters reveal">
|
||||||
|
<div class="student-work__filter-group">
|
||||||
|
<label class="student-work__filter-label" for="filter-course">Course</label>
|
||||||
|
<select class="student-work__select" id="filter-course" data-filter="course">
|
||||||
|
<option value="all">All courses</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="student-work__filter-group">
|
||||||
|
<label class="student-work__filter-label" for="filter-skill">Skill</label>
|
||||||
|
<select class="student-work__select" id="filter-skill" data-filter="skill">
|
||||||
|
<option value="all">All skills</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="student-work__filter-group">
|
||||||
|
<label class="student-work__filter-label" for="filter-batch">Batch</label>
|
||||||
|
<select class="student-work__select" id="filter-batch" data-filter="batch">
|
||||||
|
<option value="all">All batches</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="student-work__results reveal">
|
||||||
|
<p class="student-work__count" aria-live="polite">Showing <?= count($projects) ?> illustrative concepts</p>
|
||||||
|
<button class="student-work__reset" type="button">Reset filters</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="student-work__grid" id="student-work-grid">
|
||||||
|
<?php foreach ($projects as $project): ?>
|
||||||
|
<?php
|
||||||
|
$course = isset($project['course']) ? (string) $project['course'] : (isset($project['tag']) ? (string) $project['tag'] : '');
|
||||||
|
$student = isset($project['student']) ? (string) $project['student'] : '';
|
||||||
|
$batch = isset($project['batch']) ? (string) $project['batch'] : (isset($project['year']) ? (string) $project['year'] : '');
|
||||||
|
$skillsList = [];
|
||||||
|
if (!empty($project['skills']) && is_array($project['skills'])) {
|
||||||
|
foreach ($project['skills'] as $skill) {
|
||||||
|
$skillsList[] = is_array($skill) ? (string) ($skill['label'] ?? '') : (string) $skill;
|
||||||
|
}
|
||||||
|
$skillsList = array_values(array_filter($skillsList, static function ($skill) {
|
||||||
|
return $skill !== '';
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
$skillsLine = implode(' · ', $skillsList);
|
||||||
|
?>
|
||||||
|
<article
|
||||||
|
class="student-card card reveal"
|
||||||
|
data-course="<?= e($course) ?>"
|
||||||
|
data-batch="<?= e($batch) ?>"
|
||||||
|
data-skills="<?= e(implode('|', $skillsList)) ?>"
|
||||||
|
>
|
||||||
|
<div class="student-card__media">
|
||||||
|
<img
|
||||||
|
class="student-card__img"
|
||||||
|
src="<?= e($project['image']) ?>"
|
||||||
|
alt="<?= e($project['alt'] ?? $project['title']) ?>"
|
||||||
|
width="1000"
|
||||||
|
height="640"
|
||||||
|
loading="lazy"
|
||||||
|
>
|
||||||
|
<span class="student-card__badge">Placeholder project</span>
|
||||||
|
</div>
|
||||||
|
<div class="student-card__body">
|
||||||
|
<?php if ($course !== ''): ?>
|
||||||
|
<p class="student-card__course"><?= e($course) ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<h3 class="student-card__title"><?= e($project['title']) ?></h3>
|
||||||
|
<?php if (!empty($project['description'])): ?>
|
||||||
|
<p class="student-card__desc"><?= e($project['description']) ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<p class="student-card__meta"><?= e($student) ?> · <?= e($batch) ?> · Editable placeholders – not an actual student achievement</p>
|
||||||
|
<?php if ($skillsLine !== ''): ?>
|
||||||
|
<p class="student-card__skills"><?= e($skillsLine) ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<div class="student-card__footer">
|
||||||
|
<span class="student-card__divider" aria-hidden="true"></span>
|
||||||
|
<a class="student-card__link" href="view-project.php?id=<?= (int) $project['id'] ?>">
|
||||||
|
View Project <?= icon('arrow-right') ?>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="student-work__empty card" hidden>
|
||||||
|
<p class="student-work__empty-title">No illustrative concepts match these filters.</p>
|
||||||
|
<p class="student-work__empty-text">Try a different combination or reset the filters to see all placeholder projects.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- ===== MORE THAN THE FINAL OUTPUT ===== -->
|
||||||
|
<section class="section student-work__process">
|
||||||
|
<div class="container">
|
||||||
|
<div class="section__head reveal">
|
||||||
|
<span class="eyebrow">More than the final output</span>
|
||||||
|
<h2 class="section__title">Show the thinking behind the idea.</h2>
|
||||||
|
<p class="section__lead">A proposed structure for future project stories. Actual submissions will need student consent and permission to publish.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="student-work__process-grid">
|
||||||
|
<article class="student-work__process-card card reveal">
|
||||||
|
<span class="student-work__process-icon"><?= icon('book') ?></span>
|
||||||
|
<h3 class="student-work__process-title">The brief</h3>
|
||||||
|
<p class="student-work__process-text">Explain the question, intended audience, and boundaries of the task.</p>
|
||||||
|
</article>
|
||||||
|
<article class="student-work__process-card card reveal">
|
||||||
|
<span class="student-work__process-icon"><?= icon('layers') ?></span>
|
||||||
|
<h3 class="student-work__process-title">The process</h3>
|
||||||
|
<p class="student-work__process-text">Make the research, AI use, human decisions, and revisions visible.</p>
|
||||||
|
</article>
|
||||||
|
<article class="student-work__process-card card reveal">
|
||||||
|
<span class="student-work__process-icon"><?= icon('sparkles') ?></span>
|
||||||
|
<h3 class="student-work__process-title">The reflection</h3>
|
||||||
|
<p class="student-work__process-text">Describe what was learned, what needs checking, and what could improve.</p>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- ===== CTA ===== -->
|
||||||
|
<section class="cta student-work__cta">
|
||||||
|
<div class="container">
|
||||||
|
<div class="cta__inner reveal">
|
||||||
|
<span class="eyebrow">Your next chapter</span>
|
||||||
|
<h2 class="cta__title">What would you like to build?</h2>
|
||||||
|
<p class="cta__text">Start with curiosity. Build with purpose. Talk through your goals and find a practical learning path that feels right for you.</p>
|
||||||
|
<div class="cta__actions">
|
||||||
|
<a class="btn btn--primary" href="index.php#apply">Apply Now</a>
|
||||||
|
<a class="btn btn--ghost" href="index.php#contact">Talk to an Advisor</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<?php require __DIR__ . '/includes/footer.php'; ?>
|
||||||
+173
@@ -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'; ?>
|
||||||
@@ -0,0 +1,339 @@
|
|||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/includes/data.php';
|
||||||
|
|
||||||
|
$projectId = isset($_GET['id']) ? (int) $_GET['id'] : 0;
|
||||||
|
$currentProject = null;
|
||||||
|
|
||||||
|
foreach ($projects as $project) {
|
||||||
|
if ((int) ($project['id'] ?? 0) === $projectId) {
|
||||||
|
$currentProject = $project;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$activePage = 'student-work';
|
||||||
|
|
||||||
|
if ($currentProject === null) {
|
||||||
|
http_response_code(404);
|
||||||
|
$pageTitle = 'Project not found | AI Institute';
|
||||||
|
$pageDescription = 'The requested student project could not be found.';
|
||||||
|
} else {
|
||||||
|
$pageTitle = $currentProject['title'] . ' | Student Work | AI Institute';
|
||||||
|
$pageDescription = $currentProject['description'] ?? 'Explore this illustrative student project concept from AI Institute.';
|
||||||
|
}
|
||||||
|
|
||||||
|
require __DIR__ . '/includes/header.php';
|
||||||
|
?>
|
||||||
|
|
||||||
|
<main id="main-content" class="project-detail">
|
||||||
|
<?php if ($currentProject === null): ?>
|
||||||
|
|
||||||
|
<section class="section project-detail__missing">
|
||||||
|
<div class="container">
|
||||||
|
<div class="project-detail__missing-inner reveal">
|
||||||
|
<span class="eyebrow">Student work</span>
|
||||||
|
<h1 class="section__title">Project not found</h1>
|
||||||
|
<p class="section__lead">The project you are looking for may have moved or does not exist.</p>
|
||||||
|
<a class="btn btn--primary" href="student-work.php#gallery">Back to Projects</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<?php else: ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$projectCourse = isset($currentProject['course']) ? (string) $currentProject['course'] : (isset($currentProject['tag']) ? (string) $currentProject['tag'] : '');
|
||||||
|
$projectStudent = isset($currentProject['student']) ? (string) $currentProject['student'] : '';
|
||||||
|
$projectBatch = isset($currentProject['batch']) ? (string) $currentProject['batch'] : (isset($currentProject['year']) ? (string) $currentProject['year'] : '');
|
||||||
|
$projectSkills = [];
|
||||||
|
if (!empty($currentProject['skills']) && is_array($currentProject['skills'])) {
|
||||||
|
foreach ($currentProject['skills'] as $skill) {
|
||||||
|
$projectSkills[] = is_array($skill) ? (string) ($skill['label'] ?? '') : (string) $skill;
|
||||||
|
}
|
||||||
|
$projectSkills = array_values(array_filter($projectSkills, static function ($skill) {
|
||||||
|
return $skill !== '';
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
$skillIcons = !empty($currentProject['skill_icons']) && is_array($currentProject['skill_icons'])
|
||||||
|
? $currentProject['skill_icons']
|
||||||
|
: (!empty($currentProject['skills']) && is_array($currentProject['skills']) ? $currentProject['skills'] : []);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!-- ===== PROJECT HERO ===== -->
|
||||||
|
<section class="project-detail__hero section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="project-detail__hero-inner reveal">
|
||||||
|
<nav class="breadcrumb project-detail__breadcrumb" aria-label="Breadcrumb">
|
||||||
|
<ol class="breadcrumb__list">
|
||||||
|
<li class="breadcrumb__item"><a href="index.php">Home</a></li>
|
||||||
|
<li class="breadcrumb__item"><a href="student-work.php">Student Work</a></li>
|
||||||
|
<li class="breadcrumb__item" aria-current="page"><?= e($currentProject['title']) ?></li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<span class="project-detail__badge">Placeholder project</span>
|
||||||
|
|
||||||
|
<h1 class="section__title project-detail__title"><?= e($currentProject['title']) ?></h1>
|
||||||
|
|
||||||
|
<?php if (!empty($currentProject['description'])): ?>
|
||||||
|
<p class="section__lead project-detail__lead"><?= e($currentProject['description']) ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="project-detail__media reveal">
|
||||||
|
<img
|
||||||
|
src="<?= e($currentProject['image']) ?>"
|
||||||
|
alt="<?= e($currentProject['alt'] ?? $currentProject['title']) ?>"
|
||||||
|
width="1200"
|
||||||
|
height="675"
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- ===== PROJECT INFO ===== -->
|
||||||
|
<section class="section project-detail__info">
|
||||||
|
<div class="container">
|
||||||
|
<div class="project-detail__grid">
|
||||||
|
<div class="project-detail__main">
|
||||||
|
<p class="project-detail__disclaimer reveal">Editable placeholder – not an actual student achievement.</p>
|
||||||
|
|
||||||
|
<?php if (!empty($currentProject['overview'])): ?>
|
||||||
|
<div class="project-detail__block reveal">
|
||||||
|
<div class="section__head">
|
||||||
|
<span class="eyebrow">Project summary</span>
|
||||||
|
<h2 class="section__title">Overview</h2>
|
||||||
|
</div>
|
||||||
|
<p class="project-detail__text"><?= e($currentProject['overview']) ?></p>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if (!empty($currentProject['built']) && is_array($currentProject['built'])): ?>
|
||||||
|
<div class="project-detail__block reveal">
|
||||||
|
<div class="section__head">
|
||||||
|
<span class="eyebrow">Student work</span>
|
||||||
|
<h2 class="section__title">What the students built</h2>
|
||||||
|
</div>
|
||||||
|
<ul class="project-detail__list">
|
||||||
|
<?php foreach ($currentProject['built'] as $item): ?>
|
||||||
|
<li class="project-detail__list-item">
|
||||||
|
<span class="project-detail__list-icon"><?= icon('check-circle') ?></span>
|
||||||
|
<span><?= e($item) ?></span>
|
||||||
|
</li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if (!empty($skillIcons) && is_array($skillIcons)): ?>
|
||||||
|
<div class="project-detail__block reveal">
|
||||||
|
<div class="section__head">
|
||||||
|
<span class="eyebrow">Learning outcomes</span>
|
||||||
|
<h2 class="section__title">Skills learned</h2>
|
||||||
|
</div>
|
||||||
|
<ul class="project-detail__skills">
|
||||||
|
<?php foreach ($skillIcons as $skill): ?>
|
||||||
|
<?php
|
||||||
|
$skillLabel = is_array($skill) ? ($skill['label'] ?? '') : (string) $skill;
|
||||||
|
$skillIcon = is_array($skill) ? ($skill['icon'] ?? 'sparkles') : 'sparkles';
|
||||||
|
if ($skillLabel === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<li class="project-detail__skill card">
|
||||||
|
<span class="project-detail__skill-icon"><?= icon($skillIcon) ?></span>
|
||||||
|
<span class="project-detail__skill-label"><?= e($skillLabel) ?></span>
|
||||||
|
</li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if (!empty($currentProject['brief']) || !empty($currentProject['process']) || !empty($currentProject['reflection'])): ?>
|
||||||
|
<div class="project-detail__block reveal">
|
||||||
|
<div class="section__head">
|
||||||
|
<span class="eyebrow">More than the final output</span>
|
||||||
|
<h2 class="section__title">Brief / Process / Reflection</h2>
|
||||||
|
</div>
|
||||||
|
<div class="project-detail__thinking-grid">
|
||||||
|
<?php if (!empty($currentProject['brief'])): ?>
|
||||||
|
<article class="project-detail__thinking-card card">
|
||||||
|
<span class="project-detail__thinking-icon"><?= icon('book') ?></span>
|
||||||
|
<h3 class="project-detail__thinking-title">The brief</h3>
|
||||||
|
<p class="project-detail__thinking-text"><?= e($currentProject['brief']) ?></p>
|
||||||
|
</article>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if (!empty($currentProject['process'])): ?>
|
||||||
|
<article class="project-detail__thinking-card card">
|
||||||
|
<span class="project-detail__thinking-icon"><?= icon('layers') ?></span>
|
||||||
|
<h3 class="project-detail__thinking-title">The process</h3>
|
||||||
|
<p class="project-detail__thinking-text"><?= e($currentProject['process']) ?></p>
|
||||||
|
</article>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if (!empty($currentProject['reflection'])): ?>
|
||||||
|
<article class="project-detail__thinking-card card">
|
||||||
|
<span class="project-detail__thinking-icon"><?= icon('sparkles') ?></span>
|
||||||
|
<h3 class="project-detail__thinking-title">The reflection</h3>
|
||||||
|
<p class="project-detail__thinking-text"><?= e($currentProject['reflection']) ?></p>
|
||||||
|
</article>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<aside class="project-detail__sidebar reveal">
|
||||||
|
<div class="project-detail__meta card">
|
||||||
|
<h2 class="project-detail__meta-title">Project details</h2>
|
||||||
|
<dl class="project-detail__meta-list">
|
||||||
|
<?php if ($projectCourse !== ''): ?>
|
||||||
|
<div class="project-detail__meta-item">
|
||||||
|
<dt>Course</dt>
|
||||||
|
<dd><?= e($projectCourse) ?></dd>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if ($projectStudent !== ''): ?>
|
||||||
|
<div class="project-detail__meta-item">
|
||||||
|
<dt>Student</dt>
|
||||||
|
<dd><?= e($projectStudent) ?></dd>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if ($projectBatch !== ''): ?>
|
||||||
|
<div class="project-detail__meta-item">
|
||||||
|
<dt>Batch</dt>
|
||||||
|
<dd><?= e($projectBatch) ?></dd>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if (!empty($projectSkills)): ?>
|
||||||
|
<div class="project-detail__meta-item">
|
||||||
|
<dt>Skills</dt>
|
||||||
|
<dd>
|
||||||
|
<ul class="project-detail__meta-tools">
|
||||||
|
<?php foreach ($projectSkills as $skill): ?>
|
||||||
|
<li><?= e($skill) ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if (!empty($currentProject['tools']) && is_array($currentProject['tools'])): ?>
|
||||||
|
<div class="project-detail__meta-item">
|
||||||
|
<dt>Tools</dt>
|
||||||
|
<dd>
|
||||||
|
<ul class="project-detail__meta-tools">
|
||||||
|
<?php foreach ($currentProject['tools'] as $tool): ?>
|
||||||
|
<li><?= e($tool) ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a class="btn btn--light project-detail__back-link" href="student-work.php#gallery">Back to all projects</a>
|
||||||
|
</aside>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$moreProjects = [];
|
||||||
|
foreach ($projects as $project) {
|
||||||
|
if ((int) ($project['id'] ?? 0) === (int) $currentProject['id']) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$moreProjects[] = $project;
|
||||||
|
}
|
||||||
|
$moreProjects = array_slice($moreProjects, 0, 3);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php if (!empty($moreProjects)): ?>
|
||||||
|
<!-- ===== MORE PROJECTS ===== -->
|
||||||
|
<section class="section section--alt project-detail__more">
|
||||||
|
<div class="container">
|
||||||
|
<div class="section__head reveal">
|
||||||
|
<span class="eyebrow">Keep exploring</span>
|
||||||
|
<h2 class="section__title">More projects</h2>
|
||||||
|
<p class="section__lead">Explore more illustrative project concepts from the gallery.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="student-work__grid student-work__grid--more">
|
||||||
|
<?php foreach ($moreProjects as $project): ?>
|
||||||
|
<?php
|
||||||
|
$course = isset($project['course']) ? (string) $project['course'] : (isset($project['tag']) ? (string) $project['tag'] : '');
|
||||||
|
$student = isset($project['student']) ? (string) $project['student'] : '';
|
||||||
|
$batch = isset($project['batch']) ? (string) $project['batch'] : (isset($project['year']) ? (string) $project['year'] : '');
|
||||||
|
$skillsList = [];
|
||||||
|
if (!empty($project['skills']) && is_array($project['skills'])) {
|
||||||
|
foreach ($project['skills'] as $skill) {
|
||||||
|
$skillsList[] = is_array($skill) ? (string) ($skill['label'] ?? '') : (string) $skill;
|
||||||
|
}
|
||||||
|
$skillsList = array_values(array_filter($skillsList, static function ($skill) {
|
||||||
|
return $skill !== '';
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
$skillsLine = implode(' · ', $skillsList);
|
||||||
|
?>
|
||||||
|
<article class="student-card card reveal">
|
||||||
|
<div class="student-card__media">
|
||||||
|
<img
|
||||||
|
class="student-card__img"
|
||||||
|
src="<?= e($project['image']) ?>"
|
||||||
|
alt="<?= e($project['alt'] ?? $project['title']) ?>"
|
||||||
|
width="1000"
|
||||||
|
height="640"
|
||||||
|
loading="lazy"
|
||||||
|
>
|
||||||
|
<span class="student-card__badge">Placeholder project</span>
|
||||||
|
</div>
|
||||||
|
<div class="student-card__body">
|
||||||
|
<?php if ($course !== ''): ?>
|
||||||
|
<p class="student-card__course"><?= e($course) ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<h3 class="student-card__title"><?= e($project['title']) ?></h3>
|
||||||
|
<?php if (!empty($project['description'])): ?>
|
||||||
|
<p class="student-card__desc"><?= e($project['description']) ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<p class="student-card__meta"><?= e($student) ?> · <?= e($batch) ?> · Editable placeholders – not an actual student achievement</p>
|
||||||
|
<?php if ($skillsLine !== ''): ?>
|
||||||
|
<p class="student-card__skills"><?= e($skillsLine) ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<div class="student-card__footer">
|
||||||
|
<span class="student-card__divider" aria-hidden="true"></span>
|
||||||
|
<a class="student-card__link" href="view-project.php?id=<?= (int) $project['id'] ?>">
|
||||||
|
View Project <?= icon('arrow-right') ?>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<!-- ===== CTA ===== -->
|
||||||
|
<section class="cta">
|
||||||
|
<div class="container">
|
||||||
|
<div class="cta__inner reveal">
|
||||||
|
<span class="eyebrow">Your next chapter</span>
|
||||||
|
<h2 class="cta__title">What would you like to build?</h2>
|
||||||
|
<p class="cta__text">Start with curiosity. Build with purpose. Talk through your goals and find a practical learning path that feels right for you.</p>
|
||||||
|
<div class="cta__actions">
|
||||||
|
<a class="btn btn--primary" href="index.php#apply">Apply Now</a>
|
||||||
|
<a class="btn btn--ghost" href="index.php#contact">Talk to an Advisor</a>
|
||||||
|
</div>
|
||||||
|
<p class="student-work__cta-note">Ask for confirmed course details before making a payment.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<?php require __DIR__ . '/includes/footer.php'; ?>
|
||||||
Reference in New Issue
Block a user