2024-10-16 14:05:49 -03:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2024-10-16 22:02:08 -03:00
|
|
|
<title>abyss paste</title>
|
2024-10-16 14:05:49 -03:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2024-10-16 22:02:08 -03:00
|
|
|
background-color: #1d1f21;
|
|
|
|
color: #c5c6c7;
|
2024-10-16 14:05:49 -03:00
|
|
|
font-family: "Arial", sans-serif;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
|
2024-10-16 22:17:17 -03:00
|
|
|
header,
|
|
|
|
footer {
|
2024-10-16 14:05:49 -03:00
|
|
|
background-color: #2e2e2e;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 1rem;
|
|
|
|
font-weight: bold;
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: 10;
|
2024-10-16 14:08:28 -03:00
|
|
|
padding: 10px;
|
2024-10-16 14:05:49 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
img,
|
|
|
|
video,
|
|
|
|
embed,
|
|
|
|
iframe {
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
border-radius: 8px;
|
|
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
|
|
}
|
|
|
|
|
|
|
|
video {
|
|
|
|
background-color: #000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pdf-embed {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2024-10-16 22:02:08 -03:00
|
|
|
pre {
|
|
|
|
white-space: pre;
|
|
|
|
font-family: monospace;
|
2024-10-16 14:05:49 -03:00
|
|
|
font-size: 1rem;
|
2024-10-16 22:02:08 -03:00
|
|
|
background-color: #2e2e2e;
|
|
|
|
padding: 20px;
|
|
|
|
border-radius: 8px;
|
|
|
|
overflow: auto;
|
|
|
|
scrollbar-width: thin;
|
|
|
|
scrollbar-color: #686868 #2e2e2e;
|
2024-10-16 14:05:49 -03:00
|
|
|
}
|
|
|
|
|
2024-10-16 22:02:08 -03:00
|
|
|
pre::-webkit-scrollbar {
|
|
|
|
width: 12px;
|
2024-10-16 14:05:49 -03:00
|
|
|
}
|
|
|
|
|
2024-10-16 22:02:08 -03:00
|
|
|
pre::-webkit-scrollbar-track {
|
|
|
|
background: #2e2e2e;
|
|
|
|
border-radius: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre::-webkit-scrollbar-thumb {
|
|
|
|
background-color: #686868;
|
|
|
|
border-radius: 10px;
|
|
|
|
border: 3px solid #2e2e2e;
|
2024-10-16 14:05:49 -03:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2024-10-16 21:38:20 -03:00
|
|
|
<header>{{.Path}}</header>
|
2024-10-16 14:05:49 -03:00
|
|
|
<div class="content">
|
2024-10-16 22:02:08 -03:00
|
|
|
{{if eq .Type "text"}}
|
|
|
|
<pre>{{.Content}}</pre>
|
|
|
|
{{else if eq .Type "image"}}
|
2024-10-16 21:38:20 -03:00
|
|
|
<img src="{{.Name}}" alt="Image" />
|
2024-10-16 14:05:49 -03:00
|
|
|
{{else if eq .Type "pdf"}}
|
2024-10-16 21:38:20 -03:00
|
|
|
<embed src="{{.Name}}" type="application/pdf" class="pdf-embed" />
|
2024-10-16 14:05:49 -03:00
|
|
|
{{else if eq .Type "video"}}
|
|
|
|
<video controls>
|
2024-10-16 21:38:20 -03:00
|
|
|
<source src="{{.Name}}" type="video/mp4" />
|
2024-10-16 14:05:49 -03:00
|
|
|
Your browser does not support the video tag.
|
|
|
|
</video>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2024-10-16 22:17:17 -03:00
|
|
|
<footer>file uploaded in {{.TimeUploaded}}</footer>
|
2024-10-16 14:05:49 -03:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|