Added a comprehensive monthly calendar component with modern styling: - Full monthly view with proper date calculations - Current day highlighting and navigation - Responsive design for all screen sizes - Event indicator support for future integration - Takes up most of screen space as requested 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
401 lines
9.5 KiB
HTML
401 lines
9.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Calendar App</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background-color: #f8f9fa;
|
|
color: #333;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.app {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.app-header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 1rem 2rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.app-header h1 {
|
|
margin: 0;
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.app-header nav {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.app-header nav a {
|
|
color: white;
|
|
text-decoration: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.app-header nav a:hover {
|
|
background-color: rgba(255,255,255,0.2);
|
|
}
|
|
|
|
.app-main {
|
|
flex: 1;
|
|
padding: 2rem;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Authentication Forms */
|
|
.login-container, .register-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 60vh;
|
|
}
|
|
|
|
.login-form, .register-form {
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.login-form h2, .register-form h2 {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
color: #333;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 500;
|
|
color: #555;
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 0.75rem;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
|
|
}
|
|
|
|
.form-group input:disabled {
|
|
background-color: #f5f5f5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.login-button, .register-button {
|
|
width: 100%;
|
|
padding: 0.75rem;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.login-button:hover, .register-button:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.login-button:disabled, .register-button:disabled {
|
|
background: #ccc;
|
|
transform: none;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.error-message {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
padding: 0.75rem;
|
|
border-radius: 4px;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
|
|
.auth-links {
|
|
text-align: center;
|
|
margin-top: 2rem;
|
|
color: #666;
|
|
}
|
|
|
|
.auth-links a {
|
|
color: #667eea;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.auth-links a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.logout-button {
|
|
background: rgba(255,255,255,0.2);
|
|
border: 1px solid rgba(255,255,255,0.3);
|
|
color: white;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.logout-button:hover {
|
|
background: rgba(255,255,255,0.3);
|
|
}
|
|
|
|
/* Calendar View */
|
|
.calendar-view {
|
|
height: calc(100vh - 140px); /* Full height minus header and padding */
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Calendar Component */
|
|
.calendar {
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.1);
|
|
overflow: hidden;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.calendar-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1.5rem 2rem;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
}
|
|
|
|
.month-year {
|
|
font-size: 1.8rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.nav-button {
|
|
background: rgba(255,255,255,0.2);
|
|
border: none;
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.nav-button:hover {
|
|
background: rgba(255,255,255,0.3);
|
|
}
|
|
|
|
.calendar-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
flex: 1;
|
|
background: white;
|
|
}
|
|
|
|
.weekday-header {
|
|
background: #f8f9fa;
|
|
padding: 1rem;
|
|
text-align: center;
|
|
font-weight: 600;
|
|
color: #666;
|
|
border-bottom: 1px solid #e9ecef;
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.calendar-day {
|
|
border: 1px solid #f0f0f0;
|
|
padding: 0.75rem;
|
|
min-height: 100px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.calendar-day:hover {
|
|
background-color: #f8f9ff;
|
|
}
|
|
|
|
.calendar-day.current-month {
|
|
background: white;
|
|
}
|
|
|
|
.calendar-day.prev-month,
|
|
.calendar-day.next-month {
|
|
background: #fafafa;
|
|
color: #ccc;
|
|
}
|
|
|
|
.calendar-day.today {
|
|
background: #e3f2fd;
|
|
border: 2px solid #2196f3;
|
|
}
|
|
|
|
.calendar-day.has-events {
|
|
background: #fff3e0;
|
|
}
|
|
|
|
.calendar-day.today.has-events {
|
|
background: #e1f5fe;
|
|
}
|
|
|
|
.day-number {
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.calendar-day.today .day-number {
|
|
color: #1976d2;
|
|
}
|
|
|
|
.event-indicators {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.event-dot {
|
|
background: #ff9800;
|
|
height: 6px;
|
|
border-radius: 3px;
|
|
margin-bottom: 1px;
|
|
}
|
|
|
|
.more-events {
|
|
font-size: 0.7rem;
|
|
color: #666;
|
|
margin-top: 2px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.calendar-header {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.month-year {
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.nav-button {
|
|
width: 35px;
|
|
height: 35px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.weekday-header {
|
|
padding: 0.5rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.calendar-day {
|
|
min-height: 70px;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.day-number {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.app-main {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.calendar-view {
|
|
height: calc(100vh - 120px);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.calendar-day {
|
|
min-height: 60px;
|
|
padding: 0.25rem;
|
|
}
|
|
|
|
.weekday-header {
|
|
padding: 0.5rem 0.25rem;
|
|
}
|
|
|
|
.day-number {
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.app-header {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.app-header nav {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.app-main {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.login-form, .register-form {
|
|
padding: 1.5rem;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body></body>
|
|
</html> |