-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrite.html
92 lines (86 loc) · 3.25 KB
/
write.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./css/global-colors.css" />
<link rel="stylesheet" href="./css/index.css" />
<link rel="stylesheet" href="./css/write.css" />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;200;400;700;900&display=swap"
rel="stylesheet"
preload
/>
<title>오늘의 집</title>
</head>
<body>
<!-- TODO: 사용자 프로필사진, 사용자 이름을 추가로 넣어야 함. -->
<nav class="layout-navigation">
<div class="navigation">
<svg
class="icon go-back"
width="24"
height="24"
preserveAspectRatio="xMidYMid meet"
>
<path
d="M3.7 12.5h18.8v-1H3.7l7.8-7.8-.7-.7L2 11.7l.3.3-.3.3 8.8 8.7.7-.7-7.8-7.8z"
fill="#000"
fill-opacity=".7"
fill-rule="evenodd"
></path>
</svg>
<div class="side-bar-toggle">글쓰기</div>
<button class="publish-button">발행</button>
</div>
</nav>
<form class="post-form">
<div class="cover-image-wrapper">
<img class="cover-image" alt="업로드된 커버 사진" />
<div class="file-re-upload-wrapper">
<label for="cover-image-re-upload">사진 다시 올리기</label>
<input
type="file"
class="file-upload"
id="cover-image-re-upload"
multiple
accept=".jpg, .png, .jpeg, tiff, .gif"
style="display: none"
/>
</div>
<div class="info-wrapper">
<span class="info-title">커버 사진을 업로드해주세요.</span>
<span class="info-content"
>* 권장 사이즈: 1920 x 1080, 최소 1400 x 930 (3:2 비율)</span
>
</div>
<div class="file-upload-wrapper">
<label for="cover-image-upload">커버 사진 추가하기</label>
<!-- input type을 file로 지정 -->
<!-- multiple속성은 여러 파일을 업로드 할 수 있도록 속성을 지정 -->
<!-- accept는 업로드 가능한 포맷을 힌트, 지정포맷 외에 업로드 불가가 아니라 -->
<!-- 파일 업로드할 때 별도 설정이 없다면 그 외 포맷들이 안뜨는..그느낌 -->
<input
type="file"
class="file-upload"
id="cover-image-upload"
multiple
accept=".jpg, .png, .jpeg, tiff, .gif"
style="display: none"
/>
</div>
</div>
<div class="title-wrapper">
<!-- required속성은 필수 요소임을 알려줌 -->
<input class="title-input" placeholder="제목을 입력해주세요." required maxlength="30"/>
<span class="word-count">
<span class="current-title-length">0</span> /
<span class="max-title-length">30</span>
</span>
</div>
<textarea class="content-input" placeholder="내용을 입력해주세요."></textarea>
</section>
<script src="./src/write.js" type="module"></script>
</body>
</html>