-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
154 lines (144 loc) · 7.57 KB
/
index.html
File metadata and controls
154 lines (144 loc) · 7.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes, viewport-fit=cover">
<meta name="description" content="Beautiful countdown to New Year with todo list and Pomodoro timer!">
<meta name="theme-color" content="#88c0d0">
<meta name="keywords" content="new year countdown, productivity, todo list, pomodoro timer, countdown timer">
<meta name="author" content="Mamdous">
<!-- Open Graph / Social Media -->
<meta property="og:title" content="Productivity Core">
<meta property="og:description" content="Beautiful countdown to New Year with todo list and Pomodoro timer">
<meta property="og:type" content="website">
<meta property="og:image" content="/og-image.png">
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect fill='%2388c0d0' width='100' height='100'/><circle cx='50' cy='50' r='35' fill='none' stroke='%23ffffff' stroke-width='8'/><polyline points='50,25 50,50 70,65' fill='none' stroke='%23ffffff' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/></svg>">
<link rel="apple-touch-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'><rect fill='%2388c0d0' width='180' height='180' rx='40'/><circle cx='90' cy='90' r='60' fill='none' stroke='%23ffffff' stroke-width='12'/><polyline points='90,50 90,90 115,115' fill='none' stroke='%23ffffff' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/></svg>">
<title>Productivity Core</title>
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<!-- Theme Toggle -->
<button class="theme-toggle" id="themeToggle" title="Toggle Theme">
<svg class="sun-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<svg class="moon-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
<!-- Current Time -->
<div class="current-time" id="currentTime"></div>
<div class="current-date" id="currentDate"></div>
<!-- Countdown Section -->
<div class="countdown-section">
<h1 class="countdown-title">Countdown to <span id="nextYear"></span></h1>
<div class="countdown-container">
<div class="countdown-item">
<div class="countdown-value" id="months">00</div>
<div class="countdown-label">Months</div>
</div>
<div class="countdown-separator">:</div>
<div class="countdown-item">
<div class="countdown-value" id="days">00</div>
<div class="countdown-label">Days</div>
</div>
<div class="countdown-separator">:</div>
<div class="countdown-item">
<div class="countdown-value" id="hours">00</div>
<div class="countdown-label">Hours</div>
</div>
<div class="countdown-separator">:</div>
<div class="countdown-item">
<div class="countdown-value" id="minutes">00</div>
<div class="countdown-label">Minutes</div>
</div>
<div class="countdown-separator">:</div>
<div class="countdown-item">
<div class="countdown-value" id="seconds">00</div>
<div class="countdown-label">Seconds</div>
</div>
</div>
<div class="progress-bar">
<div class="progress-fill" id="yearProgress"></div>
</div>
<div class="progress-text" id="progressText">0% of year completed</div>
</div>
<!-- Tools Section -->
<div class="tools-section">
<!-- Pomodoro Timer -->
<div class="tool-card pomodoro-card">
<h2 class="tool-title">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<polyline points="12 6 12 12 16 14"></polyline>
</svg>
Pomodoro Timer
</h2>
<div class="pomodoro-display" id="pomodoroDisplay">25:00</div>
<div class="pomodoro-status" id="pomodoroStatus">Ready to focus</div>
<div class="pomodoro-controls">
<button class="btn btn-primary" id="pomodoroStart">Start</button>
<button class="btn btn-secondary" id="pomodoroPause" disabled>Pause</button>
<button class="btn btn-danger" id="pomodoroReset">Reset</button>
</div>
<div class="pomodoro-modes">
<button class="mode-btn active" data-mode="work" data-time="25">Work (25m)</button>
<button class="mode-btn" data-mode="short" data-time="5">Short Break (5m)</button>
<button class="mode-btn" data-mode="long" data-time="15">Long Break (15m)</button>
</div>
<div class="pomodoro-stats">
<span>🍅 Sessions completed: <strong id="pomodoroCount">0</strong></span>
</div>
</div>
<!-- Todo List -->
<div class="tool-card todo-card">
<h2 class="tool-title">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 11l3 3L22 4"></path>
<path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>
</svg>
Todo List
</h2>
<div class="todo-input-container">
<input type="text" id="todoInput" placeholder="Add a new task..." class="todo-input">
<button class="btn btn-primary" id="addTodo">Add</button>
</div>
<div class="todo-filters">
<button class="filter-btn active" data-filter="all">All</button>
<button class="filter-btn" data-filter="active">Active</button>
<button class="filter-btn" data-filter="completed">Completed</button>
</div>
<ul class="todo-list" id="todoList"></ul>
<div class="todo-footer">
<span id="todoCount">0 tasks</span>
<button class="btn btn-small btn-danger" id="clearCompleted">Clear Completed</button>
</div>
</div>
</div>
<!-- Greeting Section -->
<div class="greeting-section">
<div class="greeting" id="greeting"></div>
<div class="quote" id="quote"></div>
</div>
<!-- Footer -->
<footer class="footer">
<p>Made with ❤️ | <a href="#" id="setAsHome">Set as Homepage</a></p>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>