-
Notifications
You must be signed in to change notification settings - Fork 8
[1주차] 구민교 과제 제출합니다. #8
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
Open
minnngo
wants to merge
5
commits into
CEOS-Developers:master
Choose a base branch
from
minnngo:minnngo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4aa1f25
feat(html): add todo app layout structure
minnngo 2ae83e4
style(css): add todo UI styles and layout
minnngo bcf1653
feat(js): implement todo add, delete, and completion logic
minnngo 849cb53
Feat: complete implementation of Vanilla Todo features
minnngo d456c84
chore: trigger vercel redeploy
minnngo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,368 @@ | ||
| * { | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| body { | ||
| margin: 0; | ||
| font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", | ||
| Roboto, "Helvetica Neue", Arial, sans-serif; | ||
| background-color: #ffd6e7; | ||
| color: #2e2a26; | ||
| } | ||
|
|
||
| button, | ||
| input { | ||
| font: inherit; | ||
| } | ||
|
|
||
| button { | ||
| border: none; | ||
| cursor: pointer; | ||
| transition: background-color 0.2s ease, transform 0.15s ease, | ||
| opacity 0.2s ease; | ||
| } | ||
|
|
||
| .app { | ||
| min-height: 100vh; | ||
| display: flex; | ||
| justify-content: center; | ||
| padding: 24px; | ||
| } | ||
|
|
||
| .todoCard { | ||
| width: 100%; | ||
| max-width: 520px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| gap: 24px; | ||
| } | ||
|
|
||
| .todoHeader { | ||
| width: 100%; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| position: relative; | ||
| padding-top: 8px; | ||
| } | ||
|
|
||
| .menuButton { | ||
| position: absolute; | ||
| left: 0; | ||
| top: 0; | ||
| background: transparent; | ||
| font-size: 28px; | ||
| color: #2e2a26; | ||
| padding: 4px 8px; | ||
| z-index: 20; | ||
| } | ||
|
|
||
| .menuButton:hover { | ||
| opacity: 0.7; | ||
| } | ||
|
|
||
| .viewMenu { | ||
| position: absolute; | ||
| left: 0; | ||
| top: 42px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 8px; | ||
| background-color: #ffe6f0; | ||
| padding: 10px; | ||
| border-radius: 14px; | ||
| box-shadow: 0 8px 18px rgba(90, 60, 70, 0.14); | ||
| z-index: 15; | ||
| } | ||
|
|
||
| .viewMenuButton { | ||
| min-width: 110px; | ||
| background-color: white; | ||
| color: #2e2a26; | ||
| border-radius: 10px; | ||
| padding: 8px 12px; | ||
| font-weight: 600; | ||
| text-align: left; | ||
| } | ||
|
|
||
| .viewMenuButton:hover { | ||
| background-color: #ffcade; | ||
| transform: translateY(-1px); | ||
| } | ||
|
|
||
| .hidden { | ||
| display: none; | ||
| } | ||
|
|
||
| .appTitle { | ||
| margin: 0; | ||
| font-size: 28px; | ||
| font-weight: 700; | ||
| } | ||
|
|
||
| .dateSection { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 24px; | ||
| } | ||
|
|
||
| .dateButton { | ||
| background: transparent; | ||
| color: #2e2a26; | ||
| font-size: 18px; | ||
| padding: 4px 8px; | ||
| } | ||
|
|
||
| .dateButton:hover { | ||
| opacity: 0.7; | ||
| transform: scale(1.05); | ||
| } | ||
|
|
||
| .selectedDate { | ||
| margin: 0; | ||
| font-size: 16px; | ||
| font-weight: 600; | ||
| } | ||
|
|
||
| .todoInputSection, | ||
| .todoListSection, | ||
| .todoSummarySection { | ||
| width: 100%; | ||
| } | ||
|
|
||
| .todoForm { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 8px; | ||
| background-color: #ffe6f0; | ||
| border-radius: 20px; | ||
| padding: 10px 12px; | ||
| } | ||
|
|
||
| .todoInput { | ||
| flex: 1; | ||
| border: none; | ||
| outline: none; | ||
| background: transparent; | ||
| font-size: 15px; | ||
| color: #2e2a26; | ||
| } | ||
|
|
||
| .todoInput::placeholder { | ||
| color: #8c7a73; | ||
| } | ||
|
|
||
| .todoInput:disabled { | ||
| opacity: 0.7; | ||
| cursor: not-allowed; | ||
| } | ||
|
|
||
| .addButton { | ||
| background-color: #ff7aa2; | ||
| color: white; | ||
| font-weight: 700; | ||
| border-radius: 12px; | ||
| padding: 10px 16px; | ||
| } | ||
|
|
||
| .addButton:hover { | ||
| background-color: #f0628f; | ||
| transform: translateY(-1px); | ||
| } | ||
|
|
||
| .addButton:disabled { | ||
| background-color: #d9a7b9; | ||
| cursor: not-allowed; | ||
| transform: none; | ||
| } | ||
|
|
||
| .todoList { | ||
| list-style: none; | ||
| margin: 0; | ||
| padding: 0; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 12px; | ||
| } | ||
|
|
||
| .todoItem { | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| gap: 12px; | ||
| background-color: #ffb3cc; | ||
| border-radius: 20px; | ||
| padding: 12px 14px; | ||
| transition: transform 0.15s ease, box-shadow 0.2s ease; | ||
| } | ||
|
|
||
| .todoItem:hover { | ||
| transform: translateY(-2px); | ||
| box-shadow: 0 8px 18px rgba(120, 72, 88, 0.14); | ||
| } | ||
|
|
||
| .todoLeft { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 12px; | ||
| flex: 1; | ||
| min-width: 0; | ||
| } | ||
|
|
||
| .todoCheckbox { | ||
| width: 22px; | ||
| height: 22px; | ||
| appearance: none; | ||
| -webkit-appearance: none; | ||
| background-color: white; | ||
| border: 2px solid #efb2c8; | ||
| border-radius: 6px; | ||
| position: relative; | ||
| cursor: pointer; | ||
| flex-shrink: 0; | ||
| } | ||
|
|
||
| .todoCheckbox:hover { | ||
| border-color: #ff8fb2; | ||
| } | ||
|
|
||
| .todoCheckbox:checked { | ||
| background-color: white; | ||
| border-color: #efb2c8; | ||
| } | ||
|
|
||
| .todoCheckbox:checked::after { | ||
| content: "✔"; | ||
| position: absolute; | ||
| color: #ff5c8a; | ||
| font-size: 16px; | ||
| font-weight: 900; | ||
| left: 3px; | ||
| top: -1px; | ||
| } | ||
|
|
||
| .todoText { | ||
| font-size: 15px; | ||
| font-weight: 400; | ||
| word-break: break-word; | ||
| color: #2e2a26; | ||
| } | ||
|
|
||
| .completedTodo { | ||
| text-decoration: line-through; | ||
| opacity: 0.7; | ||
| } | ||
|
|
||
| .deleteButton { | ||
| background-color: #4a403b; | ||
| color: white; | ||
| border-radius: 12px; | ||
| padding: 8px 14px; | ||
| font-weight: 700; | ||
| flex-shrink: 0; | ||
| } | ||
|
|
||
| .deleteButton:hover { | ||
| background-color: #6f645e; | ||
| transform: translateY(-1px); | ||
| } | ||
|
|
||
| .summaryCardList { | ||
| display: flex; | ||
| gap: 12px; | ||
| flex-wrap: wrap; | ||
| } | ||
|
|
||
| .summaryCard { | ||
| flex: 1 1 150px; | ||
| background-color: #ffe6f0; | ||
| border-radius: 18px; | ||
| padding: 16px; | ||
| text-align: center; | ||
| transition: transform 0.15s ease, box-shadow 0.2s ease; | ||
| } | ||
|
|
||
| .summaryCard:hover { | ||
| transform: translateY(-2px); | ||
| box-shadow: 0 8px 18px rgba(120, 72, 88, 0.1); | ||
| } | ||
|
|
||
| .summaryTitle { | ||
| margin: 0 0 10px; | ||
| font-size: 15px; | ||
| color: #5c514b; | ||
| } | ||
|
|
||
| .summaryValue { | ||
| margin: 0; | ||
| font-size: 22px; | ||
| font-weight: 700; | ||
| color: #d94b77; | ||
| } | ||
|
|
||
| /* Weekly view */ | ||
| .weeklyTodoGroup { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 10px; | ||
| background-color: #ffdbe8; | ||
| border-radius: 18px; | ||
| padding: 14px; | ||
| } | ||
|
|
||
| .weeklyTodoTitle { | ||
| margin: 0; | ||
| font-size: 16px; | ||
| font-weight: 700; | ||
| color: #4a403b; | ||
| } | ||
|
|
||
| .weeklyEmptyText { | ||
| margin: 0; | ||
| font-size: 14px; | ||
| color: #6f645e; | ||
| padding-left: 4px; | ||
| } | ||
|
|
||
| .emptyTodoText { | ||
| margin: 0; | ||
| font-size: 15px; | ||
| font-weight: 500; | ||
| color: #5c514b; | ||
| text-align: center; | ||
| } | ||
|
|
||
| @media (max-width: 600px) { | ||
| .app { | ||
| padding: 16px; | ||
| } | ||
|
|
||
| .todoCard { | ||
| gap: 20px; | ||
| } | ||
|
|
||
| .dateSection { | ||
| gap: 14px; | ||
| } | ||
|
|
||
| .todoForm { | ||
| padding: 10px; | ||
| } | ||
|
|
||
| .addButton { | ||
| padding: 10px 14px; | ||
| } | ||
|
|
||
| .todoItem { | ||
| padding: 12px; | ||
| } | ||
|
|
||
| .summaryCardList { | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| .viewMenu { | ||
| top: 40px; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:root 활용 리뷰
홍엽님 리뷰 단 내역이랑 비슷한 내용입니다!
:root를 활용하셔서 색상, shadow 값을 변수로 정의하시면 좋을거 같습니다!