Skip to content

Commit

Permalink
feat(shortcut): apply shortcut icons
Browse files Browse the repository at this point in the history
- icon from macOS_Big_Sur_icons_replacements repository
  • Loading branch information
Jaewoook committed Jan 21, 2024
1 parent 3404cee commit 4d92a1e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions app/home/components/Shortcuts.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
"use client";
import Image from "next/image";
import { useCallback, useContext } from "react";
import {
PiCodeLight,
PiFileTextLight,
PiGearLight,
PiGithubLogoLight,
PiUserLight,
} from "react-icons/pi";

import { Shortcut } from "../../components/Shortcut";
import { LayerContext } from "../../contexts/LayerContext";
Expand All @@ -18,7 +12,11 @@ export const ProfileShortcut = () => {
}, [addLayer]);

return (
<Shortcut icon={<PiUserLight />} label="Profile" onClick={handleClick} />
<Shortcut
icon={<Image width={72} height={72} src="/images/icons/icon-profile.png" alt="profile icon" />}
label="Profile"
onClick={handleClick}
/>
);
};

Expand All @@ -29,7 +27,12 @@ export const ResumeShortcut = () => {
}, [addLayer]);

return (
<Shortcut icon={<PiFileTextLight />} label="Resume" initialY="120px" onClick={handleClick} />
<Shortcut
icon={<Image width={72} height={72} src="/images/icons/icon-resume.png" alt="resume icon" />}
label="Resume"
initialY="120px"
onClick={handleClick}
/>
);
};

Expand All @@ -40,7 +43,12 @@ export const SettingsShortcut = () => {
}, [addLayer]);

return (
<Shortcut icon={<PiGearLight />} label="Settings" initialY="240px" onClick={handleClick} />
<Shortcut
icon={<Image width={72} height={72} src="/images/icons/icon-settings.png" alt="settings icon" />}
label="Settings"
initialY="240px"
onClick={handleClick}
/>
);
};

Expand All @@ -51,7 +59,7 @@ export const GitHubShortcut = () => {

return (
<Shortcut
icon={<PiGithubLogoLight />}
icon={<Image width={72} height={72} src="/images/icons/icon-github.png" alt="github icon" />}
label="GitHub"
initialY="360px"
onClick={handleClick}
Expand All @@ -67,7 +75,7 @@ export const BlogShortcut = () => {

return (
<Shortcut
icon={<PiCodeLight />}
icon={<Image width={72} height={72} src="/images/icons/icon-blog.png" alt="blog icon" />}
label="Blog"
initialY="480px"
onClick={handleClick}
Expand Down
Binary file added public/images/icons/icon-blog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/icons/icon-github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/icons/icon-profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/icons/icon-resume.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/icons/icon-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4d92a1e

Please sign in to comment.