-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* design: 스클 홈 로고(임시) * install: emotion/styled install * fix: themeProvider 안 쓰는 prop 지움 * rename: 스타일 파일 분리 * conflict: theme 컬러 추가하여 해결
- Loading branch information
1 parent
59c1087
commit cbd020e
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/componenets/common/SpaceClubHomeLogo/SpaceClubHomeLogo.style.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import Theme from '@/styles/Theme'; | ||
import styled from '@emotion/styled'; | ||
|
||
const ContainerStyled = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 15rem; | ||
height: 4rem; | ||
`; | ||
|
||
const LogoCircleStyled = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 3rem; | ||
height: 3rem; | ||
border-radius: 50%; | ||
background: linear-gradient( | ||
139deg, | ||
#012a36 10.1%, | ||
rgba(50, 51, 96, 0.78) 46.84%, | ||
rgba(113, 42, 124, 0.51) 69.53%, | ||
rgba(0, 221, 49, 0.15) 88.79% | ||
); | ||
overflow: visible; | ||
cursor: pointer; | ||
`; | ||
|
||
const LogoTextStyled = styled.div` | ||
color: ${Theme.color.logoTextColor}; | ||
font-family: 'LogoFont'; | ||
font-size: x-large; | ||
text-shadow: 0.2rem 0.2rem 0.2rem rgba(50, 51, 96, 0.78); | ||
`; | ||
|
||
export { ContainerStyled, LogoCircleStyled, LogoTextStyled }; |
17 changes: 17 additions & 0 deletions
17
src/componenets/common/SpaceClubHomeLogo/SpaceClubHomeLogo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
import { ContainerStyled, LogoCircleStyled, LogoTextStyled } from './SpaceClubHomeLogo.style'; | ||
|
||
const SpaceClubHomeLogo = () => { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<ContainerStyled onClick={() => navigate('/')}> | ||
<LogoCircleStyled> | ||
<LogoTextStyled>Space_Club</LogoTextStyled> | ||
</LogoCircleStyled> | ||
</ContainerStyled> | ||
); | ||
}; | ||
|
||
export default SpaceClubHomeLogo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters