test
This commit is contained in:
37
app/static/css/styles.css
Normal file
37
app/static/css/styles.css
Normal file
@@ -0,0 +1,37 @@
|
||||
/* Base styles */
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
/* Navigation styles */
|
||||
nav {
|
||||
@apply bg-gray-800 text-white p-4;
|
||||
}
|
||||
|
||||
nav a {
|
||||
@apply text-white mx-4 no-underline;
|
||||
}
|
||||
|
||||
/* Form styles */
|
||||
form {
|
||||
@apply max-w-md mx-auto my-8 p-6 bg-white rounded-lg shadow-md;
|
||||
}
|
||||
|
||||
form label {
|
||||
@apply block mb-2;
|
||||
}
|
||||
|
||||
form input {
|
||||
@apply w-full p-2 mb-4 border border-gray-300 rounded;
|
||||
}
|
||||
|
||||
form button {
|
||||
@apply py-2 px-4 bg-gray-800 text-white rounded cursor-pointer;
|
||||
}
|
||||
|
||||
form button:hover {
|
||||
@apply bg-gray-700;
|
||||
}
|
||||
13
app/static/js/scripts.js
Normal file
13
app/static/js/scripts.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// JavaScript for handling form submissions and other dynamic behavior
|
||||
|
||||
// Example function to handle form submission
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const form = document.querySelector('form');
|
||||
if (form) {
|
||||
form.addEventListener('submit', function(event) {
|
||||
event.preventDefault();
|
||||
// Add form validation or submission logic here
|
||||
alert('Form submitted!');
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user