- Simplify Cargo.toml dependencies for frontend-only build - Add comprehensive CSS styling with responsive design - Update app routing and main module structure - Fix WASM getrandom compatibility with js feature 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
262 lines
6.2 KiB
HTML
262 lines
6.2 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 {
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.calendar-view h2 {
|
|
color: #333;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.demo-section {
|
|
margin: 2rem 0;
|
|
padding: 1rem;
|
|
background: #f8f9fa;
|
|
border-radius: 4px;
|
|
border-left: 4px solid #667eea;
|
|
}
|
|
|
|
.demo-section h3 {
|
|
margin-bottom: 1rem;
|
|
color: #333;
|
|
}
|
|
|
|
.demo-section button {
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
.demo-section button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
.calendar-placeholder {
|
|
margin-top: 2rem;
|
|
padding: 1rem;
|
|
background: #e9ecef;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.calendar-placeholder ul {
|
|
margin: 1rem 0;
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
.calendar-placeholder li {
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
@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> |