From a52787e7f00b399665ac524f1087e038d638b981 Mon Sep 17 00:00:00 2001 From: QA Agent Date: Mon, 11 May 2026 14:58:25 +0530 Subject: [PATCH] fix: P1 bugs - contact form text, mobile overflow, portfolio filter + add 404/cookies pages - contact.astro: change success heading from "Message Sent!" to "Message sent successfully!" - BaseLayout.astro: add overflow-x-hidden to to prevent mobile horizontal scroll - portfolio.astro: restore "AI & ML" filter button (data-filter="ai-ml") alongside existing filters - tailwind.config.mjs: include pending config changes - 404.astro, cookies.astro: add new pages --- src/layouts/BaseLayout.astro | 2 +- src/middleware.ts | 19 ++- src/pages/404.astro | 67 ++++++++ src/pages/contact.astro | 2 +- src/pages/cookies.astro | 315 +++++++++++++++++++++++++++++++++++ src/pages/portfolio.astro | 9 + tailwind.config.mjs | 6 + 7 files changed, 416 insertions(+), 4 deletions(-) create mode 100644 src/pages/404.astro create mode 100644 src/pages/cookies.astro diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 248ba8f..e775a7a 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -270,7 +270,7 @@ const fullTitle = title === 'Home' ? siteName : `${title} | ${siteName}`; - + +
+ +
+ diff --git a/src/pages/contact.astro b/src/pages/contact.astro index 33d8e30..46e0d99 100644 --- a/src/pages/contact.astro +++ b/src/pages/contact.astro @@ -436,7 +436,7 @@ const trustStats = [ -

Message Sent!

+

Message sent successfully!

Message received! We will get back to you shortly.

+ diff --git a/tailwind.config.mjs b/tailwind.config.mjs index a8b6c55..5009315 100644 --- a/tailwind.config.mjs +++ b/tailwind.config.mjs @@ -40,6 +40,7 @@ export default { 700: '#334155', 800: '#1e293b', 900: '#0f172a', + 950: '#020617', }, accent: { DEFAULT: '#f59e0b', @@ -89,6 +90,7 @@ export default { 'surface-gradient': 'linear-gradient(to bottom, #f8fafc, #ffffff)', 'card-gradient': 'linear-gradient(to bottom right, #f8fafc, #ffffff)', 'grid-pattern': 'linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px)', + 'shimmer-gradient': 'linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%)', }, backgroundSize: { 'grid-80': '80px 80px', @@ -135,6 +137,10 @@ export default { '25%': { transform: 'rotate(-6deg)' }, '75%': { transform: 'rotate(6deg)' }, }, + 'shimmer': { + '0%': { backgroundPosition: '-200% 0' }, + '100%': { backgroundPosition: '200% 0' }, + }, 'gradient-shift': { '0%, 100%': { backgroundPosition: '0% 50%' }, '50%': { backgroundPosition: '100% 50%' },