diff --git a/css/style.css b/css/style.css index a4c4748..805e40d 100644 --- a/css/style.css +++ b/css/style.css @@ -485,17 +485,16 @@ ul { list-style: none; } .about-image { position: relative; } .about-img-placeholder { width: 100%; - aspect-ratio: 1 / 1; - max-width: 420px; + max-width: 480px; border-radius: 24px; - background: linear-gradient(145deg, var(--purple-mid), var(--purple-bright)); - display: flex; - align-items: center; - justify-content: center; - font-size: 7rem; - color: rgba(255,255,255,0.25); + overflow: hidden; box-shadow: var(--shadow-lg); } +.about-img-placeholder img { + width: 100%; + height: auto; + display: block; +} .about-badge { position: absolute; bottom: -16px; @@ -648,6 +647,10 @@ ul { list-style: none; } } .project-work i { color: #2DD4BF; } +/* No-link row */ +.project-row--no-link { cursor: default; } +.project-row--no-link::before { display: none; } + /* Arrow */ .project-row-arrow { width: 40px; @@ -865,7 +868,7 @@ ul { list-style: none; } grid-template-columns: 1fr; gap: 40px; } - .about-img-placeholder { max-width: 100%; aspect-ratio: 16/9; } + .about-img-placeholder { max-width: 100%; } .about-badge { right: 16px; } .contact-wrapper { grid-template-columns: 1fr; diff --git a/img/wizfixer.webp b/img/wizfixer.webp index e9e7b3a..2964fa5 100644 Binary files a/img/wizfixer.webp and b/img/wizfixer.webp differ diff --git a/index.php b/index.php index 8a4af2a..9c87bdf 100644 --- a/index.php +++ b/index.php @@ -124,7 +124,8 @@ $form_error = isset($_GET['error']) && $_GET['error'] === '1';
- + Danny the tech-wizard +
Oxfordshire, UK @@ -164,7 +165,8 @@ $form_error = isset($_GET['error']) && $_GET['error'] === '1';

A few recent projects from the spell book.

-
+ +
-
-
- -
+ +
@@ -205,8 +206,8 @@ $form_error = isset($_GET['error']) && $_GET['error'] === '1';

Advanced Weather App

- -
+ +
@@ -219,8 +220,8 @@ $form_error = isset($_GET['error']) && $_GET['error'] === '1';

Website Design & Build

-
-
+ +
@@ -233,7 +234,7 @@ $form_error = isset($_GET['error']) && $_GET['error'] === '1';

eCommerce Website

-
+ diff --git a/send.php b/send.php index ef6423d..72c76dd 100644 --- a/send.php +++ b/send.php @@ -18,10 +18,18 @@ unset($_SESSION['captcha_answer']); // Validate $valid = true; -if (empty($name) || strlen($name) > 200) $valid = false; -if (empty($email) || !filter_var($email, FILTER_VALIDATE_EMAIL)) $valid = false; -if (empty($message) || strlen($message) > 5000) $valid = false; -if ($captcha !== $expected || $expected === -1) $valid = false; +if (empty($name) || strlen($name) > 200) { + $valid = false; +} +if (empty($email) || !filter_var($email, FILTER_VALIDATE_EMAIL)) { + $valid = false; +} +if (empty($message) || strlen($message) > 5000) { + $valid = false; +} +if ($captcha !== $expected || $expected === -1) { + $valid = false; +} if (!$valid) { header('Location: index.php?error=1#contact');