Initial commit: Custom Start Page application with authentication and DynamoDB storage
This commit is contained in:
35
static/css/main.css
Normal file
35
static/css/main.css
Normal file
@@ -0,0 +1,35 @@
|
||||
/* Custom styles for Custom Start Page */
|
||||
|
||||
/* Ensure smooth transitions */
|
||||
* {
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
/* Widget styles */
|
||||
.widget {
|
||||
background: white;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.widget:hover {
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.widget-handle {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
/* Loading indicator */
|
||||
.htmx-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.htmx-request .htmx-indicator {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.htmx-request.htmx-indicator {
|
||||
display: inline-block;
|
||||
}
|
||||
16
static/js/main.js
Normal file
16
static/js/main.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// Custom JavaScript for Custom Start Page
|
||||
|
||||
// Initialize on page load
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
console.log('Custom Start Page loaded');
|
||||
});
|
||||
|
||||
// Handle HTMX events
|
||||
document.body.addEventListener('htmx:afterSwap', function(evt) {
|
||||
console.log('HTMX swap completed:', evt.detail.target.id);
|
||||
});
|
||||
|
||||
document.body.addEventListener('htmx:responseError', function(evt) {
|
||||
console.error('HTMX error:', evt.detail);
|
||||
alert('An error occurred. Please try again.');
|
||||
});
|
||||
Reference in New Issue
Block a user