Skip to content

Commit

Permalink
feat(projects): use local icons instead of react-icons
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 authored May 21, 2024
1 parent cb524b0 commit 6398ad6
Showing 1 changed file with 35 additions and 54 deletions.
89 changes: 35 additions & 54 deletions src/app/projects/_components/tech-icons.tsx
Original file line number Diff line number Diff line change
@@ -1,62 +1,43 @@
import { FaJava } from 'react-icons/fa'
import { SiVite, SiMdx } from 'react-icons/si'
import {
SiTypescript,
SiReact,
SiExpo,
SiNextdotjs,
SiTailwindcss,
SiVite,
SiNodedotjs,
SiPrisma,
SiVuedotjs,
SiMdx,
SiJavascript,
SiDeno,
SiPostgresql,
SiPython,
SiSvelte,
SiRust,
SiBun
} from 'react-icons/si'
BunIcon,
DenoIcon,
ExpoIcon,
JavaIcon,
JavascriptIcon,
NextIcon,
NodeIcon,
PostgreSQLIcon,
PrismaIcon,
PythonIcon,
ReactIcon,
RustIcon,
SvelteIcon,
TailwindcssIcon,
TypescriptIcon,
VueJsIcon
} from '~/components/icons'

export const techIcons = {
javascript: () => (
<SiJavascript className="bg-black text-[#F7DF1E]" title="Javascript" />
),
typescript: () => (
<SiTypescript className="bg-white text-[#358EF1]" title="Typescript" />
),
'react-native': () => (
<SiReact className="text-[#61DBFB]" title="React Native" />
),
expo: () => <SiExpo title="Expo" />,
reactjs: () => <SiReact className="text-[#61DBFB]" title="React.js" />,
nextjs: () => <SiNextdotjs title="Next.js" />,
tailwindcss: () => (
<SiTailwindcss className="text-[#38BDF8]" title="Tailwind CSS" />
),
javascript: () => <JavascriptIcon />,
typescript: () => <TypescriptIcon />,
'react-native': () => <ReactIcon />,
expo: () => <ExpoIcon />,
reactjs: () => <ReactIcon />,
nextjs: () => <NextIcon />,
tailwindcss: () => <TailwindcssIcon />,
vite: () => <SiVite className="text-[#FFC119]" title="Vite" />,
nodejs: () => <SiNodedotjs className="text-[#66CC33]" title="Node.js" />,
prisma: () => <SiPrisma className="text-[#4C51BF]" title="Prisma" />,
vue: () => <SiVuedotjs className="text-[#4FC08D]" title="Vue.js" />,
svelte: () => <SiSvelte className="text-[#FF3E00]" title="Svelte" />,
nodejs: () => <NodeIcon />,
prisma: () => <PrismaIcon />,
vue: () => <VueJsIcon />,
svelte: () => <SvelteIcon />,
mdx: () => (
<SiMdx className="text-[#1B1F24] dark:text-[rgb(77,81,86)]" title="MDX" />
),
deno: () => <SiDeno title="Deno" />,
postgresql: () => (
<SiPostgresql
className="stroke-[#4169E1] stroke-[0.5px] text-[#4169E1]"
title="PostgreSQL"
/>
),
java: () => <FaJava className="text-[#f89820]" title="Java" />,
python: () => <SiPython className="text-[#3776AB]" title="Python" />,
rust: () => <SiRust className="text-[#F74C00]" title="Rust" />,
bun: () => (
<SiBun
className="stroke-black/40 stroke-[0.5px] text-[#FBF0DF] shadow-black drop-shadow-md"
title="Bun"
/>
)
deno: () => <DenoIcon />,
postgresql: () => <PostgreSQLIcon />,
java: () => <JavaIcon />,
python: () => <PythonIcon />,
rust: () => <RustIcon />,
bun: () => <BunIcon />
}

0 comments on commit 6398ad6

Please sign in to comment.