Skip to content

Commit

Permalink
✨feat: ContentHeader.jsx - 한눈에 보기 탭에서 사용될 통합 헤더 컴포넌트 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinHeeEul committed Jun 20, 2024
1 parent d896db5 commit 5c78861
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pages/main/contents-item/ContentHeader.jsx
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>
);
}
7 changes: 7 additions & 0 deletions src/pages/main/contents-item/ContentHeader.style.js
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;
`;

0 comments on commit 5c78861

Please sign in to comment.