-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDemo.html
126 lines (109 loc) · 2.92 KB
/
Demo.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Workout Planner Calendar</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f9;
}
.calendar-container {
max-width: 800px;
margin: 20px auto;
background: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
overflow: hidden;
}
.month {
margin-bottom: 20px;
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
}
.calendar-header {
display: flex;
justify-content: center;
align-items: center;
background-color: #007bff;
color: white;
padding: 10px 20px;
}
.calendar-header h2 {
margin: 0;
font-size: 1.5em;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 1px;
background-color: #ddd;
}
.calendar-day {
background: white;
padding: 10px;
min-height: 80px;
display: flex;
flex-direction: column;
justify-content: space-between;
border: 1px solid #ddd;
position: relative;
}
.calendar-day h3 {
margin: 0;
font-size: 1em;
color: #333;
}
.workout {
margin-top: 10px;
padding: 5px;
background-color: #007bff;
color: white;
border-radius: 4px;
font-size: 0.9em;
text-align: center;
}
.workout.cardio {
background-color: #28a745;
}
.workout.strength {
background-color: #ffc107;
}
.workout.yoga {
background-color: #6f42c1;
}
.add-workout {
position: absolute;
bottom: 5px;
right: 5px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
padding: 5px;
cursor: pointer;
font-size: 0.8em;
}
.add-workout:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="calendar-container" id="calendar">
<!-- JavaScript will dynamically generate the calendar here -->
</div>
<script>
const months = [
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
];
function createaCalendar(Year){
}
</script>
</body>
</html>