-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Fastcampus-Youcandoit/feature/5
Change to commute button component in header
- Loading branch information
Showing
2 changed files
with
39 additions
and
20 deletions.
There are no files selected for viewing
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
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 React from "react"; | ||
import styled from "styled-components"; | ||
import cummute from "../../assets/icons/header_icon/header_commute_white-icon.png"; | ||
|
||
const IconImg = styled.img` | ||
width: 1rem; | ||
`; | ||
|
||
const Span = styled.span` | ||
padding-bottom: 0.2rem; | ||
`; | ||
|
||
const CommuteButton = styled.button` | ||
background-color: #000000; | ||
height: 100%; | ||
border-radius: 10px; | ||
font-size: 1rem; | ||
padding: 0 2rem; | ||
display: flex; | ||
align-items: center; | ||
cursor: pointer; | ||
.commute_span { | ||
color: #ffff; | ||
margin-left: 0.5rem; | ||
} | ||
`; | ||
|
||
const CommuteButtonComponent = () => { | ||
return ( | ||
<CommuteButton type="button"> | ||
<IconImg src={cummute} /> | ||
<Span className="commute_span">commute</Span> | ||
</CommuteButton> | ||
); | ||
}; | ||
|
||
export default CommuteButtonComponent; |