Skip to content

Commit 2fcd58e

Browse files
committed
refactor: update color variables for light and dark modes, adjust max-widths in various components
1 parent b40736f commit 2fcd58e

9 files changed

Lines changed: 21 additions & 118 deletions

File tree

app/globals.css

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
@layer base {
77
:root {
8-
--background: 0 0% 100%;
8+
/* Light mode colors */
9+
--background: 0 0% 90%;
910
--foreground: 240 10% 3.9%;
1011
--card: 0 0% 100%;
1112
--card-foreground: 240 10% 3.9%;
@@ -17,7 +18,7 @@
1718
--secondary-foreground: 240 5.9% 10%;
1819
--muted: 240 4.8% 95.9%;
1920
--muted-foreground: 240 3.8% 46.1%;
20-
--accent: 240 4.8% 95.9%;
21+
--accent: 240 4.8% 80%;
2122
--accent-foreground: 240 5.9% 10%;
2223
--destructive: 0 84.2% 60.2%;
2324
--destructive-foreground: 0 0% 98%;
@@ -32,25 +33,22 @@
3233
}
3334

3435
.dark {
35-
--background: 240 10% 3.9%;
36+
/* Dark mode overrides */
37+
--background: 240 10% 6.5%;
3638
--foreground: 0 0% 98%;
37-
--card: 240 10% 3.9%;
39+
--card: 240 10% 6.5%;
3840
--card-foreground: 0 0% 98%;
39-
--popover: 240 10% 3.9%;
41+
--popover: 240 10% 6.5%;
4042
--popover-foreground: 0 0% 98%;
41-
--primary: 262.1 83.3% 57.8%;
42-
--primary-foreground: 210 20% 98%;
43-
--secondary: 240 3.7% 15.9%;
43+
--secondary: 240 3.7% 18%;
4444
--secondary-foreground: 0 0% 98%;
45-
--muted: 240 3.7% 15.9%;
45+
--muted: 240 3.7% 18%;
4646
--muted-foreground: 240 5% 64.9%;
47-
--accent: 240 3.7% 15.9%;
47+
--accent: 240 3.7% 18%;
4848
--accent-foreground: 0 0% 98%;
4949
--destructive: 0 62.8% 30.6%;
50-
--destructive-foreground: 0 0% 98%;
51-
--border: 240 3.7% 15.9%;
52-
--input: 240 3.7% 15.9%;
53-
--ring: 262.1 83.3% 57.8%;
50+
--border: 240 3.7% 18%;
51+
--input: 240 3.7% 18%;
5452
}
5553
}
5654

components/sections/contact.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default function Contact() {
7575
whileInView={{ opacity: 1, y: 0 }}
7676
viewport={{ once: true }}
7777
transition={{ duration: 0.5 }}
78-
className="max-w-3xl mx-auto"
78+
className="max-w-2xl mx-auto"
7979
>
8080
<div className="bg-card/50 backdrop-blur-sm rounded-xl p-8 border border-border">
8181
<h3 className="text-2xl font-semibold mb-6 text-foreground text-center">Send Me a Message</h3>

components/sections/intro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function Intro() {
1212
whileInView={{ opacity: 1, y: 0 }}
1313
viewport={{ once: true, margin: "-100px" }}
1414
transition={{ duration: 0.6 }}
15-
className="text-center max-w-3xl mx-auto"
15+
className="text-center max-w-2xl mx-auto"
1616
>
1717
<h1 className="text-4xl md:text-6xl font-extrabold tracking-tight text-foreground">
1818
William Keri

components/sections/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default function Navbar() {
139139
>
140140
<div className="relative">
141141
{/* Glassmorphism container */}
142-
<div className="bg-background/80 backdrop-blur-lg border border-border rounded-full px-6 py-3 shadow-2xl w-[600px] md:w-[700px] lg:w-[850px] xl:w-[1024px]">
142+
<div className="bg-background/80 backdrop-blur-lg border border-border rounded-full px-6 py-3 shadow-2xl w-[600px] md:w-[700px]">
143143
<div className="flex items-center justify-center px-4 gap-2">
144144
{/* Navigation Items + Theme Toggle */}
145145
<div className="flex items-center space-x-1">

components/sections/projects.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function PersonalProjectsContent({ projects }: { projects: any[] }) {
224224
exit={{ opacity: 0, y: -20 }}
225225
transition={{ duration: 0.5 }}
226226
>
227-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 max-w-5xl mx-auto">
227+
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 max-w-3xl mx-auto">
228228
{projects.map((project, index) => (
229229
<ProjectCard key={index} project={project} index={index} type="Personal" />
230230
))}
@@ -241,7 +241,7 @@ function FreelanceProjectsContent({ projects }: { projects: any[] }) {
241241
exit={{ opacity: 0, y: -20 }}
242242
transition={{ duration: 0.5 }}
243243
>
244-
<div className="grid grid-cols-1 gap-6 max-w-4xl mx-auto">
244+
<div className="grid grid-cols-1 gap-6 max-w-2xl mx-auto">
245245
{projects.map((project, index) => (
246246
<ProjectCard key={index} project={project} index={index} type="Freelance" />
247247
))}

components/sections/skills.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function Skills() {
2727
>
2828
<h2 className="text-3xl md:text-4xl font-bold mb-12 text-center text-foreground">My Skills</h2>
2929

30-
<div className="max-w-4xl mx-auto">
30+
<div className="max-w-2xl mx-auto">
3131
<div className="flex flex-wrap justify-center gap-2 sm:gap-3">
3232
{allSkills.map((skill, index) => (
3333
<SkillPill key={index} skill={skill} delay={index * 0.03} />
@@ -47,7 +47,7 @@ function SkillPill({ skill, delay }: { skill: string; delay: number }) {
4747
whileInView={{ opacity: 1, y: 0 }}
4848
viewport={{ once: true }}
4949
transition={{ duration: 0.4, delay }}
50-
className="whitespace-nowrap font-bold rounded-full border border-border px-3 py-1 text-xs md:text-sm text-muted-foreground hover:bg-accent/50 hover:border-border transition-colors"
50+
className="whitespace-nowrap font-bold rounded-lg border border-border px-3 py-1 text-xs md:text-sm text-muted-foreground hover:bg-accent/50 hover:border-border transition-colors"
5151
>
5252
{skill}
5353
</motion.span>

components/sections/work-experience.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export default function WorkExperience() {
3434
whileInView={{ opacity: 1, y: 0 }}
3535
viewport={{ once: true, margin: "-100px" }}
3636
transition={{ duration: 0.6 }}
37-
className="max-w-4xl mx-auto"
37+
className="max-w-2xl mx-auto"
3838
>
39-
<h2 className="text-3xl md:text-4xl font-bold mb-10 text-center text-foreground">Work Experience</h2>
39+
<h2 className="text-3xl md:text-4xl font-bold mb-10 text-center text-foreground">Experience</h2>
4040

4141
<div className="space-y-6">
4242
{experiences.map((exp, idx) => (

components/ui/button.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const buttonVariants = cva(
2222
size: {
2323
default: "h-10 px-4 py-2",
2424
sm: "h-9 rounded-md px-3",
25-
lg: "h-11 rounded-md px-8",
2625
icon: "h-10 w-10",
2726
},
2827
},

styles/globals.css

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)