Spaces:
Running
Running
Update templates/error.html
Browse files- templates/error.html +149 -18
templates/error.html
CHANGED
@@ -2,64 +2,195 @@
|
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
|
|
5 |
<title>Error Generating AI SBOM</title>
|
6 |
<style>
|
7 |
-
body {
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
/* Header styling */
|
11 |
.header {
|
12 |
-
background-color: #
|
13 |
padding: 15px 20px;
|
14 |
border-bottom: 1px solid #e9ecef;
|
|
|
15 |
display: flex;
|
16 |
align-items: center;
|
17 |
-
margin-bottom:
|
18 |
}
|
19 |
.header img {
|
20 |
-
height:
|
21 |
margin-right: 15px;
|
22 |
}
|
23 |
.header h1 {
|
24 |
margin: 0;
|
25 |
-
font-size:
|
26 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
/* Error styling */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
.error-message {
|
31 |
background-color: #ffebee;
|
32 |
-
border-left: 4px solid #
|
33 |
padding: 15px;
|
34 |
border-radius: 4px;
|
35 |
margin: 20px 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
|
38 |
a {
|
39 |
color: #3498db;
|
40 |
text-decoration: none;
|
|
|
41 |
}
|
|
|
42 |
a:hover {
|
|
|
43 |
text-decoration: underline;
|
44 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
</style>
|
46 |
</head>
|
47 |
<body>
|
48 |
<!-- Header with logo and title -->
|
49 |
<div class="header">
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
</div>
|
57 |
|
58 |
<div class="container">
|
59 |
-
|
60 |
-
<
|
61 |
-
|
62 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
</div>
|
64 |
</div>
|
65 |
</body>
|
|
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Error Generating AI SBOM</title>
|
7 |
<style>
|
8 |
+
body {
|
9 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
10 |
+
margin: 0;
|
11 |
+
padding: 0;
|
12 |
+
line-height: 1.6;
|
13 |
+
color: #333;
|
14 |
+
background-color: #f9f9f9;
|
15 |
+
}
|
16 |
+
.container {
|
17 |
+
max-width: 1000px;
|
18 |
+
margin: 0 auto;
|
19 |
+
padding: 0 20px;
|
20 |
+
}
|
21 |
|
22 |
/* Header styling */
|
23 |
.header {
|
24 |
+
background-color: #ffffff;
|
25 |
padding: 15px 20px;
|
26 |
border-bottom: 1px solid #e9ecef;
|
27 |
+
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
|
28 |
display: flex;
|
29 |
align-items: center;
|
30 |
+
margin-bottom: 30px;
|
31 |
}
|
32 |
.header img {
|
33 |
+
height: 60px;
|
34 |
margin-right: 15px;
|
35 |
}
|
36 |
.header h1 {
|
37 |
margin: 0;
|
38 |
+
font-size: 28px;
|
39 |
+
color: #2c3e50;
|
40 |
+
font-weight: 600;
|
41 |
+
}
|
42 |
+
|
43 |
+
/* Content styling */
|
44 |
+
.content-section {
|
45 |
+
background-color: #ffffff;
|
46 |
+
border-radius: 8px;
|
47 |
+
padding: 25px;
|
48 |
+
margin-bottom: 30px;
|
49 |
+
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
50 |
+
}
|
51 |
+
|
52 |
+
.content-section h2 {
|
53 |
+
color: #2c3e50;
|
54 |
+
margin-top: 0;
|
55 |
+
margin-bottom: 20px;
|
56 |
+
font-size: 22px;
|
57 |
+
border-bottom: 2px solid #f0f0f0;
|
58 |
+
padding-bottom: 10px;
|
59 |
+
}
|
60 |
+
|
61 |
+
.content-section p {
|
62 |
+
margin-bottom: 20px;
|
63 |
+
font-size: 16px;
|
64 |
+
line-height: 1.7;
|
65 |
+
color: #555;
|
66 |
}
|
67 |
|
68 |
/* Error styling */
|
69 |
+
.error-section {
|
70 |
+
background-color: #ffffff;
|
71 |
+
border-radius: 8px;
|
72 |
+
padding: 25px;
|
73 |
+
margin-bottom: 30px;
|
74 |
+
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
75 |
+
}
|
76 |
+
|
77 |
+
.error-section h2 {
|
78 |
+
color: #e74c3c;
|
79 |
+
margin-top: 0;
|
80 |
+
margin-bottom: 20px;
|
81 |
+
font-size: 22px;
|
82 |
+
border-bottom: 2px solid #f0f0f0;
|
83 |
+
padding-bottom: 10px;
|
84 |
+
}
|
85 |
+
|
86 |
.error-message {
|
87 |
background-color: #ffebee;
|
88 |
+
border-left: 4px solid #e74c3c;
|
89 |
padding: 15px;
|
90 |
border-radius: 4px;
|
91 |
margin: 20px 0;
|
92 |
+
font-size: 16px;
|
93 |
+
line-height: 1.7;
|
94 |
+
color: #555;
|
95 |
+
}
|
96 |
+
|
97 |
+
/* Button styling */
|
98 |
+
.button {
|
99 |
+
display: inline-block;
|
100 |
+
padding: 12px 20px;
|
101 |
+
background-color: #3498db;
|
102 |
+
color: white;
|
103 |
+
border: none;
|
104 |
+
border-radius: 6px;
|
105 |
+
cursor: pointer;
|
106 |
+
font-size: 15px;
|
107 |
+
font-weight: 500;
|
108 |
+
text-decoration: none;
|
109 |
+
transition: background-color 0.3s;
|
110 |
+
margin-bottom: 20px;
|
111 |
+
}
|
112 |
+
|
113 |
+
.button:hover {
|
114 |
+
background-color: #2980b9;
|
115 |
+
text-decoration: none;
|
116 |
+
}
|
117 |
+
|
118 |
+
/* Support section styling */
|
119 |
+
.support-section {
|
120 |
+
background-color: #ffffff;
|
121 |
+
border-radius: 8px;
|
122 |
+
padding: 25px;
|
123 |
+
margin-bottom: 30px;
|
124 |
+
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
125 |
+
}
|
126 |
+
|
127 |
+
.support-section h2 {
|
128 |
+
color: #2c3e50;
|
129 |
+
margin-top: 0;
|
130 |
+
margin-bottom: 20px;
|
131 |
+
font-size: 22px;
|
132 |
+
border-bottom: 2px solid #f0f0f0;
|
133 |
+
padding-bottom: 10px;
|
134 |
+
}
|
135 |
+
|
136 |
+
.support-section p {
|
137 |
+
margin-bottom: 20px;
|
138 |
+
font-size: 16px;
|
139 |
+
line-height: 1.7;
|
140 |
+
color: #555;
|
141 |
}
|
142 |
|
143 |
a {
|
144 |
color: #3498db;
|
145 |
text-decoration: none;
|
146 |
+
transition: color 0.3s;
|
147 |
}
|
148 |
+
|
149 |
a:hover {
|
150 |
+
color: #2980b9;
|
151 |
text-decoration: underline;
|
152 |
}
|
153 |
+
|
154 |
+
/* Footer styling */
|
155 |
+
.footer {
|
156 |
+
text-align: center;
|
157 |
+
padding: 20px;
|
158 |
+
color: #7f8c8d;
|
159 |
+
font-size: 14px;
|
160 |
+
margin-top: 30px;
|
161 |
+
}
|
162 |
</style>
|
163 |
</head>
|
164 |
<body>
|
165 |
<!-- Header with logo and title -->
|
166 |
<div class="header">
|
167 |
+
<div style="display: flex; align-items: center; gap: 10px;">
|
168 |
+
<a href="https://aetheris.ai/" target="_blank">
|
169 |
+
<img src="https://huggingface.co/spaces/aetheris-ai/aibom-generator/resolve/main/templates/images/AetherisAI-logo.png" alt="Aetheris AI Logo">
|
170 |
+
</a>
|
171 |
+
<h1>AI SBOM Generator</h1>
|
172 |
+
</div>
|
173 |
</div>
|
174 |
|
175 |
<div class="container">
|
176 |
+
<!-- Error Section -->
|
177 |
+
<div class="error-section">
|
178 |
+
<h2>Error Generating AI SBOM</h2>
|
179 |
+
<div class="error-message">
|
180 |
+
<p>{{ error }}</p>
|
181 |
+
</div>
|
182 |
+
<a href="/" class="button">Try Again</a>
|
183 |
+
</div>
|
184 |
+
|
185 |
+
<!-- Support Section -->
|
186 |
+
<div class="support-section">
|
187 |
+
<h2>Need Help?</h2>
|
188 |
+
<p>If the error persists, please log an issue on our <a href="https://github.com/aetheris-ai/aibom-generator/issues" target="_blank" rel="noopener noreferrer">GitHub issues page</a>. Include the error message above and any additional details that might help us troubleshoot the problem.</p>
|
189 |
+
</div>
|
190 |
+
|
191 |
+
<!-- Footer -->
|
192 |
+
<div class="footer">
|
193 |
+
<p>© 2025 AI SBOM Generator | Powered by Aetheris AI</p>
|
194 |
</div>
|
195 |
</div>
|
196 |
</body>
|