Skip to content

Commit cc980f3

Browse files
Refactor HTML templates for certificate responses: Update CSS styles in certificate download, not found, not generated, UUID invalid, and server error templates to use double curly braces for consistency and improved readability.
1 parent c63c7b2 commit cc980f3

File tree

5 files changed

+37
-37
lines changed

5 files changed

+37
-37
lines changed

src/main/presentation/templates/certificate_download.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<style>
8-
body { font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f8f9fa; }
9-
.container { max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
10-
.success-icon { font-size: 48px; color: #28a745; margin-bottom: 20px; }
11-
h1 { color: #155724; margin-bottom: 20px; }
12-
p { color: #6c757d; line-height: 1.6; margin-bottom: 20px; }
13-
.download-link { background-color: #28a745; color: white; padding: 12px 24px; text-decoration: none; border-radius: 5px; display: inline-block; margin-top: 20px; }
14-
.download-link:hover { background-color: #218838; }
15-
.loading { display: inline-block; width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid #28a745; border-radius: 50%; animation: spin 1s linear infinite; }
16-
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
8+
body {{ font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f8f9fa; }}
9+
.container {{ max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }}
10+
.success-icon {{ font-size: 48px; color: #28a745; margin-bottom: 20px; }}
11+
h1 {{ color: #155724; margin-bottom: 20px; }}
12+
p {{ color: #6c757d; line-height: 1.6; margin-bottom: 20px; }}
13+
.download-link {{ background-color: #28a745; color: white; padding: 12px 24px; text-decoration: none; border-radius: 5px; display: inline-block; margin-top: 20px; }}
14+
.download-link:hover {{ background-color: #218838; }}
15+
.loading {{ display: inline-block; width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid #28a745; border-radius: 50%; animation: spin 1s linear infinite; }}
16+
@keyframes spin {{ 0% {{ transform: rotate(0deg); }} 100% {{ transform: rotate(360deg); }} }}
1717
</style>
1818
</head>
1919
<body>
@@ -27,9 +27,9 @@ <h1>Download do Certificado</h1>
2727
</div>
2828
<script>
2929
// Redirect após 2 segundos para dar tempo de ver a página
30-
setTimeout(function() {
30+
setTimeout(function() {{
3131
window.location.href = "{certificate_url}";
32-
}, 2000);
32+
}}, 2000);
3333
</script>
3434
</body>
3535
</html>

src/main/presentation/templates/certificate_not_found.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<style>
8-
body { font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f8f9fa; }
9-
.container { max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
10-
.error-icon { font-size: 48px; color: #ffc107; margin-bottom: 20px; }
11-
h1 { color: #856404; margin-bottom: 20px; }
12-
p { color: #6c757d; line-height: 1.6; margin-bottom: 20px; }
13-
.error-code { background-color: #fff3cd; color: #856404; padding: 10px; border-radius: 4px; font-family: monospace; }
8+
body {{ font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f8f9fa; }}
9+
.container {{ max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }}
10+
.error-icon {{ font-size: 48px; color: #ffc107; margin-bottom: 20px; }}
11+
h1 {{ color: #856404; margin-bottom: 20px; }}
12+
p {{ color: #6c757d; line-height: 1.6; margin-bottom: 20px; }}
13+
.error-code {{ background-color: #fff3cd; color: #856404; padding: 10px; border-radius: 4px; font-family: monospace; }}
1414
</style>
1515
</head>
1616
<body>

src/main/presentation/templates/certificate_not_generated.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<style>
8-
body { font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f8f9fa; }
9-
.container { max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
10-
.info-icon { font-size: 48px; color: #17a2b8; margin-bottom: 20px; }
11-
h1 { color: #0c5460; margin-bottom: 20px; }
12-
p { color: #6c757d; line-height: 1.6; margin-bottom: 20px; }
13-
.info-code { background-color: #d1ecf1; color: #0c5460; padding: 10px; border-radius: 4px; font-family: monospace; }
14-
.status-info { background-color: #fff3cd; color: #856404; padding: 15px; border-radius: 4px; margin-top: 20px; }
8+
body {{ font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f8f9fa; }}
9+
.container {{ max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }}
10+
.info-icon {{ font-size: 48px; color: #17a2b8; margin-bottom: 20px; }}
11+
h1 {{ color: #0c5460; margin-bottom: 20px; }}
12+
p {{ color: #6c757d; line-height: 1.6; margin-bottom: 20px; }}
13+
.info-code {{ background-color: #d1ecf1; color: #0c5460; padding: 10px; border-radius: 4px; font-family: monospace; }}
14+
.status-info {{ background-color: #fff3cd; color: #856404; padding: 15px; border-radius: 4px; margin-top: 20px; }}
1515
</style>
1616
</head>
1717
<body>

src/main/presentation/templates/certificate_uuid_invalid.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<style>
8-
body { font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f8f9fa; }
9-
.container { max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
10-
.error-icon { font-size: 48px; color: #dc3545; margin-bottom: 20px; }
11-
h1 { color: #dc3545; margin-bottom: 20px; }
12-
p { color: #6c757d; line-height: 1.6; margin-bottom: 20px; }
13-
.error-code { background-color: #f8d7da; color: #721c24; padding: 10px; border-radius: 4px; font-family: monospace; }
8+
body {{ font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f8f9fa; }}
9+
.container {{ max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }}
10+
.error-icon {{ font-size: 48px; color: #dc3545; margin-bottom: 20px; }}
11+
h1 {{ color: #dc3545; margin-bottom: 20px; }}
12+
p {{ color: #6c757d; line-height: 1.6; margin-bottom: 20px; }}
13+
.error-code {{ background-color: #f8d7da; color: #721c24; padding: 10px; border-radius: 4px; font-family: monospace; }}
1414
</style>
1515
</head>
1616
<body>

src/main/presentation/templates/server_error.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<style>
8-
body { font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f8f9fa; }
9-
.container { max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
10-
.error-icon { font-size: 48px; color: #dc3545; margin-bottom: 20px; }
11-
h1 { color: #dc3545; margin-bottom: 20px; }
12-
p { color: #6c757d; line-height: 1.6; margin-bottom: 20px; }
13-
.error-code { background-color: #f8d7da; color: #721c24; padding: 10px; border-radius: 4px; font-family: monospace; }
14-
.retry-info { background-color: #e7f3ff; color: #0c5460; padding: 15px; border-radius: 4px; margin-top: 20px; }
8+
body {{ font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f8f9fa; }}
9+
.container {{ max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }}
10+
.error-icon {{ font-size: 48px; color: #dc3545; margin-bottom: 20px; }}
11+
h1 {{ color: #dc3545; margin-bottom: 20px; }}
12+
p {{ color: #6c757d; line-height: 1.6; margin-bottom: 20px; }}
13+
.error-code {{ background-color: #f8d7da; color: #721c24; padding: 10px; border-radius: 4px; font-family: monospace; }}
14+
.retry-info {{ background-color: #e7f3ff; color: #0c5460; padding: 15px; border-radius: 4px; margin-top: 20px; }}
1515
</style>
1616
</head>
1717
<body>

0 commit comments

Comments
 (0)