[팀 포트폴리오] [Momentum 클론 웹사이트] 2. 코드 분석 <App.css>
2024. 12. 11. 10:52ㆍ웹개발 포트폴리오
728x90
반응형
/* 기본 스타일 초기화 */
body {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: pretendard-regular;
background-color: #282c34;
color: white;
text-align: center;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
overflow-x: hidden;
}
/* 상단 고정 섹션 */
#top-section {
width: 100%;
flex-shrink: 0; /* 상단 고정 */
text-align: center;
padding: 10px 0;
}
/* 선택적으로 스크롤 가능한 섹션 */
#todo-section {
width: 100%;
flex-grow: 1; /* 남은 공간 사용 */
overflow-y: auto; /* Y축 스크롤 활성화 */
padding: 20px;
max-height: calc(100vh - 150px); /* 제한된 높이 (상단/하단 섹션 포함) */
scrollbar-width: none; /* Firefox에서 스크롤바 숨기기 */
-ms-overflow-style: none; /* IE에서 스크롤바 숨기기 */
}
#todo-section::-webkit-scrollbar {
display: none; /* Webkit 기반 브라우저에서 스크롤바 숨기기 */
}
/* 하단 섹션 고정 */
#quote,
#weather {
width: 100%;
flex-shrink: 0; /* 고정 */
}
/* 시계 */
#clock {
font-size: 96px;
margin-bottom: 20px;
font-weight: bold;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
/* 로그인 폼 */
#login-form {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}
#login-form input[type="text"] {
width: 300px;
padding: 10px;
font-size: 16px;
margin-bottom: 10px;
border: none;
border-radius: 5px;
outline: none;
}
#login-form input[type="submit"] {
padding: 10px 20px;
font-size: 16px;
color: white;
background-color: #007bff00;
border: none;
border-radius: 5px;
cursor: pointer;
}
#login-form input[type="submit"]:hover {
background-color: #0056b3;
}
/* 인사말 */
#greeting {
font-size: 20px;
margin-top: 20px;
}
.hidden {
display: none;
}
/* 할 일 목록 */
#todo-form {
margin-top: 30px;
}
#todo-form input[type="text"] {
width: 400px;
padding: 10px;
font-size: 16px;
border: none;
border-radius: 5px;
outline: none;
}
#todo-list {
margin-top: 20px;
list-style: none;
padding: 0;
}
#todo-list li {
margin: 10px 0;
padding: 10px;
font-size: 18px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 5px;
text-align: center;
}
#todo-section {
width: 100%;
max-height: calc(100vh - 200px); /* 상단과 하단의 고정 영역을 제외한 높이 */
overflow-y: auto; /* Y축 스크롤 활성화 */
padding: 20px;
scrollbar-width: none; /* Firefox에서 스크롤바 숨기기 */
-ms-overflow-style: none; /* IE에서 스크롤바 숨기기 */
}
#todo-section::-webkit-scrollbar {
display: none; /* Webkit 기반 브라우저에서 스크롤바 숨기기 */
}
.app-blurred {
filter: blur(5px);
pointer-events: none;
}
/* 포커스 모드 토글 버튼 */
.focus-mode-toggle-button {
position: fixed;
top: 10px;
left: 10px;
z-index: 30;
padding: 10px 20px;
background-color: #202020;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.focus-mode-toggle-button:hover {
background-color: #515151;
}
#logout-button {
margin-left: 10px;
padding: 5px 10px;
font-size: 14px;
color: white;
background-color: #adadad21;
border: none;
border-radius: 5px;
cursor: pointer;
}
#logout-button:hover {
background-color: #ededed21;
}
728x90
반응형
'웹개발 포트폴리오' 카테고리의 다른 글
[개인 포트폴리오] [클라이밍 커뮤니티 SNS] 2. 코드 분석 <App.js> (0) | 2024.12.20 |
---|---|
[개인 포트폴리오] [클리이밍 커뮤니티 SNS] 1. 구상 및 완성 과정 (0) | 2024.12.19 |
[팀 포트폴리오] [Momentum 클론 웹사이트] 2. 코드 분석 <App.js> (0) | 2024.12.11 |
[팀 포트폴리오] [Momentum 클론 웹사이트] 2. 코드 분석 <FocusMode.jsx & FocusMode.css> (0) | 2024.12.11 |
[팀 포트폴리오] [Momentum 클론 웹사이트] 2. 코드 분석 <background.JSX> (0) | 2024.12.11 |