Update gallery.html

This commit is contained in:
jombee 2024-07-09 01:53:58 +00:00
parent 7b8a3c466e
commit ad3c2e1025

View File

@ -1,29 +1,29 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8"> <!-- 문서의 문자 인코딩을 UTF-8로 설정 -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- 뷰포트 설정으로 반응형 디자인 구현 -->
<title>My Image Gallery</title> <title>My Image Gallery</title> <!-- 문서 제목 설정 -->
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css"> <!-- 외부 스타일시트 연결 -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet"> <!-- 구글 폰트 연결 -->
</head> </head>
<body> <body>
<header> <header>
<h1>My Image Gallery</h1> <h1>My Image Gallery</h1> <!-- 헤더 섹션에 제목 추가 -->
</header> </header>
<main> <main>
<div class="controls"> <div class="controls">
<label for="imageInput" class="custom-file-upload"> <label for="imageInput" class="custom-file-upload">
Select Image Select Image <!-- 파일 선택 레이블 -->
</label> </label>
<input type="file" id="imageInput" accept="image/*"> <input type="file" id="imageInput" accept="image/*"> <!-- 파일 입력 요소, 이미지 파일만 허용 -->
<span id="fileName"></span> <span id="fileName"></span> <!-- 선택한 파일명을 표시할 요소 -->
<button id="addImageButton">Add Image</button> <button id="addImageButton">Add Image</button> <!-- 이미지 추가 버튼 -->
</div> </div>
<section class="gallery" id="gallery"> <section class="gallery" id="gallery">
<!-- 이미지가 여기에 추가됩니다 --> <!-- 이미지가 여기에 추가됩니다 --> <!-- 이미지 갤러리가 추가될 섹션 -->
</section> </section>
</main> </main>
<script src="script.js"></script> <script src="script.js"></script> <!-- 외부 스크립트 파일 연결 -->
</body> </body>
</html> </html>