-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨feat: ContentHeader.jsx - 한눈에 보기 탭에서 사용될 통합 헤더 컴포넌트 구현
- Loading branch information
1 parent
d896db5
commit 5c78861
Showing
2 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
import { HeaderContentDiv } from "./ContentHeader.style"; | ||
|
||
export default function ContentHeader(props) { | ||
return ( | ||
<HeaderContentDiv> | ||
<img style={{ width: "60px", height: "60px" }} src={props.imgUrl}></img> | ||
<span style={{ fontSize: "24px", color: "#2E2E30" }}> | ||
<strong | ||
style={{ | ||
fontSize: "30px", | ||
}} | ||
> | ||
"{props.keyword}" | ||
</strong> | ||
{props.description} | ||
</span> | ||
</HeaderContentDiv> | ||
); | ||
} |
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,7 @@ | ||
import styled from "styled-components"; | ||
|
||
export const HeaderContentDiv = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
margin-bottom: 1rem; | ||
`; |