I'll help you create a web app for writing weekly technical reports for theater shows. This will be a single-page application with sections for different technical aspects of theater production.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Theater Technical Report Writer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: #f5f5f5;
color: #333;
line-height: 1.6;
}
.container {
max-width: 900px;
margin: 0 auto;
padding: 20px;
}
header {
background-color: #2c3e50;
color: white;
padding: 30px 0;
text-align: center;
margin-bottom: 30px;
border-radius: 8px;
}
h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
.subtitle {
font-size: 1.1em;
opacity: 0.9;
}
.report-form {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.form-section {
margin-bottom: 30px;
padding-bottom: 30px;
border-bottom: 1px solid #eee;
}
.form-section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
h2 {
color: #2c3e50;
margin-bottom: 20px;
font-size: 1.5em;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
font-weight: 600;
margin-bottom: 8px;
color: #555;
}
input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
transition: border-color 0.3s;
}
input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
outline: none;
border-color: #3498db;
}
textarea {
resize: vertical;
min-height: 100px;
}
.row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.checkbox-group {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 10px;
}
.checkbox-item {
display: flex;
align-items: center;
}
.checkbox-item input[type="checkbox"] {
margin-right: 8px;
}
.action-buttons {
display: flex;
gap: 15px;
margin-top: 30px;
}
button {
padding: 12px 30px;
border: none;
border-radius: 4px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s;
}
.btn-primary {
background-color: #3498db;
color: white;
}
.btn-primary:hover {
background-color: #2980b9;
}
.btn-secondary {
background-color: #95a5a6;
color: white;
}
.btn-secondary:hover {
background-color: #7f8c8d;
}
.btn-success {
background-color: #27ae60;
color: white;
}
.btn-success:hover {
background-color: #229954;
}
.report-output {
margin-top: 30px;
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
display: none;
}
.report-output h3 {
color: #2c3e50;
margin-bottom: 20px;
}
.report-content {
white-space: pre-wrap;
background-color: #f8f9fa;
padding: 20px;
border-radius: 4px;
border: 1px solid #dee2e6;
}
.copy-button {
margin-top: 15px;
}
@media (max-width: 768px) {
.row {
grid-template-columns: 1fr;
}
.action-buttons {
flex-direction: column;
}
button {
width: 100%;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Theater Technical Report Writer</h1>
<p class="subtitle">Weekly Technical Reports Made Easy</p>
</header>
<form class="report-form" id="reportForm">
<!-- Basic Information -->
<div class="form-section">
<h2>Basic Information</h2>
<div class="row">
<div class="form-group">
<label for="showName">Show Name</label>
<input type="text" id="showName" name="showName" required>
</div>
<div class="form-group">
<label for="weekEnding">Week Ending</label>
<input type="date" id="weekEnding" name="weekEnding" required>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="venue">Venue/Theater</label>
<input type="text" id="venue" name="venue" required>
</div>
<div class="form-group">
<label for="reportAuthor">Report Author</label>
<input type="text" id="reportAuthor" name="reportAuthor" required>
</div>
</div>
</div>
<!-- Performance Summary -->
<div class="form-section">
<h2>Performance Summary</h2>
<div class="row">
<div class="form-group">
<label for="totalPerformances">Total Performances This Week</label>
<input type="number" id="totalPerformances" name="totalPerformances" min="0" required>
</div>
<div class="form-group">
<label for="totalAttendance">Total Attendance</label>
<input type="number" id="totalAttendance" name="totalAttendance" min="0">
</div>
</div>
<div class="form-group">
<label for="performanceNotes">Performance Notes</label>
<textarea id="performanceNotes" name="performanceNotes" placeholder="Any notable events, audience reactions, or performance variations..."></textarea>
</div>
</div>
<!-- Technical Issues -->
<div class="form-section">
<h2>Technical Issues & Maintenance</h2>
<div class="form-group">
<label>Departments Affected (check all that apply)</label>
<div class="checkbox-group">
<div class="checkbox-item">
<input type="checkbox" id="lighting" name="departments" value="Lighting">
<label for="lighting">Lighting</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="sound" name="departments" value="Sound">
<label for="sound">Sound</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="video" name="departments" value="Video/Projection">
<label for="video">Video/Projection</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="automation" name="departments" value="Automation">
<label for="automation">Automation</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="rigging" name="departments" value="Rigging">
<label for="rigging">Rigging</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="scenic" name="departments" value="Scenic">
<label for="scenic">Scenic</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="costumes" name="departments" value="Costumes">
<label for="costumes">Costumes</label>
</div>
<div class="checkbox-item">
<input type="checkbox" id="props" name="departments" value="Props">
<label for="props">Props</label>
</div>
</div>
</div>
<div class="form-group">
<label for="technicalIssues">Technical Issues Description</label>
<textarea id="technicalIssues" name="technicalIssues" placeholder="Describe any technical issues, failures, or concerns..."></textarea>
</div>
<div class="form-group">
<label for="maintenancePerformed">Maintenance Performed</label>
<textarea id="maintenancePerformed" name="maintenancePerformed" placeholder="List any maintenance, repairs, or replacements completed..."></textarea>
</div>
</div>
<!-- Equipment & Supplies -->
<div class="form-section">
<h2>Equipment & Supplies</h2>
<div class="form-group">
<label for="equipmentNeeds">Equipment Needs</label>
<textarea id="equipmentNeeds" name="equipmentNeeds" placeholder="List any equipment that needs replacement or repair..."></textarea>
</div>
<div class="form-group">
<label for="suppliesNeeded">Supplies Needed</label>
<textarea id="suppliesNeeded" name="suppliesNeeded" placeholder="List consumables or supplies running low..."></textarea>
</div>
</div>
<!-- Staff & Schedule -->
<div class="form-section">
<h2>Staff & Schedule</h2>
<div class="form-group">
<label for="staffingNotes">Staffing Notes</label>
<textarea id="staffingNotes" name="staffingNotes" placeholder="Any staffing changes, concerns, or commendations..."></textarea>
</div>
<div class="form-group">
<label for="upcomingSchedule">Upcoming Week Schedule</label>
<textarea id="upcomingSchedule" name="upcomingSchedule" placeholder="Notable events, maintenance windows, or schedule changes for next week..."></textarea>
</div>
</div>
<!-- Additional Notes -->
<div class="form-section">
<h2>Additional Notes</h2>
<div class="form-group">
<label for="safetyIncidents">Safety Incidents</label>
<textarea id="safetyIncidents" name="safetyIncidents" placeholder="Report any safety incidents or near-misses..."></textarea>
</div>
<div class="form-group">
<label for="additionalNotes">Other Notes</label>
<textarea id="additionalNotes" name="additionalNotes" placeholder="Any other information relevant to technical operations..."></textarea>
</div>
</div>
<div class="action-buttons">
<button type="submit" class="btn-primary">Generate Report</button>
<button type="button" class="btn-secondary" onclick="clearForm()">Clear Form</button>
<button type="button" class="btn-success" onclick="saveData()">Save Draft</button>
</div>
</form>
<div class="report-output" id="reportOutput">
<h3>Generated Report</h3>
<div class="report-content" id="reportContent"></div>
<button class="btn-primary copy-button" onclick="copyReport()">Copy to Clipboard</button>
</div>
</div>
<script>
// Load saved data on page load
window.onload = function() {
loadSavedData();
// Set default date to today
if (!document.getElementById('weekEnding').value) {
document.getElementById('weekEnding').value = new Date().toISOString().split('T')[0];
}
};
// Form submission
document.getElementById('reportForm').addEventListener('submit', function(e) {
e.preventDefault();
generateReport();
});
function generateReport() {
const formData = new FormData(document.getElementById('reportForm'));
const departments = formData.getAll('departments');
// Format date
const weekEnding = new Date(formData.get('weekEnding'));
const formattedDate = weekEnding.toLocaleDateString('en-US', {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric'
});
// Build report
let report = `WEEKLY TECHNICAL REPORT
${'-'.repeat(50)}
Show: ${formData.get('showName')}
Venue: ${formData.get('venue')}
Week Ending: ${formattedDate}
Report By: ${formData.get('reportAuthor')}
Generated: ${new Date().toLocaleString()}
PERFORMANCE SUMMARY
${'-'.repeat(50)}
Total Performances: ${formData.get('totalPerformances')}
Total Attendance: ${formData.get('totalAttendance') || 'Not recorded'}
Performance Notes:
${formData.get('performanceNotes') || 'No performance notes this week.'}
TECHNICAL ISSUES & MAINTENANCE
${'-'.repeat(50)}
Departments Affected: ${departments.length > 0 ? departments.join(', ') : 'None'}
Technical Issues:
${formData.get('technicalIssues') || 'No technical issues reported.'}
Maintenance Performed:
${formData.get('maintenancePerformed') || 'No maintenance performed.'}
EQUIPMENT & SUPPLIES
${'-'.repeat(50)}
Equipment Needs:
${formData.get('equipmentNeeds') || 'No equipment needs at this time.'}
Supplies Needed:
${formData.get('suppliesNeeded') || 'No supplies needed at this time.'}
STAFF & SCHEDULE
${'-'.repeat(50)}
Staffing Notes:
${formData.get('staffingNotes') || 'No staffing notes.'}
Upcoming Week Schedule:
${formData.get('upcomingSchedule') || 'Standard performance schedule.'}
ADDITIONAL NOTES
${'-'.repeat(50)}
Safety Incidents:
${formData.get('safetyIncidents') || 'No safety incidents to report.'}
Other Notes:
${formData.get('