forked from NimaMaria/My-Calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
132 lines (114 loc) · 4.37 KB
/
index.html
File metadata and controls
132 lines (114 loc) · 4.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My-Calendar</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header class="topbar">
<div class="brand">
<div class="logo" aria-hidden="true">🗓️</div>
<div>
<h1>My-Calendar</h1>
</div>
</div>
</header>
<main class="wrap">
<section class="panel">
<div class="panel-head">
<div>
<h2>Calendar</h2>
<p class="muted">Click a date to view events. Select an event to Edit/Delete from the side.</p>
<!-- Month/Year moved here (top of calendar) -->
<div class="monthbar">
<button id="prevBtn" class="btn" type="button" aria-label="Previous month">←</button>
<div id="monthLabel" class="month-label" aria-live="polite">—</div>
<button id="nextBtn" class="btn" type="button" aria-label="Next month">→</button>
<button id="todayBtn" class="btn ghost" type="button">Today</button>
</div>
</div>
<div class="head-right">
<input id="searchInput" class="search" type="search" placeholder="Search events…" />
<!-- TOP ADD BUTTON REMOVED (as you wanted) -->
</div>
</div>
<div class="dow">
<div>Sun</div><div>Mon</div><div>Tue</div><div>Wed</div><div>Thu</div><div>Fri</div><div>Sat</div>
</div>
<div id="grid" class="grid" aria-label="Calendar grid"></div>
</section>
<aside class="panel side">
<div class="panel-head">
<h2>Selected Day</h2>
<p id="dayLabel" class="muted">—</p>
</div>
<div id="dayList" class="day-list"></div>
<!-- SIDE BUTTONS: Add/Edit/Delete -->
<div class="panel-foot">
<button id="addBtn" class="btn primary" type="button">+ Add Event</button>
<button id="editBtn" class="btn" type="button">Edit</button>
<button id="deleteSideBtn" class="btn danger" type="button">Delete</button>
</div>
</aside>
</main>
<!-- Modal -->
<div id="backdrop" class="backdrop" hidden></div>
<dialog id="eventModal" class="modal" aria-labelledby="modalTitle">
<form id="eventForm" class="modal-form" method="dialog">
<div class="modal-head">
<div>
<div id="modalTitle" class="modal-title">New event</div>
<div id="modalSub" class="modal-sub">—</div>
</div>
<button id="closeBtn" class="btn ghost" type="button" aria-label="Close">✕</button>
</div>
<div class="form">
<label class="field">
<span>Event name *</span>
<input id="titleInput" required maxlength="60" placeholder="e.g., Birthday / Meeting" />
</label>
<label class="field">
<span>Event date *</span>
<input id="dateInput" type="date" required />
</label>
<div class="row">
<label class="field">
<span>Start (optional)</span>
<input id="startInput" type="time" />
</label>
<label class="field">
<span>End (optional)</span>
<input id="endInput" type="time" />
</label>
</div>
<label class="field">
<span>Description</span>
<textarea id="descInput" rows="3" maxlength="500" placeholder="Optional notes"></textarea>
</label>
<label class="field">
<span>Reminder</span>
<select id="remindInput">
<option value="off">Off</option>
<option value="popup">Popup (Yesterday + Today)</option>
</select>
<div class="hint">Popup will show once per day for events with Reminder enabled.</div>
</label>
<div id="conflictBox" class="callout warn" hidden>
<b>Conflict detected</b>
<div class="muted">This overlaps with another event on the same day/time.</div>
</div>
</div>
<div class="modal-foot">
<button id="deleteBtn" class="btn danger" type="button" hidden>Delete</button>
<div class="spacer"></div>
<button id="cancelBtn" class="btn ghost" type="button">Cancel</button>
<button id="saveBtn" class="btn primary" type="submit">Save</button>
</div>
<input type="hidden" id="idInput" />
</form>
</dialog>
<script src="app.js"></script>
</body>
</html>