Skip to content

Commit

Permalink
Merge pull request #17 from CheatSOL/feat/logo
Browse files Browse the repository at this point in the history
FEAT: 로고 컴포넌트 생성
  • Loading branch information
donginLee authored Jun 12, 2024
2 parents a2e36f1 + 37938a7 commit 2e43acc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Binary file added public/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/components/common/logo/Logo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from "react";
import { StyledLogoImg } from "./Logo.style";

export default function Logo({ size }) {
return (
<a href="/">
<StyledLogoImg size={size} src="public/assets/images/logo.png" />
</a>
);
}
6 changes: 6 additions & 0 deletions src/components/common/logo/Logo.style.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import styled from "styled-components";

export const StyledLogoImg = styled.img`
transform: ${({ size }) =>
size === "s" ? "scale(0.3)" : size === "m" ? "scale(0.5)" : "scale(0.8)"};
`;

0 comments on commit 2e43acc

Please sign in to comment.