diff --git a/backend/api_server.py b/backend/api_server.py index 5850057..e170b3d 100755 --- a/backend/api_server.py +++ b/backend/api_server.py @@ -1113,7 +1113,9 @@ def generate_html_content(report_data, filename, file_path=None): score_total = 120 else: score_total = 100 - + + technical_html = _render_technical_section_html(report_data.get('technical_report', {})) + html_content = f""" @@ -1138,6 +1140,9 @@ def generate_html_content(report_data, filename, file_path=None): .summary {{ background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%); padding: 25px; border-radius: 15px; margin: 30px 0; border-left: 5px solid #FFC407; }} .summary-grid {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 15px; }} .summary-item {{ background: white; padding: 15px; border-radius: 10px; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }} + .technical {{ background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%); padding: 25px; border-radius: 15px; margin: 30px 0; border-left: 5px solid #1565c0; }} + .technical-grid {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 24px; margin-top: 12px; }} + .tech-row {{ padding: 4px 0; color: #495057; font-size: 0.95em; word-break: break-word; }} .score-display {{ font-size: 2.5em; font-weight: bold; color: {overall_color}; margin-bottom: 5px; }} .grade {{ font-size: 1.3em; font-weight: bold; color: #495057; }} .expandable-section {{ margin-bottom: 15px; border: 2px solid #e9ecef; border-radius: 12px; overflow: hidden; background: white; }} @@ -1201,7 +1206,9 @@ def generate_html_content(report_data, filename, file_path=None): - + + {technical_html} +
Click on any section below to expand and view detailed analysis