Skip to content

Instantly share code, notes, and snippets.

@hellsan631
Last active February 2, 2019 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellsan631/0e5e1f0509a23bc0dfad702ce9fe5340 to your computer and use it in GitHub Desktop.
Save hellsan631/0e5e1f0509a23bc0dfad702ce9fe5340 to your computer and use it in GitHub Desktop.
import './NameHeader.css'
export default function NameHeader({ title, name }) {
return (
<div className="name-header-container">
<h1>{title}</h1>
<h2>{name}</h2>
</div>
);
}
const NameHeaderContainer = styled.div`
border: 1px;
padding: 5px;
h1 {
color: #red;
}
h2 {
color: #yellow;
}
`
export default function NameHeader({ title, name }) {
return (
<NameHeaderContainer>
<h1>{title}</h1>
<h2>{name}</h2>
</NameHeaderContainer>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment