Skip to content
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

[1주차] 한서정 미션 제출합니다. #9

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
138 changes: 138 additions & 0 deletions data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
/* 투두 모양 json 설계

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

데이터를 모듈화해서 사용하시는 방식이 깔끔하고 가독성이 좋아서 인상적이에요!! 코드 작성할 때 모듈화에 대해서는 생각해 보지 못했는데 저 또한 참고해서 고민해 봐야 할 것 같습니다. 😊👍

tag:
[{
"name":"과제",
"background":"#fffff"
}]
todos:
[{
"tag":"과제",
"todos": [
{
"id": 1,
"content": "세오스 1주차 과제",
"date": "2025-03-15",
"isComplete": false
}
]
}
]
*/

const initialTagData = [
{
name: "기본",
background:
"linear-gradient(135deg,rgb(255, 255, 255) 0%,rgb(246, 250, 255) 100%)", // 올바른 색상 코드 (잘못된 #fffff 수정)
},
{
name: "과제",
background: "#E3EAF5",
},
{
name: "일정",
background: "#C6D3EE",
},
];
const color = [
"#E3EAF5",
"#C6D3EE",
"#BCC8E6",
"#E5DFF5",
"#D7E3F3",
"#CFE0F1",
"#D9D0F2",
"#E1E7F8",
"#D0D7F1",
"#E8E3FA",
Comment on lines +38 to +48

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

태그별로 색상 다르게 하신거 너무 예쁜 것 같습니다💕


// 🔹 추가된 색상 (연한 핑크 & 그레이 핑크)
"#F4D7DA", // 연한 핑크
"#EAC4D5", // 라이트 로즈핑크
"#DFC5B7", // 부드러운 핑크 베이지
"#E8D7C4", // 웜톤 핑크 베이지

// 🔹 추가된 색상 (베이지 계열)
"#F5E6CC", // 크리미 베이지
"#EEDDCB", // 샌드 베이지
"#DDD1BF", // 뉴트럴 베이지
"#F3ECE0", // 페일 베이지

// 🔹 추가된 색상 (추가 블루 & 퍼플)
"#A5B8E0", // 소프트 블루
"#B5AEE4", // 라이트 바이올렛
"#C2B8F4", // 페리윙클 블루
"#9CB6F5", // 세레니티 블루

// 🔹 추가된 색상 (그레이 계열)
"#D4D4D4", // 밝은 그레이
"#C0C0C0", // 미디엄 그레이
"#B8B8B8", // 스톤 그레이
"#E6E6E6", // 페일 그레이

// 🔹 추가된 색상 (추가 블루 & 퍼플)
"#A2D2FF", // 스카이 블루
"#CDB4DB", // 라이트 라벤더
"#BDE0FE", // 페일 블루
"#D0AEE0", // 소프트 퍼플
"#A6C6FF", // 라이트 코발트 블루
"#E5B8F4", // 라이트 핑크 퍼플
];

// 초기 투두 데이터
const initialTodos = [
{
tag: "과제",
todos: [
{
id: 1,
content: "세오스 1주차 과제",
date: "2025-03-15",
isComplete: false,
},
{
id: 3,
content:
"우측 상단의 '태그 추가'를 사용해서 새로운 태그를 추가해보세요!",
date: "2025-03-15",
isComplete: false,
},
{
id: 4,
content: "새로운 할일을 추가해보세요! 날짜와 태그 지정이 가능합니다 :)",
date: "2025-03-15",
isComplete: false,
},
{
id: 5,
content: "체크박스를 클릭하면 투두가 완료/미완료 처리 됩니다.",
date: "2025-03-15",
isComplete: false,
},
{
id: 6,
content: "더이상 필요 없는 투두는 '삭제' 버튼을 눌러주세요!",
date: "2025-03-15",
isComplete: false,
},
],
},
{
tag: "기본",
todos: [
{
id: 2,
content: "기본 데이터",
date: "2025-03-17",
isComplete: false,
},
],
},
{
tag: "일정",
todos: [],
},
];

export { initialTagData, color, initialTodos };
52 changes: 52 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>To-Do List</title>
<link rel="stylesheet" href="styles.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<!--글씨 추가-->
<link
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css"
rel="stylesheet"
/>
</head>
<body>
<header>
<h1>TO-DO</h1>
<div id="header-div"></div>
</header>
<div class="app-container">
<section class="todo-input-section">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저는 한 번도 section 태그는 활용해 본 적이 없었는데 확실하게 구분되어 가독성이 올라가니 편한 것 같아요!

<div class="input-group">
<input
type="text"
id="todo-input-text"
placeholder="할 일을 입력하세요"
/>
<button id="add-todo">+</button>
</div>
<div class="meta-group">
<input type="date" id="todo-input-date" />
<select id="add-tag"></select>
</div>
<div class="new-tag">
<input type="text" id="tag-input-text" placeholder="태그 추가" />
<button id="add-new-tag">+</button>
</div>
</section>

<main>
<!-- 태그별 투두 리스트 -->
<div id="todo-list-container"></div>
</main>

<footer>
<p>© 한서정 세오스 1주차 과제</p>
</footer>
Comment on lines +45 to +47

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

섬세함이 돋보이는 과제 같습니다,, 👍

</div>

<script src="script.js" type="module"></script>
</body>
</html>
Loading