Improve opengraph compatibility.
This commit is contained in:
parent
4b685ad01e
commit
df5396cff8
7 changed files with 361 additions and 12 deletions
BIN
assets/music.jpg
Normal file
BIN
assets/music.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
26
assets/styles.css
Normal file
26
assets/styles.css
Normal file
|
@ -0,0 +1,26 @@
|
|||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
background: #0F2027;
|
||||
background: -webkit-linear-gradient(to bottom left, #2C5364, #203A43, #0F2027);
|
||||
background: linear-gradient(to bottom left, #2C5364, #203A43, #0F2027);
|
||||
|
||||
color: white;
|
||||
|
||||
font-family: 'Monsterrat', sans-serif;
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Make anchor tags look like buttons */
|
||||
a {
|
||||
display: inline-block;
|
||||
padding: 10px 20px;
|
||||
margin: 10px 0;
|
||||
background: #185c7a;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
border-radius: 5px;
|
||||
border: 2px solid white;
|
||||
}
|
18
assets/view.html
Normal file
18
assets/view.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Viewing {{filename}}</title>
|
||||
{{ogTags}}
|
||||
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Viewing {{filename}}</h1>
|
||||
<a download="{{filename}}" href="/f/{{joinedPath}}">Download File</a>
|
||||
<hr />
|
||||
{{fileContent}}
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue