Update styles.css

This commit is contained in:
jombee 2024-07-09 01:56:08 +00:00
parent ad3c2e1025
commit 491119ed42

View File

@ -1,161 +1,161 @@
/* styles.css */ /* styles.css */
body { body {
font-family: 'Montserrat', sans-serif; font-family: 'Montserrat', sans-serif; /* 구글 폰트 Montserrat 사용 */
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: #f0f0f0; background-color: #f0f0f0; /* 기본 배경색 */
overflow-x: hidden; overflow-x: hidden; /* 수평 스크롤 숨기기 */
background-image: linear-gradient(to bottom right, #b6dfff, #ffffff); /* AJR 스타일의 배경 그라데이션 */ background-image: linear-gradient(to bottom right, #b6dfff, #ffffff); /* AJR 스타일의 배경 그라데이션 */
transition: background-color 0.5s ease; /* 배경색 전환 트랜지션 */ transition: background-color 0.5s ease; /* 배경색 전환 트랜지션 */
} }
header { header {
background-color: rgba(255, 151, 151, 0.8); /* 헤더 배경색 설정 */ background-color: rgba(255, 151, 151, 0.8); /* 헤더 배경색 설정 */
color: white; color: white; /* 텍스트 색상 설정 */
text-align: center; text-align: center; /* 텍스트 중앙 정렬 */
padding: 1em 0; padding: 1em 0; /* 패딩 설정 */
font-size: 3em; font-size: 3em; /* 폰트 크기 설정 */
font-weight: 700; font-weight: 700; /* 폰트 두께 설정 */
letter-spacing: 2px; letter-spacing: 2px; /* 글자 간격 설정 */
margin-bottom: 20px; margin-bottom: 20px; /* 하단 마진 설정 */
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 텍스트 그림자 설정 */ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 텍스트 그림자 설정 */
} }
main { main {
padding: 20px; padding: 20px; /* 메인 섹션 패딩 설정 */
} }
.controls { .controls {
display: flex; display: flex; /* 플렉스박스 사용 */
align-items: center; align-items: center; /* 수직 정렬 */
justify-content: center; /* 중앙 정렬 */ justify-content: center; /* 중앙 정렬 */
margin-bottom: 20px; margin-bottom: 20px; /* 하단 마진 설정 */
} }
#imageInput { #imageInput {
display: none; /* 파일 업로드 버튼 숨기기 */ display: none; /* 파일 업로드 버튼 숨기기 */
} }
.custom-file-upload { .custom-file-upload {
background-color: #00cec9; /* 파일 업로드 버튼 배경색 */ background-color: #00cec9; /* 파일 업로드 버튼 배경색 */
color: white; color: white; /* 텍스트 색상 설정 */
border: none; border: none; /* 테두리 제거 */
padding: 10px 20px; padding: 10px 20px; /* 패딩 설정 */
cursor: pointer; cursor: pointer; /* 커서 모양 설정 */
border-radius: 6px; border-radius: 6px; /* 테두리 둥글게 설정 */
font-size: 1.2em; font-size: 1.2em; /* 폰트 크기 설정 */
font-weight: 700; font-weight: 700; /* 폰트 두께 설정 */
text-transform: uppercase; text-transform: uppercase; /* 텍스트 대문자 변환 */
letter-spacing: 1px; letter-spacing: 1px; /* 글자 간격 설정 */
margin-right: 10px; margin-right: 10px; /* 오른쪽 마진 설정 */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 버튼 그림자 */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 버튼 그림자 설정 */
} }
.custom-file-upload:hover { .custom-file-upload:hover {
background-color: #00b894; /* 호버 상태 배경색 */ background-color: #00b894; /* 호버 상태 배경색 */
} }
#fileName { #fileName {
flex-grow: 1; flex-grow: 1; /* 요소가 가능한 모든 공간 차지 */
margin-right: 10px; margin-right: 10px; /* 오른쪽 마진 설정 */
white-space: nowrap; white-space: nowrap; /* 공백을 줄바꿈하지 않음 */
overflow: hidden; overflow: hidden; /* 넘치는 부분 숨기기 */
text-overflow: ellipsis; text-overflow: ellipsis; /* 넘치는 텍스트는 생략 기호(...)로 표시 */
border: 1px solid #ccc; border: 1px solid #ccc; /* 테두리 설정 */
padding: 10px; padding: 10px; /* 패딩 설정 */
border-radius: 6px; border-radius: 6px; /* 테두리 둥글게 설정 */
background-color: #fff; background-color: #fff; /* 배경색 설정 */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 그림자 설정 */
} }
#addImageButton { #addImageButton {
background-color: #00cec9; /* 이미지 추가 버튼 배경색 */ background-color: #00cec9; /* 이미지 추가 버튼 배경색 */
color: white; color: white; /* 텍스트 색상 설정 */
border: none; border: none; /* 테두리 제거 */
padding: 10px 20px; padding: 10px 20px; /* 패딩 설정 */
cursor: pointer; cursor: pointer; /* 커서 모양 설정 */
border-radius: 6px; border-radius: 6px; /* 테두리 둥글게 설정 */
font-size: 1.2em; font-size: 1.2em; /* 폰트 크기 설정 */
font-weight: 700; font-weight: 700; /* 폰트 두께 설정 */
text-transform: uppercase; text-transform: uppercase; /* 텍스트 대문자 변환 */
letter-spacing: 1px; letter-spacing: 1px; /* 글자 간격 설정 */
transition: background-color 0.3s ease; transition: background-color 0.3s ease; /* 배경색 전환 트랜지션 */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 버튼 그림자 */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 버튼 그림자 설정 */
} }
#addImageButton:hover { #addImageButton:hover {
background-color: #00b894; /* 호버 상태 배경색 */ background-color: #00b894; /* 호버 상태 배경색 */
} }
.gallery { .gallery {
display: flex; display: flex; /* 플렉스박스 사용 */
flex-wrap: wrap; flex-wrap: wrap; /* 요소를 여러 줄로 나눔 */
justify-content: center; /* 중앙 정렬 */ justify-content: center; /* 중앙 정렬 */
gap: 20px; gap: 20px; /* 요소 간 간격 설정 */
} }
.gallery-item { .gallery-item {
width: 300px; /* 갤러리 아이템 너비 */ width: 300px; /* 갤러리 아이템 너비 */
height: 300px; /* 갤러리 아이템 높이 */ height: 300px; /* 갤러리 아이템 높이 */
background-color: white; /* 갤러리 아이템 배경색 */ background-color: white; /* 갤러리 아이템 배경색 */
border-radius: 8px; border-radius: 8px; /* 테두리 둥글게 설정 */
overflow: hidden; overflow: hidden; /* 넘치는 부분 숨기기 */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 설정 */
transition: transform 0.2s; transition: transform 0.2s; /* 트랜지션 설정 */
} }
.gallery-item:hover { .gallery-item:hover {
transform: translateY(-5px); transform: translateY(-5px); /* 호버 시 아이템을 위로 이동 */
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* 호버 시 그림자 설정 */
} }
.gallery-item img { .gallery-item img {
width: 100%; width: 100%; /* 이미지 너비 설정 */
height: 100%; height: 100%; /* 이미지 높이 설정 */
object-fit: cover; object-fit: cover; /* 이미지가 요소를 가득 채우도록 설정 */
} }
.delete-button { .delete-button {
position: absolute; position: absolute; /* 절대 위치 설정 */
top: 10px; top: 10px; /* 상단 위치 설정 */
right: 10px; right: 10px; /* 오른쪽 위치 설정 */
background: rgba(255, 0, 0, 0.7); background: rgba(255, 0, 0, 0.7); /* 배경색 설정 */
color: white; color: white; /* 텍스트 색상 설정 */
border: none; border: none; /* 테두리 제거 */
padding: 5px 10px; padding: 5px 10px; /* 패딩 설정 */
cursor: pointer; cursor: pointer; /* 커서 모양 설정 */
border-radius: 5px; border-radius: 5px; /* 테두리 둥글게 설정 */
font-size: 1em; font-size: 1em; /* 폰트 크기 설정 */
z-index: 1; z-index: 1; /* z-index 설정 */
transition: background 0.2s; transition: background 0.2s; /* 배경색 전환 트랜지션 */
} }
.delete-button:before { .delete-button:before {
content: '×'; content: '×'; /* 버튼 내용 설정 */
font-size: 1.2em; font-size: 1.2em; /* 폰트 크기 설정 */
} }
.delete-button:hover { .delete-button:hover {
background: rgba(255, 0, 0, 1); background: rgba(255, 0, 0, 1); /* 호버 상태 배경색 */
} }
/* Lightbox 스타일 */ /* Lightbox 스타일 */
#lightbox { #lightbox {
position: fixed; position: fixed; /* 고정 위치 설정 */
top: 0; top: 0; /* 상단 위치 설정 */
left: 0; left: 0; /* 좌측 위치 설정 */
width: 100%; width: 100%; /* 너비 설정 */
height: 100%; height: 100%; /* 높이 설정 */
background-color: rgba(0, 0, 0, 0.8); background-color: rgba(0, 0, 0, 0.8); /* 배경색 설정 */
display: flex; display: flex; /* 플렉스박스 사용 */
align-items: center; align-items: center; /* 수직 정렬 */
justify-content: center; justify-content: center; /* 중앙 정렬 */
z-index: 1000; z-index: 1000; /* z-index 설정 */
} }
#lightbox img { #lightbox img {
max-width: 90%; max-width: 90%; /* 이미지 최대 너비 설정 */
max-height: 90%; max-height: 90%; /* 이미지 최대 높이 설정 */
border-radius: 8px; border-radius: 8px; /* 테두리 둥글게 설정 */
} }