Skip to content

Commit 1870413

Browse files
committed
feat: added linear gradient to section headings
1 parent 70bc271 commit 1870413

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

src/components/About.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import { ArrowUpRight } from "lucide-react"
22
import BlurFade, { BLUR_FADE_DELAY } from "@/components/ui/BlurFade";
33
import Highlight from "@/lib/highlighter";
4+
import { cn } from "@/lib/utils";
45

56
const About = () => {
67
return (
78
<section id="about" className="mb-12">
89
<BlurFade delay={BLUR_FADE_DELAY * 3}>
9-
<h2 className="text-2xl md:text-3xl lg:text-4xl font-section mb-4">About</h2>
10+
<h2 className={cn(
11+
"text-2xl md:text-3xl lg:text-4xl font-section mb-4",
12+
"inline-block text-transparent bg-clip-text bg-gradient-to-r dark:from-gray-300 dark:to-gray-100 from-[#434343] to-[#000000]"
13+
)}>About</h2>
1014
</BlurFade>
1115
<BlurFade delay={BLUR_FADE_DELAY * 4}>
1216
<p className="text-gray-700 dark:text-gray-300">

src/components/Education.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import { useMediaQuery } from '@/hooks/useMediaQuery'
22
import { ArrowUpRight } from 'lucide-react'
33
import BlurFade, { BLUR_FADE_DELAY } from '@/components/ui/BlurFade'
4+
import { cn } from '@/lib/utils'
45

56
export function Education() {
67
const isDesktop = useMediaQuery('(min-width: 768px)')
78
return (
89
<section id="education" className="mb-12">
910
<BlurFade delay={BLUR_FADE_DELAY * 7}>
10-
<h2 className="text-2xl md:text-3xl lg:text-4xl font-section font-bold mb-4">Education</h2>
11+
<h2 className={cn(
12+
"text-2xl md:text-3xl lg:text-4xl font-section mb-4",
13+
"inline-block text-transparent bg-clip-text bg-gradient-to-r dark:from-gray-300 dark:to-gray-100 from-[#434343] to-[#000000]"
14+
)}>Education</h2>
1115
</BlurFade>
1216
<BlurFade delay={BLUR_FADE_DELAY * 8}>
1317
<div className="flex items-center">

src/components/Experiences.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { useState, useEffect } from 'react'
44
import { ExperienceTileProps, ExperienceTile } from './Tiles/ExperienceTile'
55
import BlurFade, { BLUR_FADE_DELAY } from '@/components/ui/BlurFade';
6+
import { cn } from '@/lib/utils';
67

78
interface ExperiencesProps {
89
arr: ExperienceTileProps[];
@@ -13,7 +14,10 @@ export function Experiences({ arr }: ExperiencesProps) {
1314
return (
1415
<section id="experience" className="mb-12">
1516
<BlurFade delay={BLUR_FADE_DELAY * 5}>
16-
<h2 className="text-2xl md:text-3xl lg:text-4xl font-section mb-4">Experience</h2>
17+
<h2 className={cn(
18+
"text-2xl md:text-3xl lg:text-4xl font-section mb-4",
19+
"inline-block text-transparent bg-clip-text bg-gradient-to-r dark:from-gray-300 dark:to-gray-100 from-[#434343] to-[#000000]"
20+
)}>Experience</h2>
1721
</BlurFade>
1822
{experiences && experiences.length > 0 ? (
1923
<div className="space-y-6">

src/components/Projects.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useState, useEffect } from 'react'
22
import { ProjectTile, ProjectTileProps } from './Tiles/ProjectTile'
33
import BlurFade, { BLUR_FADE_DELAY } from '@/components/ui/BlurFade';
4+
import { cn } from '@/lib/utils';
45

56
interface ProjectProps {
67
arr: ProjectTileProps[];
@@ -11,7 +12,10 @@ export function Projects({ arr }: ProjectProps) {
1112
return (
1213
<section id="projects" className="mb-12">
1314
<BlurFade delay={BLUR_FADE_DELAY * 11}>
14-
<h2 className="text-2xl md:text-3xl lg:text-4xl font-section font-bold mb-4">Projects</h2>
15+
<h2 className={cn(
16+
"text-2xl md:text-3xl lg:text-4xl font-section mb-4",
17+
"inline-block text-transparent bg-clip-text bg-gradient-to-r dark:from-gray-300 dark:to-gray-100 from-[#434343] to-[#000000]"
18+
)}>Projects</h2>
1519
</BlurFade>
1620
{projects && projects.length > 0 ? (
1721
<div className="space-y-5">

src/components/Skills.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Badge } from '@/components/ui/Badge';
22
import { useState } from 'react';
33
import BlurFade, { BLUR_FADE_DELAY } from '@/components/ui/BlurFade';
4+
import { cn } from '@/lib/utils';
45

56
interface SkillsProps {
67
arr: string[];
@@ -11,7 +12,10 @@ export function Skills({ arr }: SkillsProps) {
1112
return (
1213
<section id="skills" className="mb-12">
1314
<BlurFade delay={BLUR_FADE_DELAY * 9}>
14-
<h2 className="text-2xl md:text-3xl lg:text-4xl font-section font-bold mb-4">Skills</h2>
15+
<h2 className={cn(
16+
"text-2xl md:text-3xl lg:text-4xl font-section mb-4",
17+
"inline-block text-transparent bg-clip-text bg-gradient-to-r dark:from-gray-300 dark:to-gray-100 from-[#434343] to-[#000000]"
18+
)}>Skills</h2>
1519
</BlurFade>
1620
{skills && skills.length > 0 ? (
1721
<div className="flex flex-wrap gap-1">

0 commit comments

Comments
 (0)