diff --git a/assets/css/style.css b/assets/css/style.css index a43243a..ee6ea5f 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -3187,8 +3187,9 @@ button { .nav__item--dropdown .dropdown { position: static; display: none; + width: 100%; min-width: 0; - padding: 4px 0 8px 16px; + padding: 4px 0 8px; border: 0; background: transparent; box-shadow: none; @@ -3197,13 +3198,11 @@ button { transform: none; } - .nav__item--dropdown.is-open .dropdown, - .nav__item--dropdown.is-open:hover .dropdown { + .nav__item--dropdown.is-open > .dropdown { display: block; - } - - .nav__item--dropdown:hover .dropdown { - display: none; + opacity: 1; + visibility: visible; + transform: none; } .nav__item--dropdown.is-open .nav__chevron { @@ -3211,7 +3210,19 @@ button { } .dropdown__link { - padding: 10px 12px; + display: flex; + align-items: center; + width: 100%; + min-height: 44px; + padding: 10px 12px 10px 24px; + border-radius: 8px; + color: var(--muted); + } + + .dropdown__link:hover, + .dropdown__link:active { + background-color: var(--accent-soft); + color: #fff; } .hero { @@ -3655,8 +3666,18 @@ button { .bc-head { margin-bottom: 36px; max-width: 620px; } .bc-title { font-weight: 500; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 14px 0 0; } .bc-lead { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 12px; } -.bc-note { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 28px; padding-left: 14px; border-left: 2px solid var(--red); max-width: 64ch; } - +.bc-note { + display: block; + position: relative; + font-size: 13px; + line-height: 1.7; + color: var(--muted); + margin-top: 34px !important; + padding-left: 12px !important; + border-left: 2px solid var(--red); + max-width: none; + clear: both; +} .bootcamps-page .btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.7); } .bootcamps-page .btn--ghost:hover { background: var(--white); color: var(--bg); } @@ -3710,14 +3731,23 @@ button { .camp__media { aspect-ratio: 3 / 2; overflow: hidden; } .camp__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; } .camp:hover .camp__media img { transform: scale(1.06); } -.camp__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; } -.camp__tag { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; } -.camp__title { font-weight: 500; font-size: 18px; line-height: 1.3; margin-bottom: 8px; } -.camp__text { font-size: 13px; line-height: 1.6; margin-bottom: 16px; } -.camp__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; margin-top: auto; } -.camp__meta li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; } +.camp__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 22px 24px 24px; } +.camp__tag { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; } +.camp__title { font-weight: 500; font-size: 18px; line-height: 1.3; } +.camp__text { flex: 1; font-size: 13px; line-height: 1.5; } +.camp__meta { display: flex; flex-wrap: nowrap; gap: 16px; color: var(--muted); } +.camp__meta li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; } .camp__meta svg { width: 14px; height: 14px; } -.camp__btn { align-self: flex-start; } +.camp__btn { + display: inline-flex; + align-self: flex-start; + width: auto; + margin-top: 8px; + padding: 12px 26px; + border-radius: var(--radius-pill); + font-size: 15px; + font-weight: 500; +} /* ---------- Steps ---------- */ .bc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } @@ -3729,26 +3759,130 @@ button { /* ---------- CTA ---------- */ .bc-cta { - position: relative; overflow: hidden; text-align: center; padding: 90px 0; - background: linear-gradient(135deg, #0D0D0D 0%, #0D0D0D 45%, rgba(189,37,42,.6) 100%), #0D0D0D; + position: relative; + overflow: hidden; + text-align: center; + padding: 72px 0; + background-color: var(--bg); + background-image: url('../img/cta/cta.png'); + background-size: cover; + background-position: center; + background-repeat: no-repeat; +} +.bc-cta::before, +.bc-cta::after { + content: ""; + position: absolute; + inset: 0; + pointer-events: none; +} +.bc-cta::before { background: rgba(0, 0, 0, .6); } +.bc-cta::after { + background: radial-gradient(circle at 100% 100%, var(--red) 0%, transparent 60%); + opacity: .55; +} +.bc-cta > .container { position: relative; z-index: 1; } +.bc-cta__inner { + display: flex; + flex-direction: column; + align-items: center; + gap: 12px; + max-width: 640px; + margin: 0 auto; + transition: opacity .6s ease, transform .6s ease; +} +.bc-cta__inner.is-reveal-pending { opacity: 0; transform: translateY(20px); } +.bc-cta__inner.is-reveal-visible { opacity: 1; transform: none; } +.bc-cta__title { + color: #fff; + font-weight: 700; + font-size: clamp(28px, 4vw, 40px); + line-height: 1.2; +} +.bc-cta__text { + max-width: 560px; + margin: 0; + color: rgba(255, 255, 255, .85); + font-size: 15px; + line-height: 1.5; +} +.bc-cta__actions { + display: flex; + align-items: center; + justify-content: center; + flex-wrap: wrap; + gap: 12px; + margin-top: 12px; +} +.bc-cta .btn { + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + width: auto; + max-width: none; + padding: 12px 28px; + border-radius: var(--radius-pill); + font-size: 15px; + font-weight: 500; + overflow: hidden; + transition: transform .25s ease, + background-color .25s ease, + border-color .25s ease, + box-shadow .25s ease, + color .25s ease; +} +.bc-cta .btn--primary { + background-color: var(--red); + color: #fff; + box-shadow: 0 10px 26px rgba(189, 37, 42, .32); +} +.bc-cta .btn--primary:hover { + background-color: var(--red); + box-shadow: 0 16px 34px rgba(189, 37, 42, .5); + transform: translateY(-2px); +} +.bc-cta .btn--ghost { + border: 1px solid rgba(255, 255, 255, .6); + background-color: transparent; + color: #fff; + box-shadow: none; +} +.bc-cta .btn--ghost:hover { + border-color: rgba(255, 255, 255, .9); + background-color: rgba(255, 255, 255, .12); + color: #fff; + transform: translateY(-2px); +} +.bc-cta .btn:active { transform: translateY(0) scale(.97); } +.bc-cta .btn__ripple { + position: absolute; + width: 14px; + height: 14px; + border-radius: 50%; + background: rgba(255, 255, 255, .45); + pointer-events: none; + transform: translate(-50%, -50%) scale(0); + animation: bc-cta-ripple .6s ease-out forwards; +} +@keyframes bc-cta-ripple { + to { transform: translate(-50%, -50%) scale(16); opacity: 0; } } -.bc-cta__inner { max-width: 640px; margin: 0 auto; } -.bc-cta__title { font-weight: 700; font-size: clamp(26px, 4vw, 38px); line-height: 1.2; margin-bottom: 14px; } -.bc-cta__text { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 auto 28px; max-width: 500px; } -.bc-cta__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; } /* ---------- Responsive ---------- */ @media (max-width: 992px) { .bc-hero__inner { grid-template-columns: 1fr; gap: 36px; } .bc-grid { grid-template-columns: repeat(2, 1fr); } } +@media (max-width: 768px) { + .bc-cta__title { font-size: clamp(26px, 7vw, 32px); } + .bc-cta__text { font-size: 14px; } +} @media (max-width: 576px) { .bc-hero { padding: 56px 0 48px; } .bc-section { padding: 56px 0; } .bc-grid, .bc-steps { grid-template-columns: 1fr; } .bc-cta { padding: 64px 0; } - .bc-cta__actions { flex-direction: column; align-items: center; } - .bc-cta__actions .btn { width: 100%; max-width: 320px; } } @media (max-width: 992px) and (min-width: 577px) { .bc-steps { grid-template-columns: 1fr; } } @@ -3756,6 +3890,10 @@ button { @media (prefers-reduced-motion: reduce) { .bc-hero__copy > *, .glance { animation: none !important; opacity: 1 !important; transform: none !important; } .bootcamps-page * { transition: none !important; } + .bc-cta__inner { opacity: 1 !important; transform: none !important; } + .bc-cta .btn:hover, + .bc-cta .btn:active { transform: none !important; } + .bc-cta .btn__ripple { display: none !important; } } /* ===== CERTIFICATION PAGE (certificate.php) ===== */ @@ -3883,6 +4021,7 @@ button { .cert-hero__title span { color: var(--cert-red); } .cert-hero__text { max-width: 620px; + margin-top: 12px !important; color: var(--cert-muted); font-size: 15px; line-height: 1.75; @@ -4339,38 +4478,127 @@ button { .cert-cta { position: relative; overflow: hidden; - padding: 90px 0; + padding: 72px 0; text-align: center; - background: linear-gradient(135deg, #0D0D0D 0%, #0D0D0D 45%, rgba(189, 37, 42, .6) 100%), #0D0D0D; + background-color: var(--cert-bg); + background-image: url('../img/cta/cta.png'); + background-size: cover; + background-position: center; + background-repeat: no-repeat; } -.cert-cta__inner { max-width: 720px; margin: 0 auto; } -.cert-cta__title { - margin: 12px 0 14px; - color: var(--cert-white); - font-size: clamp(26px, 3.4vw, 36px); - font-weight: 500; +.cert-cta::before, +.cert-cta::after { + content: ""; + position: absolute; + inset: 0; + pointer-events: none; +} +.cert-cta::before { background: rgba(0, 0, 0, .6); } +.cert-cta::after { + background: radial-gradient(circle at 100% 100%, var(--red) 0%, transparent 60%); + opacity: .55; +} +.cert-cta > .container { position: relative; z-index: 1; } +.cert-cta .cert-cta__inner { + display: flex; + flex-direction: column; + align-items: center; + max-width: 720px; + margin: 0 auto; +} +.cert-cta .cert-cta__title { + margin: 0; + color: #fff; + font-size: clamp(28px, 4vw, 40px); + font-weight: 700; line-height: 1.2; } -.cert-cta__text { +.cert-cta .cert-cta__text { max-width: 560px; - margin: 0 auto; - color: var(--cert-muted); - font-size: 14px; - line-height: 1.7; + margin: 12px 0 0; + color: rgba(255, 255, 255, .85); + font-size: 15px; + line-height: 1.5; } -.cert-cta__actions { +.cert-cta .cert-cta__actions { display: flex; flex-wrap: wrap; + align-items: center; justify-content: center; - gap: 14px; - margin-top: 28px; + gap: 12px; + margin-top: 24px; } -.cert-cta__note { +.cert-cta .cert-cta__note { margin-top: 20px; color: var(--cert-muted); font-size: 12px; line-height: 1.6; } +.cert-cta .eyebrow, +.cert-cta .cert-btn-arrow__icon { display: none; } +.cert-cta .cert-cta__actions .btn { + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + width: auto; + max-width: none; + padding: 12px 28px; + border: 1px solid transparent; + border-radius: var(--radius-pill); + font-size: 15px; + font-weight: 500; + line-height: 1; + white-space: nowrap; + overflow: hidden; + transition: transform .25s ease, + background-color .25s ease, + border-color .25s ease, + box-shadow .25s ease, + color .25s ease; +} +.cert-cta .cert-cta__actions .btn.btn--primary { + background-color: var(--red); + border-color: var(--red); + color: #fff; + box-shadow: 0 10px 26px rgba(189, 37, 42, .32); +} +.cert-cta .cert-cta__actions .btn.btn--primary:hover { + background-color: var(--red); + border-color: var(--red); + color: #fff; + box-shadow: 0 16px 34px rgba(189, 37, 42, .55); + transform: translateY(-2px); +} +.cert-cta .cert-cta__actions .btn.btn--ghost { + background-color: transparent; + border-color: rgba(255, 255, 255, .6); + color: #fff; + box-shadow: none; +} +.cert-cta .cert-cta__actions .btn.btn--ghost:hover { + background-color: rgba(255, 255, 255, .12); + border-color: rgba(255, 255, 255, .9); + color: #fff; + box-shadow: none; + transform: translateY(-2px); +} +.cert-cta .cert-cta__actions .btn:active { + transform: translateY(0) scale(.97); +} +.cert-cta .btn__ripple { + position: absolute; + width: 14px; + height: 14px; + border-radius: 50%; + background: rgba(255, 255, 255, .45); + pointer-events: none; + transform: translate(-50%, -50%) scale(0); + animation: cert-cta-ripple .6s ease-out forwards; +} +@keyframes cert-cta-ripple { + to { transform: translate(-50%, -50%) scale(16); opacity: 0; } +} /* ---------- Responsive ---------- */ @media (max-width: 992px) { @@ -4406,6 +4634,8 @@ button { gap: 16px; align-items: start; } + .cert-cta .cert-cta__title { font-size: clamp(26px, 7vw, 32px); } + .cert-cta .cert-cta__text { font-size: 14px; } } @media (max-width: 576px) { @@ -4415,9 +4645,6 @@ button { .cert-card, .cert-present-card { padding: 22px; } .cert-preview__card { padding: 28px 22px; } - .cert-cta { padding: 64px 0; } - .cert-cta__actions { flex-direction: column; align-items: center; } - .cert-cta__actions .btn { width: 100%; max-width: 320px; } } /* ---------- Reduced motion ---------- */ @@ -4433,6 +4660,9 @@ button { .cert-page *::after { transition: none !important; } .cert-preview__card { transform: none !important; } .cert-path::after { transform: none !important; } + .cert-cta .cert-cta__actions .btn:hover, + .cert-cta .cert-cta__actions .btn:active { transform: none !important; } + .cert-cta .btn__ripple { display: none !important; } } /* ===== ABOUT PAGE (about.php) ===== */ @@ -5144,28 +5374,18 @@ button { .about-journey { grid-template-columns: 1fr; gap: 16px; - padding-left: 28px; margin-top: 32px; } .about-journey::before, - .about-journey::after { - display: block; - top: 0; - right: auto; - left: 17px; - width: 2px; - height: 100%; + .about-journey::after { display: none; } + .about-journey__item { + padding-top: 22px; + padding-left: 66px; } - .about-journey::after { - transform: scaleY(0); - transform-origin: top center; - } - .about-journey.about-lit::after { transform: scaleY(1); } - .about-journey__item { padding-top: 22px; } .about-journey__num { position: absolute; top: 22px; - left: -26px; + left: 22px; margin-bottom: 0; } } diff --git a/assets/img/cta/cta.png b/assets/img/cta/cta.png new file mode 100644 index 0000000..d3e82a7 Binary files /dev/null and b/assets/img/cta/cta.png differ diff --git a/assets/img/cta/cta1.png b/assets/img/cta/cta1.png new file mode 100644 index 0000000..a955c6f Binary files /dev/null and b/assets/img/cta/cta1.png differ diff --git a/assets/img/student.jpg b/assets/img/student.jpg new file mode 100644 index 0000000..ec21d7a Binary files /dev/null and b/assets/img/student.jpg differ diff --git a/assets/js/main.js b/assets/js/main.js index 76ead58..a27279a 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1322,3 +1322,75 @@ io.observe(media); io.observe(content); })(); + +// ===== CTA SECTIONS: reveal + ripple ===== +(function () { + 'use strict'; + + function initCtaSections() { + var sections = Array.prototype.slice.call( + document.querySelectorAll('.bc-cta, .cert-cta') + ); + var bootcampInner = document.querySelector('.bc-cta__inner'); + var reduceMotion = window.matchMedia( + '(prefers-reduced-motion: reduce)' + ).matches; + + if (bootcampInner) { + if (reduceMotion || !('IntersectionObserver' in window)) { + bootcampInner.classList.add('is-reveal-visible'); + } else { + bootcampInner.classList.add('is-reveal-pending'); + + var observer = new IntersectionObserver(function (entries) { + entries.forEach(function (entry) { + if (entry.isIntersecting) { + entry.target.classList.remove('is-reveal-pending'); + entry.target.classList.add('is-reveal-visible'); + observer.unobserve(entry.target); + } + }); + }, { threshold: 0.2 }); + + observer.observe(bootcampInner); + } + } + + if (reduceMotion || !sections.length) { + return; + } + + sections.forEach(function (section) { + var buttons = Array.prototype.slice.call( + section.querySelectorAll('.btn') + ); + + buttons.forEach(function (button) { + button.addEventListener('click', function (event) { + var rect = button.getBoundingClientRect(); + var hasPoint = event.clientX > 0 || event.clientY > 0; + var x = hasPoint ? event.clientX - rect.left : rect.width / 2; + var y = hasPoint ? event.clientY - rect.top : rect.height / 2; + + var ripple = document.createElement('span'); + ripple.className = 'btn__ripple'; + ripple.style.left = x + 'px'; + ripple.style.top = y + 'px'; + button.appendChild(ripple); + + ripple.addEventListener('animationend', function () { + if (ripple.parentNode) { + ripple.parentNode.removeChild(ripple); + } + }); + }); + }); + }); + } + + if (document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', initCtaSections); + } else { + initCtaSections(); + } +})(); diff --git a/bootcamps.php b/bootcamps.php index 6ba18d5..64cf193 100644 --- a/bootcamps.php +++ b/bootcamps.php @@ -159,6 +159,7 @@ include 'includes/header.php';
+

Not sure which bootcamp fits?

diff --git a/certificate.php b/certificate.php index 0aa9471..99deede 100644 --- a/certificate.php +++ b/certificate.php @@ -135,12 +135,11 @@ include __DIR__ . '/includes/header.php';
Certification journey

- Make your learning
- visible. + Make your learning visible
+

- Understand the proposed pathway from enrolment to certification. Review what - completion could involve—and the details to confirm before you begin. + Understand the journey from enrolment to certification and what to expect.

diff --git a/includes/data.php b/includes/data.php index 65def18..73e803f 100644 --- a/includes/data.php +++ b/includes/data.php @@ -251,25 +251,25 @@ $projects = [ [ 'title' => 'A campaign from a single idea', 'tag' => 'Digital Marketing', - 'image' => 'https://picsum.photos/seed/student-project-campaign/1000/640', + 'image' => 'assets/img/heroimage2.jpg', 'alt' => 'A marketing team planning a campaign with notes on a table', ], [ 'title' => 'A smarter business workflow', 'tag' => 'AI Automation', - 'image' => 'https://picsum.photos/seed/student-project-workflow/1000/640', + 'image' => 'assets/img/student.jpg', 'alt' => 'A professional mapping out an automated workflow', ], [ 'title' => 'Turning data into a clearer story', 'tag' => 'Data & Insights', - 'image' => 'https://picsum.photos/seed/student-project-data/1000/640', + 'image' => 'assets/img/student.jpg', 'alt' => 'A student presenting data visualisations on a screen', ], [ 'title' => 'A structured market research journal', 'tag' => 'Research', - 'image' => 'https://picsum.photos/seed/student-project-research/1000/640', + 'image' => 'assets/img/heroimage2.jpg', 'alt' => 'A researcher reviewing notes and market research documents', ], ]; diff --git a/includes/footer.php b/includes/footer.php index 55bc79d..0a55827 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -2,7 +2,7 @@
- + diff --git a/includes/header.php b/includes/header.php index e396720..05e3922 100644 --- a/includes/header.php +++ b/includes/header.php @@ -18,7 +18,7 @@ $activePage = $activePage ?? 'home'; - +