2025-06-22 22:09:21 -04:00

52 lines
1.3 KiB
Go

package backend
func GetFancyResponse(input, handle string) string {
var hasHandle string
if handle != "" {
hasHandle = `<a class="bottom-right" href="/report?handle=` + handle + `">Report Broken Link</a>`
}
return `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Decoded Binary</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color:rgb(19, 31, 49);
margin: 40px;
color: #333;
}
.fancy-box {
background-color: #000000;
border: 2px solid #4a90e2;
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
padding: 30px;
max-width: 600px;
margin: 0 auto;
}
.bottom-right {
position: absolute;
bottom: 10px;
right: 10px;
margin: 0;
}
p {
color: #ffffff;
font-size: 1.1em;
}
</style>
</head>
<body>
<div class="fancy-box">
` + input + `
` + hasHandle + `
</div>
</body>
</html>
`
}