Skip to content

Instantly share code, notes, and snippets.

@junhoyeo
Created July 11, 2021 08:11
Show Gist options
  • Save junhoyeo/5e2288b716e1e1ed2bf15dccf5b0aeeb to your computer and use it in GitHub Desktop.
Save junhoyeo/5e2288b716e1e1ed2bf15dccf5b0aeeb to your computer and use it in GitHub Desktop.
const Terminal = () => {
return (
<TerminalContainer>
<TerminalControls>
<Control style={{ backgroundColor: '#FF5F56' }} />
<Control style={{ backgroundColor: '#FFBD2E' }} />
<Control style={{ backgroundColor: '#27C93F' }} />
</TerminalControls>
<TerminalCommand>yarn add @frogress/line</TerminalCommand>
</TerminalContainer>
)
}
const TerminalContainer = styled.div`
margin-top: 36px;
padding: 18px 18px 24px;
border-radius: 5px;
background-color: rgb(0, 34, 64);
display: flex;
flex-direction: column;
`
const TerminalControls = styled.div`
display: flex;
`
const Control = styled.div`
height: 12px;
width: 12px;
border-radius: 50%;
&:not(:first-of-type) {
margin-left: 7px;
}
`
const TerminalCommand = styled.span`
margin-top: 16px;
padding: 0 4px;
color: white;
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment