Skip to content

Commit

Permalink
[upload]DOM 실습
Browse files Browse the repository at this point in the history
  • Loading branch information
unodos-K authored May 16, 2022
0 parents commit 14fc878
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
18 changes: 18 additions & 0 deletions fe-dom-practice/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Document</title>
</head>
<body>
<div id="container">
<h2>Tweet List</h2>
<div class="tweet">hello</div>
<div class="tweet">world</div>
<div class="tweet">code</div>
<div class="tweet">states</div>
</div>
</body>
</html>
40 changes: 40 additions & 0 deletions fe-dom-practice/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@import url("https://fonts.googleapis.com/css?family=Open+Sans&display=swap");

* {
box-sizing: border-box;
}

body {
background-color: #f9fafb;
font-family: "Open Sans", sans-serif;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
}

.container {
background-color: #fff;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
width: 400px;
padding: 30px 40px;
}

h2 {
text-align: center;
margin: 0 0 20px;
}

.tweet {
margin-bottom: 10px;
padding-bottom: 20px;
position: relative;
border: 2px solid #f0f0f0;
border-radius: 4px;
display: block;
width: 100%;
padding: 10px;
font-size: 14px;
}

0 comments on commit 14fc878

Please sign in to comment.