diff --git a/simplediary/src/App.css b/simplediary/src/App.css index 2848e390..467e5f6a 100644 --- a/simplediary/src/App.css +++ b/simplediary/src/App.css @@ -26,3 +26,37 @@ textarea { padding: 10px; cursor: pointer; } + +/* List */ +.DiaryList { + border: 1px solid gray; + padding: 20px; + margin-top: 20px; +} + +.DiaryList h2 { + text-align: center; +} + +/* Item */ +.DiaryItem { + background-color: rgb(240, 240, 240); + margin-bottom: 10px; + padding: 20px; +} + +.DiaryItem .info { + border-bottom: 1px solid gray; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.DiaryItem .date { + color: gray; +} + +.DiaryItem .content { + font-weight: bold; + margin-bottom: 30px; + margin-top: 30px; +} diff --git a/simplediary/src/App.js b/simplediary/src/App.js index b3e8f578..e8e036dc 100644 --- a/simplediary/src/App.js +++ b/simplediary/src/App.js @@ -1,12 +1,38 @@ import "./App.css"; import DiaryEditor from "./DiaryEditor"; +import DiaryList from "./DiaryList"; -function App() { +const dummyList = [ + { + id: 1, + author: "kim", + content: "hihi", + emotion: 5, + created_date: new Date().getTime(), + }, + { + id: 2, + author: "lee", + content: "hihi", + emotion: 2, + created_date: new Date().getTime(), + }, + { + id: 3, + author: "park", + content: "hihi", + emotion: 4, + created_date: new Date().getTime(), + }, +]; + +const App = () => { return (