HTML, CSS, JS만으로 일/주/월간 뷰와 데이터 통계 차트가 포함된 습관 추적 앱을 개발할 때 활용합니다.
Create a habit tracking application using HTML5, CSS3, and JavaScript. Build a clean interface showing daily, weekly, and monthly views. Implement habit creation with frequency, reminders, and goals. Add streak tracking with visual indicators and milestone celebrations. Include detailed statistics and progress graphs. Support habit categories and tags for organization. Implement calendar integration for scheduling. Add data visualization showing patterns and trends. Create a responsive design for all devices. Include data export and backup functionality. Add gamification elements with achievements and rewards.
HTML5, CSS3, JavaScript를 사용하여 습관 추적 애플리케이션을 만드세요. 일간, 주간, 월간 뷰를 보여주는 깔끔한 인터페이스를 구축하세요. 빈도, 알림, 목표 설정 기능이 포함된 습관 생성 기능을 구현하세요. 시각적 표시와 마일스톤 축하 효과가 포함된 연속 달성(Streak) 추적 기능을 추가하세요. 상세한 통계 및 진행 그래프를 포함하세요. 조직화를 위한 습관 카테고리 및 태그 기능을 지원하세요. 일정을 위한 캘린더 연동을 구현하세요. 패턴과 트렌드를 보여주는 데이터 시각화를 추가하세요. 모든 기기에서 작동하는 반응형 디자인을 만드세요. 데이터 내보내기 및 백업 기능을 포함하세요. 업적 및 보상 시스템과 같은 게이미피케이션 요소를 추가하세요.
출처 · prompts.chat · Habit Tracker — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.
Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).
Create a habit tracking application using HTML5, CSS3, and JavaScript. Build a clean interface showing daily, weekly, and monthly views. Implement habit creation with frequency, reminders, and goals. Add streak tracking with visual indicators and milestone celebrations. Include detailed statistics and progress graphs. Support habit categories and tags for organization. Implement calendar integration for scheduling. Add data visualization showing patterns and trends. Create a responsive design for all devices. Include data export and backup functionality. Add gamification elements with achievements and rewards.
HTML5, CSS3, JavaScript를 활용하여 만든 반응형 습관 트래커 핵심 예시 코드입니다. 습관 추가, 스트릭(연속 달성) 추적, 축하 메시지, 로컬 저장 및 JSON 데이터 백업 기능을 제공합니다.
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>습관 트래커</title>
<style>
body { font-family: sans-serif; max-width: 500px; margin: 20px auto; padding: 15px; }
.habit-card { border: 1px solid #ddd; padding: 12px; margin-top: 10px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.badge { background: #ff5722; color: #fff; padding: 3px 8px; border-radius: 12px; font-size: 12px; }
button { cursor: pointer; background: #007bff; color: white; border: none; padding: 6px 12px; border-radius: 4px; }
</style>
</head>
<body>
<h2>🔥 습관 관리 앱</h2>
<input type="text" id="habitInput" placeholder="새 습관 입력 (예: 매일 독서)">
<button onclick="addHabit()">추가</button>
<button onclick="exportData()">데이터 백업</button>
<div id="habitList"></div>
<script>
let habits = JSON.parse(localStorage.getItem('habits') || '[]');
function render() {
document.getElementById('habitList').innerHTML = habits.map((h, i) => `
<div class="habit-card">
<div><strong>${h.name}</strong> <span class="badge">🔥 ${h.streak}일 연속</span></div>
<button onclick="checkIn(${i})">달성 완료</button>
</div>`).join('');
localStorage.setItem('habits', JSON.stringify(habits));
}
function addHabit() {
const inp = document.getElementById('habitInput');
if (inp.value) { habits.push({ name: inp.value, streak: 0 }); inp.value = ''; render(); }
}
function checkIn(i) {
habits[i].streak += 1;
alert('🎉 ' + habits[i].name + ' ' + habits[i].streak + '일 연속 달성!');
render();
}
function exportData() {
const a = document.createElement('a');
a.href = URL.createObjectURL(new Blob([JSON.stringify(habits, null, 2)], {type:'application/json'}));
a.download = 'habit_backup.json'; a.click();
}
render();
</script>
</body>
</html>Chart.js 라이브러리를 추
mopick 개선안
원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.
AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님
AI 역할레슨 01 배우기 ›
원문 · 없음AI 에게 맡길 역할이 정해져 있지 않아 답의 관점 · 수준이 그때그때 달라질 수 있었습니다.
개선 · 역할을 정함Act as a Senior Frontend Engineer. Develop a responsive Habit Tracking Web Application usi
작업 순서레슨 07 배우기 ›
원문 · 없음작업 순서가 정해져 있지 않아 AI 가 순서를 스스로 정해야 했습니다.
개선 · 3단계
이 개선안에 쓰인 기법 — 프롬프트 클래스에서 배우기
원문
Create a habit tracking application using HTML5, CSS3, and JavaScript. Build a clean interface showing daily, weekly, and monthly views. Implement habit creation with frequency, reminders, and goals. Add streak tracking with visual indicators and milestone celebrations. Include detailed statistics and progress graphs. Support habit categories and tags for organization. Implement calendar integration for scheduling. Add data visualization showing patterns and trends. Create a responsive design for all devices. Include data export and backup functionality. Add gamification elements with achievements and rewards.
개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요
Act as a Senior Frontend Engineer. Develop a responsive Habit Tracking Web Application using vanilla HTML5, CSS3, and JavaScript (ES6+).
Key Requirements:
- Views: Daily, weekly, and monthly dashboard views.
- Core Features: Habit creation (frequency, reminders, goals, categories/tags), streak tracking, and localStorage data persistence.
- Visualization: Interactive progress graphs, pattern trends, and gamified milestone badges.
- Data: Export/import functionality (JSON format) and calendar integration.
Output Format:
1. Provide clean, production-ready code divided into `index.html`, `styles.css`, and `app.js`.
2. Include inline comments for core logic.
3. [Optional: Specify design theme or UI framework preference, e.g., Dark Mode / Minimalist UI].