Skip to content

Commit

Permalink
add zenn icon
Browse files Browse the repository at this point in the history
  • Loading branch information
dak2 committed Aug 11, 2023
1 parent b493e37 commit 380ed25
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 9 deletions.
3 changes: 3 additions & 0 deletions components/atoms/genericIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import {
SiDeno,
} from 'react-icons/si';

import { SiZenn } from '@icons-pack/react-simple-icons';

type Props = {
iconName: string;
styleName?: string;
Expand All @@ -42,6 +44,7 @@ const GenericIcon = (props: Props) => {
right: <FaChevronRight />,
left: <FaChevronLeft />,
book: <FaBookOpen />,
zenn: <SiZenn />,
};

return <div className={styleName}>{icons[iconName]}</div>;
Expand Down
27 changes: 19 additions & 8 deletions components/molecules/headerBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,25 @@ const HeaderBar = () => {
Kdevlog
</h1>
</Link>
<div id="github-icon-container" className="flex ml-64">
<a
id="github-icon"
href="https://github.com/dak2"
className="ml-2 text-2xl"
>
<GenericIcon iconName="github" />
</a>
<div id="icon-container" className="flex ml-64">
<div id="github-icon-container">
<a
id="github-icon"
href="https://github.com/dak2"
className="ml-2 text-2xl"
>
<GenericIcon iconName="github" />
</a>
</div>
<div id="zenn-icon-container" className="ml-6">
<a
id="github-icon"
href="https://zenn.dev/daichikk"
className="ml-2 text-2xl"
>
<GenericIcon iconName="zenn" />
</a>
</div>
</div>
</div>
);
Expand Down
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"deploy": "vercel --prod"
},
"dependencies": {
"@icons-pack/react-simple-icons": "^8.0.1",
"autoprefixer": "^10.2.5",
"date-fns": "^2.30.0",
"date-fns-tz": "^2.0.0",
Expand Down
1 change: 0 additions & 1 deletion styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ html {
padding-top: 40px;
}
#github-icon-container {
margin-left: auto;
#github-icon {
padding-top: 3vh;
font-size: 15vh;
Expand Down

0 comments on commit 380ed25

Please sign in to comment.