From 1f68a7f8dfe3021c9526751ee75fb63c66717c58 Mon Sep 17 00:00:00 2001 From: r-freeman Date: Sat, 11 Feb 2023 22:53:08 +0000 Subject: [PATCH] Replace icons on projects page --- components/icons/ForkIcon.tsx | 10 ---------- components/icons/ShareIcon.tsx | 11 +++++++++++ components/icons/SparklesIcon.tsx | 11 +++++++++++ components/icons/StarIcon.tsx | 10 ---------- pages/projects.tsx | 9 +++++---- 5 files changed, 27 insertions(+), 24 deletions(-) delete mode 100644 components/icons/ForkIcon.tsx create mode 100644 components/icons/ShareIcon.tsx create mode 100644 components/icons/SparklesIcon.tsx delete mode 100644 components/icons/StarIcon.tsx diff --git a/components/icons/ForkIcon.tsx b/components/icons/ForkIcon.tsx deleted file mode 100644 index 987f09f..0000000 --- a/components/icons/ForkIcon.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import type {Props} from '@/types' - -export function ForkIcon(props: Props) { - return ( - - - - ) -} \ No newline at end of file diff --git a/components/icons/ShareIcon.tsx b/components/icons/ShareIcon.tsx new file mode 100644 index 0000000..360b2b3 --- /dev/null +++ b/components/icons/ShareIcon.tsx @@ -0,0 +1,11 @@ +import {Props} from '@/types' + +export function ShareIcon(props: Props) { + return ( + + ); +} diff --git a/components/icons/SparklesIcon.tsx b/components/icons/SparklesIcon.tsx new file mode 100644 index 0000000..7aca373 --- /dev/null +++ b/components/icons/SparklesIcon.tsx @@ -0,0 +1,11 @@ +import {Props} from '@/types' + +export function SparklesIcon(props: Props) { + return ( + + ); +} diff --git a/components/icons/StarIcon.tsx b/components/icons/StarIcon.tsx deleted file mode 100644 index 0bcfb34..0000000 --- a/components/icons/StarIcon.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import {Props} from '@/types' - -export function StarIcon(props: Props) { - return ( - - - - ) -} \ No newline at end of file diff --git a/pages/projects.tsx b/pages/projects.tsx index 881f0c0..f097d6d 100644 --- a/pages/projects.tsx +++ b/pages/projects.tsx @@ -2,8 +2,8 @@ import {GetStaticProps} from 'next' import Head from 'next/head' import {Card} from '@/components/Card' import {SimpleLayout} from '@/components/layouts/SimpleLayout' -import {StarIcon} from '@/components/icons/StarIcon' -import {ForkIcon} from '@/components/icons/ForkIcon' +import {SparklesIcon} from '@/components/icons/SparklesIcon' +import {ShareIcon} from '@/components/icons/ShareIcon' import {getPinnedRepos} from '@/lib/github' import {numberFormat} from '@/lib/numberFormat' import type {Repo} from '@/types' @@ -53,11 +53,12 @@ export default function Projects({pinnedRepos}: { pinnedRepos: Repo[] }) {

{numberFormat(repo.stargazerCount)} - +

{numberFormat(repo.forkCount)} - +