Skip to content

Commit

Permalink
feat: 크레딧 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ShipFriend0516 committed Feb 24, 2024
1 parent 7f22082 commit 4973b1e
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/pages/popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import withSuspense from '@src/shared/hoc/withSuspense';
import withErrorBoundary from '@src/shared/hoc/withErrorBoundary';
import FuncList from './components/FuncList';
import FunctionDetailSetting from './components/FunctionDetailSetting';
import Credit from './components/Credit';

const Popup = () => {
const [selectedTab, setSelectedTab] = useState(0);
Expand All @@ -27,6 +28,7 @@ const Popup = () => {
</div>
{selectedTab === 0 && <FuncList />}
{selectedTab === 1 && <FunctionDetailSetting />}
{selectedTab === 2 && <Credit />}
</main>
);
};
Expand Down
29 changes: 29 additions & 0 deletions src/pages/popup/components/Credit.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const Credit = () => {
return (
<div className="credit">
<h3>크레딧</h3>
<div>
<a href="https://github.com/ShipFriend0516" target="_blank" rel="noreferrer">
<svg role="img" viewBox="0 0 24 24" color="white" width={20} height={20} xmlns="http://www.w3.org/2000/svg">
<title>GitHub</title>
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
</svg>
</a>
<a href="https://velog.io/@shipfriend/posts" target="_blank" rel="noreferrer">
<svg
width={20}
height={20}
fill={'#20C997'}
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg">
<title>Velog</title>
<path d="M3 0C1.338 0 0 1.338 0 3v18c0 1.662 1.338 3 3 3h18c1.662 0 3-1.338 3-3V3c0-1.662-1.338-3-3-3H3Zm6.883 6.25c.63 0 1.005.3 1.125.9l1.463 8.303c.465-.615.846-1.133 1.146-1.553.465-.66.893-1.418 1.283-2.273.405-.855.608-1.62.608-2.295 0-.405-.113-.727-.338-.967-.21-.255-.608-.577-1.193-.967.6-.765 1.35-1.148 2.25-1.148.48 0 .878.143 1.193.428.33.285.494.704.494 1.26 0 .93-.39 2.093-1.17 3.488-.765 1.38-2.241 3.457-4.431 6.232l-2.227.156-1.711-9.628h-2.25V7.24c.6-.195 1.305-.406 2.115-.63.81-.24 1.358-.36 1.643-.36Z" />
</svg>
</a>
</div>
</div>
);
};

export default Credit;
3 changes: 0 additions & 3 deletions src/pages/popup/components/FuncList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ const FuncList = () => {
</ul>
<div className="btnWrapper">
<button>단축키 설정</button>
<a href="https://github.com/ShipFriend0516" target="_blank" rel="noreferrer">
<button>깃허브</button>
</a>
</div>
</div>
);
Expand Down
13 changes: 13 additions & 0 deletions src/pages/popup/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,16 @@ button {
display: inline-flex;
justify-content: space-between;
}
/* Credit Component */

.credit {
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
}

.credit > div {
display: flex;
gap: 3px;
}

0 comments on commit 4973b1e

Please sign in to comment.