Skip to content

Commit 33e21a4

Browse files
committed
fix: enhance response template styling and structure for improved readability and mobile responsiveness
1 parent 86a117f commit 33e21a4

File tree

1 file changed

+79
-10
lines changed

1 file changed

+79
-10
lines changed

Resources/responseTemplate.html

Lines changed: 79 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,88 @@
1313
-->
1414
<html>
1515
<head>
16-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
16+
<meta charset="UTF-8">
17+
<meta name="viewport" content="width=device-width, initial-scale=1">
1718
<title><!--#4DTEXT $1-->&nbsp;</title>
19+
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap" rel="stylesheet">
1820
<style>
19-
body { margin: 0px; padding: 0px; font: 90% "Lucida Grande", Lucida, Verdana, sans-serif; }
20-
div { padding: 20px; }
21-
div#title { background-color: #2c4b79; padding: 15px 15px 15px 20px; margin: 0px; }
22-
h2 { color: #fff; font-size: 1.3em; margin: 0; padding: 0; }
23-
p { padding: 0px; margin: 0px; }
21+
body {
22+
margin: 0;
23+
padding: 0;
24+
background: linear-gradient(135deg, #2c4b79 0%, #4e7ad2 100%);
25+
font-family: 'Roboto', Arial, sans-serif;
26+
min-height: 100vh;
27+
display: flex;
28+
align-items: center;
29+
justify-content: center;
30+
}
31+
.container {
32+
background: #fff;
33+
border-radius: 18px;
34+
box-shadow: 0 6px 32px rgba(44,75,121,0.13), 0 2px 8px rgba(44,75,121,0.10);
35+
max-width: 600px;
36+
width: 95%;
37+
padding: 40px 36px 28px 36px;
38+
box-sizing: border-box;
39+
text-align: center;
40+
animation: fadeIn 0.7s;
41+
}
42+
@keyframes fadeIn {
43+
from { opacity: 0; transform: translateY(30px);}
44+
to { opacity: 1; transform: translateY(0);}
45+
}
46+
#title {
47+
background: linear-gradient(90deg, #2c4b79 60%, #4e7ad2 100%);
48+
border-radius: 12px 12px 0 0;
49+
padding: 22px 0 14px 0;
50+
margin: -40px -36px 28px -36px;
51+
}
52+
h2 {
53+
color: #fff;
54+
font-size: 2em;
55+
margin: 0;
56+
letter-spacing: 0.5px;
57+
font-weight: 700;
58+
}
59+
#message p {
60+
color: #2c4b79;
61+
font-size: 1.18em;
62+
margin: 0 0 22px 0;
63+
font-weight: 500;
64+
}
65+
#details {
66+
background: #f4f6fa;
67+
border-radius: 8px;
68+
padding: 14px;
69+
margin-top: 14px;
70+
font-size: 1em;
71+
color: #4e7ad2;
72+
word-break: break-all;
73+
}
74+
#details code, #details p {
75+
background: none;
76+
color: inherit;
77+
padding: 0;
78+
margin: 0;
79+
font-family: 'Roboto Mono', monospace, monospace;
80+
}
81+
@media (max-width: 700px) {
82+
.container {
83+
padding: 18px 6px 12px 6px;
84+
max-width: 99vw;
85+
}
86+
#title {
87+
margin: -18px -6px 18px -6px;
88+
padding: 12px 0 8px 0;
89+
}
90+
}
2491
</style>
2592
</head>
2693
<body>
27-
<div id="title"><h2><!--#4DTEXT $1--></h2></div>
28-
<div id="message"><p><!--#4DHTML $2--></p></div>
29-
<div id="details"><code><p><!--#4DTEXT $3--></p></code></div>
94+
<div class="container">
95+
<div id="title"><h2><!--#4DTEXT $1--></h2></div>
96+
<div id="message"><p><!--#4DHTML $2--></p></div>
97+
<div id="details"><code><p><!--#4DTEXT $3--></p></code></div>
98+
</div>
3099
</body>
31-
</html>
100+
</html>

0 commit comments

Comments
 (0)