From 98f1a07b084768e867b21d5c1a8397008a1a2f82 Mon Sep 17 00:00:00 2001 From: denshooter Date: Sat, 10 Jan 2026 01:07:49 +0100 Subject: [PATCH] style: enhance glassmorphism for projects and chat widget with improved transparency and readability --- app/components/ChatWidget.tsx | 28 ++++++++++++++-------------- app/components/Projects.tsx | 34 +++++++++++++++++----------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/app/components/ChatWidget.tsx b/app/components/ChatWidget.tsx index f76a1bd..9550640 100644 --- a/app/components/ChatWidget.tsx +++ b/app/components/ChatWidget.tsx @@ -244,13 +244,13 @@ export default function ChatWidget() { animate={{ opacity: 1, y: 0, scale: 1, filter: "blur(0px)" }} exit={{ opacity: 0, y: 20, scale: 0.95, filter: "blur(10px)" }} transition={{ type: "spring", damping: 30, stiffness: 400 }} - className="fixed bottom-20 left-4 right-4 md:bottom-24 md:left-6 md:right-auto z-30 md:w-[380px] h-[60vh] md:h-[550px] max-h-[600px] bg-[#fdfcf8]/60 backdrop-blur-2xl saturate-150 rounded-2xl shadow-[0_12px_40px_rgba(41,37,36,0.15)] flex flex-col overflow-hidden border border-white/40 ring-1 ring-white/50" + className="fixed bottom-20 left-4 right-4 md:bottom-24 md:left-6 md:right-auto z-30 md:w-[380px] h-[60vh] md:h-[550px] max-h-[600px] bg-[#fdfcf8]/30 backdrop-blur-2xl saturate-150 rounded-2xl shadow-[0_12px_40px_rgba(41,37,36,0.15)] flex flex-col overflow-hidden border border-white/40 ring-1 ring-white/50" > {/* Header */} -
+
-
+
@@ -295,12 +295,12 @@ export default function ChatWidget() {

{message.text}

@@ -308,7 +308,7 @@ export default function ChatWidget() { className={`text-[10px] mt-1.5 ${ message.sender === "user" ? "text-stone-400" - : "text-stone-400" + : "text-stone-500" }`} > {message.timestamp.toLocaleTimeString([], { @@ -327,10 +327,10 @@ export default function ChatWidget() { animate={{ opacity: 1, y: 0 }} className="flex justify-start" > -
+
{/* Input */} -
+
diff --git a/app/components/Projects.tsx b/app/components/Projects.tsx index 52fef42..dec2ab4 100644 --- a/app/components/Projects.tsx +++ b/app/components/Projects.tsx @@ -99,23 +99,23 @@ const Projects = () => { key={project.id} variants={fadeInUp} whileHover={{ - y: -12, - transition: { duration: 0.5, ease: "easeOut" }, + y: -8, + transition: { duration: 0.4, ease: "easeOut" }, }} - className="group relative flex flex-col bg-white rounded-2xl overflow-hidden shadow-sm hover:shadow-2xl transition-all duration-700 ease-out border border-stone-100 hover:border-stone-200" + className="group relative flex flex-col bg-white/40 backdrop-blur-xl backdrop-saturate-150 rounded-2xl overflow-hidden shadow-[0_4px_20px_rgba(0,0,0,0.02)] hover:shadow-[0_20px_40px_rgba(0,0,0,0.06)] transition-all duration-500 ease-out border border-white/50 ring-1 ring-white/30" > {/* Project Cover / Header */} -
+
{project.imageUrl ? ( {project.title} ) : ( -
-
+
+
@@ -123,13 +123,13 @@ const Projects = () => { )} {/* Overlay Links */} -
+
{project.github && ( @@ -140,7 +140,7 @@ const Projects = () => { href={project.live} target="_blank" rel="noopener noreferrer" - className="p-3 bg-white rounded-full text-stone-900 hover:scale-110 transition-all duration-500 ease-out hover:shadow-lg" + className="p-3 bg-white/90 backdrop-blur-md rounded-full text-stone-800 hover:scale-110 transition-all duration-300 ease-out shadow-lg hover:shadow-xl border border-white/50" aria-label="Live Demo" > @@ -152,15 +152,15 @@ const Projects = () => { {/* Content */}
-

+

{project.title}

- + {new Date(project.date).getFullYear()}
-

+

{project.description}

@@ -169,13 +169,13 @@ const Projects = () => { {project.tags.slice(0, 3).map((tag, tIdx) => ( {tag} ))} {project.tags.length > 3 && ( - + + {project.tags.length - 3} )} @@ -183,12 +183,12 @@ const Projects = () => { Read more{" "}