Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3주차] 김가영 과제 제출합니다. #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions blog.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.container {
width: 800px;
}

/*왼쪽 큰 박스*/
.blog-content {
width: 80%;
height: 200px;
float: left;
}

/*오른쪽 큰 박스*/
.blog-img {
width: 20%;
height: 200px;
float: left;
}

/*원 이미지 삽입*/
.blog-profile {
width: 60px;
border-radius: 100px;
padding: 10px;
float: left;
}

/*제목, 시간 포함 박스*/
.blog-name {
float: left;
}

/*제목: OOO */
.name {
margin: 15px 0px 3px 0px;
font-size: 17px;
}

/*시간: 2024.00.00*/
.time {
font-size: 14px;
color: grey;
margin: 5px 0px 3px 0px;
}

/*멋사아기사자~*/
.title {
margin: 10px;
padding-top: 10px;
}

/*블로그 글 목록 만들기~*/
.content {
margin: 10px;
color: grey;
}
42 changes: 42 additions & 0 deletions blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link href="blog.css" rel="stylesheet" />
</head>
<body>
<div class="container">

<!--왼쪽 큰 사각형-->
<div class="blog-content">

<!--왼 위 사각형-->
<div>
<img class="blog-profile" src="cat.jpg"/>
<div class="blog-name">
<h4 class="name">김가영</h4>
<p class="time">2024.00.00</p>
</div>
</div>

<!--왼 아래 사각형-->
<div style="clear: both">
<h3 class="title">멋사 아기사자 12기 3주차입니다.</h3>
<p class="content">
블로그 글 목록 만들기 실습을 3주차 과제로 하고 있습니다.
</p>
</div>

</div>

<!--오른쪽 큰 사각형-->
<div class="blog-img">
<img src="ca.jpg" style="width: 100%" />
</div>

</div>

</body>
</html>
Binary file added ca.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions form.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.form-background {
display: flex;
justify-content: center;
align-items: center;
height: 700px;
background: gray;
}

.form-white {
background-color: white;
padding: 20px;
justify-content: center;
align-items: center;
}

.form-input {
width: 100%;
padding: 8px;
border: 1px solid gray;
border-radius: 4px;
}

div,
input,
textarea{
box-sizing: border-box;
}

.w-50 {
padding: 10px;
width: 50%;
float: left;
}

.w-100 {
padding: 10px;
width: 100%;
}

.pink-button {
display: block;
margin-left: auto;
color: white;
background: palevioletred;
border: none;
border-radius: 4px;
padding: 6px;
width: 80px;
}
59 changes: 59 additions & 0 deletions form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Gamja+Flower&family=Nanum+Brush+Script&family=Noto+Sans+KR:[email protected]&display=swap"
rel="stylesheet"
/>
<meta charset="UTF-8" />
<meta name="viewport" content="width=vhs, initial-scale=1.0" />
<title>Document</title>
<link href="form.css" rel="stylesheet" />
</head>
<body>

<div class="form-background">
<div class="form-white">
<form>
<h1>Contact</h1>

<div class="w-100">
<p>Your Email</p>
<input
class="form-input"
type="email"
placeholder="[email protected]"
/>
</div>

<div class="w-50">
<p>First Name</p>
<input type="text" class="form-input" />
</div>

<div class="w-50">
<p>Last Name</p>
<input type="text" class="form-input" />
</div>

<div style="clear: both"></div>

<div class="w-100">
<p>Message</p>
<textarea class="form-input"></textarea>
</div>

<div>
<input id="sub" type="checkbox" />
<label for="sub">Subscribe</label>
<button class="pink-button">SEND</button>
</div>

<div></div>
</form>
</div>
</div>
</body>
</html>