Update templates/error.html
Browse files- templates/error.html +41 -81
templates/error.html
CHANGED
|
@@ -3,8 +3,9 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>Error Generating
|
| 7 |
-
|
|
|
|
| 8 |
body {
|
| 9 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 10 |
margin: 0;
|
|
@@ -46,7 +47,7 @@
|
|
| 46 |
margin: 0;
|
| 47 |
font-size: 28px;
|
| 48 |
color: #2c3e50;
|
| 49 |
-
font-weight:
|
| 50 |
margin-bottom: 5px;
|
| 51 |
}
|
| 52 |
.header-right {
|
|
@@ -55,7 +56,7 @@
|
|
| 55 |
}
|
| 56 |
.generate-another-btn {
|
| 57 |
padding: 12px 20px;
|
| 58 |
-
background-color: #
|
| 59 |
color: white;
|
| 60 |
text-decoration: none;
|
| 61 |
border-radius: 6px;
|
|
@@ -64,7 +65,7 @@
|
|
| 64 |
transition: background-color 0.3s;
|
| 65 |
}
|
| 66 |
.generate-another-btn:hover {
|
| 67 |
-
background-color: #
|
| 68 |
text-decoration: none;
|
| 69 |
color: white;
|
| 70 |
}
|
|
@@ -85,7 +86,7 @@
|
|
| 85 |
font-weight: 500;
|
| 86 |
}
|
| 87 |
|
| 88 |
-
/* Content
|
| 89 |
.content-section {
|
| 90 |
background-color: #ffffff;
|
| 91 |
border-radius: 8px;
|
|
@@ -103,21 +104,13 @@
|
|
| 103 |
padding-bottom: 10px;
|
| 104 |
}
|
| 105 |
|
| 106 |
-
.content-section h3 {
|
| 107 |
-
color: #2c3e50;
|
| 108 |
-
margin-top: 0;
|
| 109 |
-
margin-bottom: 15px;
|
| 110 |
-
font-size: 18px;
|
| 111 |
-
}
|
| 112 |
-
|
| 113 |
.content-section p {
|
| 114 |
margin-bottom: 20px;
|
| 115 |
font-size: 16px;
|
| 116 |
line-height: 1.7;
|
| 117 |
color: #555;
|
| 118 |
}
|
| 119 |
-
|
| 120 |
-
/* Error styling */
|
| 121 |
.error-section {
|
| 122 |
background-color: #ffffff;
|
| 123 |
border-radius: 8px;
|
|
@@ -145,12 +138,11 @@
|
|
| 145 |
line-height: 1.7;
|
| 146 |
color: #555;
|
| 147 |
}
|
| 148 |
-
|
| 149 |
-
/* Button styling */
|
| 150 |
.button {
|
| 151 |
display: inline-block;
|
| 152 |
padding: 12px 20px;
|
| 153 |
-
background-color: #
|
| 154 |
color: white;
|
| 155 |
border: none;
|
| 156 |
border-radius: 6px;
|
|
@@ -163,15 +155,12 @@
|
|
| 163 |
}
|
| 164 |
|
| 165 |
.button:hover {
|
| 166 |
-
background-color: #
|
| 167 |
-
text-decoration: none;
|
| 168 |
-
color: white;
|
| 169 |
}
|
| 170 |
-
|
| 171 |
.github-button {
|
| 172 |
display: inline-block;
|
| 173 |
padding: 12px 20px;
|
| 174 |
-
background-color: #
|
| 175 |
color: white;
|
| 176 |
text-decoration: none;
|
| 177 |
border-radius: 6px;
|
|
@@ -179,23 +168,9 @@
|
|
| 179 |
transition: background-color 0.3s;
|
| 180 |
}
|
| 181 |
.github-button:hover {
|
| 182 |
-
background-color: #
|
| 183 |
-
text-decoration: none;
|
| 184 |
-
color: white;
|
| 185 |
-
}
|
| 186 |
-
|
| 187 |
-
a {
|
| 188 |
-
color: #3498db;
|
| 189 |
-
text-decoration: none;
|
| 190 |
-
transition: color 0.3s;
|
| 191 |
-
}
|
| 192 |
-
|
| 193 |
-
a:hover {
|
| 194 |
-
color: #2980b9;
|
| 195 |
-
text-decoration: underline;
|
| 196 |
}
|
| 197 |
-
|
| 198 |
-
/* Footer styling */
|
| 199 |
.footer {
|
| 200 |
text-align: center;
|
| 201 |
padding: 20px;
|
|
@@ -203,28 +178,23 @@
|
|
| 203 |
font-size: 14px;
|
| 204 |
margin-top: 30px;
|
| 205 |
}
|
| 206 |
-
|
| 207 |
/* Mobile responsiveness */
|
| 208 |
@media (max-width: 768px) {
|
| 209 |
.container {
|
| 210 |
padding: 0 15px;
|
| 211 |
}
|
| 212 |
-
|
| 213 |
.header {
|
| 214 |
flex-direction: column;
|
| 215 |
text-align: center;
|
| 216 |
padding: 15px;
|
| 217 |
}
|
| 218 |
-
|
| 219 |
.header-left {
|
| 220 |
margin-bottom: 15px;
|
| 221 |
}
|
| 222 |
-
|
| 223 |
.header img {
|
| 224 |
margin-bottom: 10px;
|
| 225 |
margin-right: 0;
|
| 226 |
}
|
| 227 |
-
|
| 228 |
.button, .generate-another-btn {
|
| 229 |
width: 100%;
|
| 230 |
text-align: center;
|
|
@@ -233,26 +203,29 @@
|
|
| 233 |
}
|
| 234 |
</style>
|
| 235 |
</head>
|
|
|
|
| 236 |
<body>
|
| 237 |
<div class="container">
|
| 238 |
-
|
|
|
|
| 239 |
<div class="header">
|
| 240 |
<div class="header-left">
|
| 241 |
-
|
| 242 |
-
|
|
|
|
| 243 |
</a>
|
| 244 |
<div class="header-content">
|
| 245 |
-
<h1>
|
| 246 |
</div>
|
| 247 |
</div>
|
| 248 |
<div class="header-right">
|
| 249 |
-
<a href="/" class="generate-another-btn">π Generate Another
|
| 250 |
</div>
|
| 251 |
</div>
|
| 252 |
|
| 253 |
-
<!-- Error
|
| 254 |
<div class="error-message">
|
| 255 |
-
<h2>β Error Generating
|
| 256 |
</div>
|
| 257 |
|
| 258 |
<!-- Try Again Button -->
|
|
@@ -260,57 +233,44 @@
|
|
| 260 |
<a href="/" class="button">π Try Again</a>
|
| 261 |
</div>
|
| 262 |
|
| 263 |
-
<!-- Error
|
| 264 |
<div class="error-section">
|
| 265 |
<h2>What Happened?</h2>
|
| 266 |
<div class="error-details">
|
| 267 |
<p>{{ error }}</p>
|
| 268 |
</div>
|
| 269 |
</div>
|
| 270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
<!-- Support Section -->
|
| 272 |
<div class="content-section">
|
| 273 |
<h2>π οΈ Need Help?</h2>
|
| 274 |
-
<p>If this error persists or you believe it's a bug, please
|
| 275 |
-
<a href="https://github.com/aetheris-ai/aibom-generator/issues" target="_blank"
|
| 276 |
π Report Issue on GitHub
|
| 277 |
</a>
|
| 278 |
<p style="margin-top: 15px; font-size: 14px; color: #666;">
|
| 279 |
-
<strong>
|
| 280 |
</p>
|
| 281 |
</div>
|
| 282 |
|
| 283 |
-
<!--
|
| 284 |
-
<div class="content-section">
|
| 285 |
-
<h2>π‘ Common Solutions</h2>
|
| 286 |
-
<p><strong>Model not found:</strong> Verify the model ID format is correct (e.g., <code>owner/model-name</code>) and that the model exists on Hugging Face.</p>
|
| 287 |
-
<p><strong>Access issues:</strong> Some models may be private or require authentication. Try with a public model first.</p>
|
| 288 |
-
<p><strong>Temporary issues:</strong> If you're experiencing connectivity problems, please try again in a few moments.</p>
|
| 289 |
-
</div>
|
| 290 |
-
|
| 291 |
-
<!-- Social Section -->
|
| 292 |
<div class="content-section" style="text-align: center;">
|
| 293 |
-
<
|
| 294 |
-
<p>If you find this tool useful, share it with your network! <a href="https://sbom.aetheris.ai" target="_blank" rel="noopener noreferrer">https://sbom.aetheris.ai</a></p>
|
| 295 |
-
<a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fsbom.aetheris.ai" target="_blank" rel="noopener noreferrer" style="text-decoration: none;">
|
| 296 |
-
<button style="background-color: #0077b5; color: white; border: none; border-radius: 6px; padding: 12px 20px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color 0.3s;">π Share on LinkedIn</button>
|
| 297 |
-
</a>
|
| 298 |
-
<p style="margin-top: 10px; font-size: 14px;">
|
| 299 |
-
Follow us for updates:
|
| 300 |
-
<a href="https://www.linkedin.com/company/aetheris-ai" target="_blank" rel="noopener noreferrer">@Aetheris AI</a>
|
| 301 |
-
</p>
|
| 302 |
</div>
|
| 303 |
|
| 304 |
-
<!-- Info Section -->
|
| 305 |
-
<div class="content-section" style="text-align: center;">
|
| 306 |
-
<!-- Display the SBOM count -->
|
| 307 |
-
<div class="sbom-count">π Generated AI SBOMs using this tool: <strong>{{ sbom_count if sbom_count else 'N/A' }}</strong></div>
|
| 308 |
-
</div>
|
| 309 |
-
|
| 310 |
<!-- Footer -->
|
| 311 |
<div class="footer">
|
| 312 |
-
<p>Β© 2025
|
| 313 |
</div>
|
|
|
|
| 314 |
</div>
|
| 315 |
</body>
|
| 316 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Error Generating AIBOM</title>
|
| 7 |
+
|
| 8 |
+
<style>
|
| 9 |
body {
|
| 10 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 11 |
margin: 0;
|
|
|
|
| 47 |
margin: 0;
|
| 48 |
font-size: 28px;
|
| 49 |
color: #2c3e50;
|
| 50 |
+
font-weight: 650;
|
| 51 |
margin-bottom: 5px;
|
| 52 |
}
|
| 53 |
.header-right {
|
|
|
|
| 56 |
}
|
| 57 |
.generate-another-btn {
|
| 58 |
padding: 12px 20px;
|
| 59 |
+
background-color: #005ba1; /* OWASP blue */
|
| 60 |
color: white;
|
| 61 |
text-decoration: none;
|
| 62 |
border-radius: 6px;
|
|
|
|
| 65 |
transition: background-color 0.3s;
|
| 66 |
}
|
| 67 |
.generate-another-btn:hover {
|
| 68 |
+
background-color: #004478;
|
| 69 |
text-decoration: none;
|
| 70 |
color: white;
|
| 71 |
}
|
|
|
|
| 86 |
font-weight: 500;
|
| 87 |
}
|
| 88 |
|
| 89 |
+
/* Content sections */
|
| 90 |
.content-section {
|
| 91 |
background-color: #ffffff;
|
| 92 |
border-radius: 8px;
|
|
|
|
| 104 |
padding-bottom: 10px;
|
| 105 |
}
|
| 106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
.content-section p {
|
| 108 |
margin-bottom: 20px;
|
| 109 |
font-size: 16px;
|
| 110 |
line-height: 1.7;
|
| 111 |
color: #555;
|
| 112 |
}
|
| 113 |
+
/* Error details block */
|
|
|
|
| 114 |
.error-section {
|
| 115 |
background-color: #ffffff;
|
| 116 |
border-radius: 8px;
|
|
|
|
| 138 |
line-height: 1.7;
|
| 139 |
color: #555;
|
| 140 |
}
|
| 141 |
+
/* Buttons */
|
|
|
|
| 142 |
.button {
|
| 143 |
display: inline-block;
|
| 144 |
padding: 12px 20px;
|
| 145 |
+
background-color: #005ba1;
|
| 146 |
color: white;
|
| 147 |
border: none;
|
| 148 |
border-radius: 6px;
|
|
|
|
| 155 |
}
|
| 156 |
|
| 157 |
.button:hover {
|
| 158 |
+
background-color: #004478;
|
|
|
|
|
|
|
| 159 |
}
|
|
|
|
| 160 |
.github-button {
|
| 161 |
display: inline-block;
|
| 162 |
padding: 12px 20px;
|
| 163 |
+
background-color: #005ba1;
|
| 164 |
color: white;
|
| 165 |
text-decoration: none;
|
| 166 |
border-radius: 6px;
|
|
|
|
| 168 |
transition: background-color 0.3s;
|
| 169 |
}
|
| 170 |
.github-button:hover {
|
| 171 |
+
background-color: #004478;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
}
|
| 173 |
+
/* Footer */
|
|
|
|
| 174 |
.footer {
|
| 175 |
text-align: center;
|
| 176 |
padding: 20px;
|
|
|
|
| 178 |
font-size: 14px;
|
| 179 |
margin-top: 30px;
|
| 180 |
}
|
|
|
|
| 181 |
/* Mobile responsiveness */
|
| 182 |
@media (max-width: 768px) {
|
| 183 |
.container {
|
| 184 |
padding: 0 15px;
|
| 185 |
}
|
|
|
|
| 186 |
.header {
|
| 187 |
flex-direction: column;
|
| 188 |
text-align: center;
|
| 189 |
padding: 15px;
|
| 190 |
}
|
|
|
|
| 191 |
.header-left {
|
| 192 |
margin-bottom: 15px;
|
| 193 |
}
|
|
|
|
| 194 |
.header img {
|
| 195 |
margin-bottom: 10px;
|
| 196 |
margin-right: 0;
|
| 197 |
}
|
|
|
|
| 198 |
.button, .generate-another-btn {
|
| 199 |
width: 100%;
|
| 200 |
text-align: center;
|
|
|
|
| 203 |
}
|
| 204 |
</style>
|
| 205 |
</head>
|
| 206 |
+
|
| 207 |
<body>
|
| 208 |
<div class="container">
|
| 209 |
+
|
| 210 |
+
<!-- Header -->
|
| 211 |
<div class="header">
|
| 212 |
<div class="header-left">
|
| 213 |
+
<!-- Replace with actual OWASP GenAI Security Project logo URL when ready -->
|
| 214 |
+
<a href="https://genai.owasp.org" target="_blank">
|
| 215 |
+
<img src="https://owasp.org/assets/images/logo.png" alt="OWASP Logo">
|
| 216 |
</a>
|
| 217 |
<div class="header-content">
|
| 218 |
+
<h1>OWASP AIBOM Generator</h1>
|
| 219 |
</div>
|
| 220 |
</div>
|
| 221 |
<div class="header-right">
|
| 222 |
+
<a href="/" class="generate-another-btn">π Generate Another AIBOM</a>
|
| 223 |
</div>
|
| 224 |
</div>
|
| 225 |
|
| 226 |
+
<!-- Error message -->
|
| 227 |
<div class="error-message">
|
| 228 |
+
<h2>β Error Generating AIBOM</h2>
|
| 229 |
</div>
|
| 230 |
|
| 231 |
<!-- Try Again Button -->
|
|
|
|
| 233 |
<a href="/" class="button">π Try Again</a>
|
| 234 |
</div>
|
| 235 |
|
| 236 |
+
<!-- Error Details -->
|
| 237 |
<div class="error-section">
|
| 238 |
<h2>What Happened?</h2>
|
| 239 |
<div class="error-details">
|
| 240 |
<p>{{ error }}</p>
|
| 241 |
</div>
|
| 242 |
</div>
|
| 243 |
+
|
| 244 |
+
<!-- Common Solutions -->
|
| 245 |
+
<div class="content-section">
|
| 246 |
+
<h2>π‘ Common Solutions</h2>
|
| 247 |
+
<p><strong>Model not found:</strong> Check that the model ID follows <code>owner/model-name</code> format and exists on Hugging Face.</p>
|
| 248 |
+
<p><strong>Access issues:</strong> Some models require an access token or may be private.</p>
|
| 249 |
+
<p><strong>Temporary issues:</strong> Try again if there were connectivity or Hugging Face API hiccups.</p>
|
| 250 |
+
</div>
|
| 251 |
+
|
| 252 |
<!-- Support Section -->
|
| 253 |
<div class="content-section">
|
| 254 |
<h2>π οΈ Need Help?</h2>
|
| 255 |
+
<p>If this error persists or you believe it's a bug, please let us know:</p>
|
| 256 |
+
<a href="https://github.com/aetheris-ai/aibom-generator/issues" target="_blank" class="github-button">
|
| 257 |
π Report Issue on GitHub
|
| 258 |
</a>
|
| 259 |
<p style="margin-top: 15px; font-size: 14px; color: #666;">
|
| 260 |
+
<strong>Tip:</strong> Please include the error message above and the model ID you were trying to process.
|
| 261 |
</p>
|
| 262 |
</div>
|
| 263 |
|
| 264 |
+
<!-- SBOM Count -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
<div class="content-section" style="text-align: center;">
|
| 266 |
+
<div class="sbom-count">π Generated AIBOMs with this tool: <strong>{{ sbom_count if sbom_count else 'N/A' }}</strong></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
</div>
|
| 268 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 269 |
<!-- Footer -->
|
| 270 |
<div class="footer">
|
| 271 |
+
<p>Β© 2025 OWASP GenAI Security Project | OWASP AIBOM Generator</p>
|
| 272 |
</div>
|
| 273 |
+
|
| 274 |
</div>
|
| 275 |
</body>
|
| 276 |
</html>
|