Commit 952ae5a4 authored by QuanMB's avatar QuanMB

fix: text visibility and tag background issues on mobile

parent 5e7c3a7e
...@@ -13,6 +13,11 @@ ...@@ -13,6 +13,11 @@
--text-secondary: #475569; --text-secondary: #475569;
--nav-bg: rgba(248, 250, 252, 0.8); --nav-bg: rgba(248, 250, 252, 0.8);
--nav-border: rgba(0, 0, 0, 0.06); --nav-border: rgba(0, 0, 0, 0.06);
/* Tag/Badge Colors */
--badge-bg: rgba(37, 99, 235, 0.05);
--badge-border: rgba(37, 99, 235, 0.15);
--badge-text: #2563eb;
} }
:root.dark { :root.dark {
...@@ -28,6 +33,11 @@ ...@@ -28,6 +33,11 @@
--text-secondary: #94a3b8; --text-secondary: #94a3b8;
--nav-bg: rgba(11, 15, 25, 0.8); --nav-bg: rgba(11, 15, 25, 0.8);
--nav-border: rgba(31, 41, 55, 0.55); --nav-border: rgba(31, 41, 55, 0.55);
/* Tag/Badge Colors */
--badge-bg: rgba(59, 130, 246, 0.12);
--badge-border: rgba(59, 130, 246, 0.25);
--badge-text: #3b82f6;
} }
@theme { @theme {
...@@ -164,3 +174,9 @@ ...@@ -164,3 +174,9 @@
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
} }
.project-tag {
background-color: var(--badge-bg);
border: 1px solid var(--badge-border);
color: var(--badge-text);
}
...@@ -31,14 +31,14 @@ export default function Hero() { ...@@ -31,14 +31,14 @@ export default function Hero() {
></div> ></div>
{/* Hero Text content */} {/* Hero Text content */}
<div className="flex flex-col items-start text-left z-10 max-w-[600px] mx-auto lg:mx-0 opacity-0 animate-fade-in"> <div className="flex flex-col items-start text-left z-10 max-w-[600px] mx-auto lg:mx-0 animate-fade-in">
<div className="text-xs uppercase tracking-widest font-semibold text-primary mb-4 flex items-center gap-2"> <div className="text-xs uppercase tracking-widest font-semibold text-primary mb-4 flex items-center gap-2">
<span className="inline-block w-1.5 h-1.5 bg-primary rounded-full shadow-[0_0_6px_var(--color-primary)]"></span> <span className="inline-block w-1.5 h-1.5 bg-primary rounded-full shadow-[0_0_6px_var(--color-primary)]"></span>
Aspiring Intern Aspiring Intern
</div> </div>
<h1 className="text-5xl sm:text-7xl font-extrabold mb-6 leading-[1.05] tracking-tighter text-text-primary"> <h1 className="text-5xl sm:text-7xl font-extrabold mb-6 leading-[1.05] tracking-tighter text-text-primary">
Hi, I am <span className="bg-gradient-to-r from-text-primary to-text-secondary bg-clip-text text-transparent">Bui Minh Quan</span> Hi, I am <span className="gradient-text">Bui Minh Quan</span>
<span className="bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent block">Backend Developer</span> <span className="gradient-accent-text block">Backend Developer</span>
</h1> </h1>
<p className="text-base sm:text-lg text-text-secondary mb-8 leading-relaxed max-w-[500px]"> <p className="text-base sm:text-lg text-text-secondary mb-8 leading-relaxed max-w-[500px]">
Information Technology student at PTIT HCMC specializing in Software Engineering. Information Technology student at PTIT HCMC specializing in Software Engineering.
......
...@@ -143,7 +143,7 @@ export default function Projects() { ...@@ -143,7 +143,7 @@ export default function Projects() {
</p> </p>
<div className="flex flex-wrap gap-2 mb-6"> <div className="flex flex-wrap gap-2 mb-6">
{project.tags.slice(0, 3).map((tag, idx) => ( {project.tags.slice(0, 3).map((tag, idx) => (
<span key={idx} className="bg-primary/5 border border-primary/20 px-2.5 py-1 rounded-md text-[11px] font-semibold text-primary"> <span key={idx} className="project-tag px-2.5 py-1 rounded-md text-[11px] font-semibold">
{tag} {tag}
</span> </span>
))} ))}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment