diff --git a/src/App.jsx b/src/App.jsx index c80710c..0c596eb 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -22,6 +22,7 @@ import { } from './components/display/dashboard'; import DevDocument from './pages/DevDocument'; import Board from './pages/Board'; +import Article from './pages/Article'; export default function App() { return ( @@ -32,6 +33,7 @@ export default function App() { } /> } /> } /> + } /> } /> }> } /> diff --git a/src/pages/Article.jsx b/src/pages/Article.jsx new file mode 100644 index 0000000..9e1268e --- /dev/null +++ b/src/pages/Article.jsx @@ -0,0 +1,69 @@ +import styled from 'styled-components'; +import { Text } from '../components/typograph/Text'; + +const ArticleContainer = styled.div` + width: 100%; + margin: 0 auto; + margin-top: 80px; + padding: 3rem 4rem; + + @media (min-width: 640px) { + max-width: 640px; + } + @media (min-width: 768px) { + max-width: 768px; + } + @media (min-width: 1024px) { + max-width: 1024px; + } + @media (min-width: 1280px) { + max-width: 1280px; + } +`; + +const ArticleHeader = styled.div` + width: 100%; + display: flex; + flex-direction: column; + align-items: center; + margin-bottom: 1rem; + gap: 1rem; +`; + +const ArticleTitleGroup = styled.div` + padding: 1rem 0; + display: flex; + flex-direction: column; + align-items: center; + gap: 1rem; +`; + +const ArticleHorizontalLine = styled.hr` + width: 100%; + margin: 1.5rem 0; + border: 1px solid #282c30; +`; + +export default function Article() { + return ( + + + + 카테고리 + + + + 제목을 입력하세요 + + + 카드에 표시될 설명을 입력하세요 + + + + KERT 관리자 | 2024.07.27 + + + + + ); +} diff --git a/src/pages/Board.jsx b/src/pages/Board.jsx index 39a63ce..5931b94 100644 --- a/src/pages/Board.jsx +++ b/src/pages/Board.jsx @@ -1,5 +1,6 @@ import styled from 'styled-components'; import { Button } from '../components/forms/Button'; +import { Text } from '../components/typograph/Text'; const Container = styled.div` width: 100%; @@ -19,9 +20,6 @@ const Container = styled.div` @media (min-width: 1280px) { max-width: 1280px; } - @media (min-width: 1536px) { - max-width: 1536px; - } `; const TitleBox = styled.div` @@ -53,6 +51,52 @@ const ButtonGroup = styled.div` margin-top: 2rem; `; +const PostItems = styled.div` + padding: 2rem 0; + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 3rem; +`; + +const PostCardWrapper = styled.div` + display: flex; + flex-direction: column; + gap: 1rem; + background-color: rgba(255, 255, 255, 0.05); + border-radius: 10px; +`; + +const PostCardContainer = styled.div` + display: flex; + flex-direction: column; + gap: 1rem; + padding: 1rem; +`; + +const PostCardImage = styled.img` + width: 100%; + height: 50%; + border-radius: 10px; + object-fit: cover; +`; + +const PostCard = ({ title, description, author, image }) => { + return ( + + + + + {title} + + {description} + + {author} + + + + ); +}; + export default function Board() { return ( @@ -61,11 +105,28 @@ export default function Board() { 열심히 소통하는 KERT, 자세히 알아볼 수 있어요 - - + + + + + {Array.from({ length: 9 }).map((_, index) => ( + + ))} + ); } diff --git a/src/styles/global.js b/src/styles/global.js index e814a5f..ecbed9d 100644 --- a/src/styles/global.js +++ b/src/styles/global.js @@ -10,6 +10,7 @@ export const GlobalStyle = createGlobalStyle` --warning-color: #F1C40F; --success-color: #2ECC71; --container-border-width: 1px; + --transparent-button-background: rgba(255, 255, 255, 0.05); } body {