feat: add icon

This commit is contained in:
neri 2023-07-10 22:33:17 +02:00
parent eaf28f78f0
commit bcf21b4c79
11 changed files with 168 additions and 8 deletions

2
Cargo.lock generated
View File

@ -491,7 +491,7 @@ dependencies = [
[[package]]
name = "datatrash"
version = "2.3.6"
version = "2.4.0"
dependencies = [
"actix-files",
"actix-governor",

View File

@ -1,6 +1,6 @@
[package]
name = "datatrash"
version = "2.3.6"
version = "2.4.0"
authors = ["neri"]
edition = "2021"

View File

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="20.040001mm"
height="32.470001mm"
viewBox="0 0 20.040001 32.470002"
version="1.1"
id="svg5"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="datatrash-favicon.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showgrid="false"
showguides="false"
inkscape:zoom="4"
inkscape:cx="6.875"
inkscape:cy="74.375"
inkscape:window-width="1661"
inkscape:window-height="1354"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
id="path27079"
style="fill:#ffffff;stroke:none;stroke-width:0"
d="M 0,3.4728255 19.692763,1.0182368e-8 20.04,1.9695374 0.34723656,5.4423629 Z" />
<path
id="path27076"
style="fill:#ffffff;stroke:none;stroke-width:0"
d="M 0.42165307,7.3209983 H 19.618346 V 9.3209188 H 0.42165307 Z" />
<path
id="path27073"
style="fill:#ffffff;stroke:none;stroke-width:0"
d="M 0.82158379,12.920776 H 19.218416 v 1.99992 H 0.82158379 Z" />
<path
id="path27070"
style="fill:#ffffff;stroke:none;stroke-width:0"
d="M 1.2215157,18.520553 H 18.818485 v 1.999921 H 1.2215157 Z" />
<path
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0;stroke-dasharray:none;paint-order:normal"
d="m 6.9813387,24.122065 a 4.999139,4.9998014 0 0 1 2.3095393,1.999798 h 9.129654 v -1.999798 z"
id="path27067" />
<path
id="path27064"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0;stroke-dasharray:none;paint-order:normal"
d="M 9.9160553,29.7184 A 4.999139,4.9998014 0 0 1 9.0170401,31.718199 H 18.017524 V 29.7184 Z" />
<path
id="path27061"
style="fill:#ffffff;stroke:none;stroke-width:0"
d="M 8.7702156,28.720149 A 3.7493543,3.749851 0 0 1 5.0208613,32.47 3.7493543,3.749851 0 0 1 1.271507,28.720149 3.7493543,3.749851 0 0 1 5.0208613,24.970298 3.7493543,3.749851 0 0 1 8.7702156,28.720149 Z" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

45
static/favicon.svg Normal file
View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="20.039999mm"
height="32.470001mm"
viewBox="0 0 20.039999 32.470002"
version="1.1"
id="svg5"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<g
id="layer1">
<path
id="path27079"
style="fill:#ffffff;stroke:none;stroke-width:0"
d="M 0,3.4728255 19.692763,1.0182368e-8 20.04,1.9695374 0.34723656,5.4423629 Z" />
<path
id="path27076"
style="fill:#ffffff;stroke:none;stroke-width:0"
d="M 0.42165307,7.3209983 H 19.618346 V 9.3209188 H 0.42165307 Z" />
<path
id="path27073"
style="fill:#ffffff;stroke:none;stroke-width:0"
d="M 0.82158379,12.920776 H 19.218416 v 1.99992 H 0.82158379 Z" />
<path
id="path27070"
style="fill:#ffffff;stroke:none;stroke-width:0"
d="M 1.2215157,18.520553 H 18.818485 v 1.999921 H 1.2215157 Z" />
<path
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0;stroke-dasharray:none;paint-order:normal"
d="m 6.9813387,24.122065 a 4.999139,4.9998014 0 0 1 2.3095393,1.999798 h 9.129654 v -1.999798 z"
id="path27067" />
<path
id="path27064"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0;stroke-dasharray:none;paint-order:normal"
d="M 9.9160553,29.7184 A 4.999139,4.9998014 0 0 1 9.0170401,31.718199 H 18.017524 V 29.7184 Z" />
<path
id="path27061"
style="fill:#ffffff;stroke:none;stroke-width:0"
d="M 8.7702156,28.720149 A 3.7493543,3.749851 0 0 1 5.0208613,32.47 3.7493543,3.749851 0 0 1 1.271507,28.720149 3.7493543,3.749851 0 0 1 5.0208613,24.970298 3.7493543,3.749851 0 0 1 8.7702156,28.720149 Z" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -43,6 +43,11 @@ h1 > a:visited {
color: var(--fg);
}
.icon {
height: 1.2em;
margin-left: 0.1em;
}
a {
color: cornflowerblue;
}
@ -114,7 +119,7 @@ h1 + textarea {
display: none;
}
input[type='checkbox'] {
input[type="checkbox"] {
margin-top: 0.5em;
margin-bottom: 1.5em;
}

View File

@ -6,10 +6,16 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Temporärer Dateiaustausch" />
<link href="/static/index.css" rel="stylesheet" />
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" />
<link
rel="icon"
type="image/vnd.microsoft.icon"
href="/static/favicon.ico"
/>
</head>
<body>
<main>
<h1>datatrash</h1>
<h1>datatrash<img src="/static/favicon.svg" class="icon" /></h1>
<form action="/upload" method="POST" enctype="multipart/form-data">
<label for="file-upload">datei{max_size_snippet}</label>
<br />

View File

@ -5,10 +5,18 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="/static/index.css" rel="stylesheet" />
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" />
<link
rel="icon"
type="image/vnd.microsoft.icon"
href="/static/favicon.ico"
/>
</head>
<body>
<main>
<h1><a href="/">datatrash</a></h1>
<h1>
<a href="/">datatrash<img src="/static/favicon.svg" class="icon" /></a>
</h1>
<textarea id="text" rows="20" cols="120" readonly>{text}</textarea>
<br />
<a class="main button" href="?dl">herunterladen</a>

View File

@ -5,10 +5,18 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="/static/index.css" rel="stylesheet" />
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" />
<link
rel="icon"
type="image/vnd.microsoft.icon"
href="/static/favicon.ico"
/>
</head>
<body>
<main>
<h1><a href="/">datatrash</a></h1>
<h1>
<a href="/">datatrash<img src="/static/favicon.svg" class="icon" /></a>
</h1>
<p>link: <a id="link" href="{link}">{link}</a></p>
<p>shortlink: <a id="shortlink" href="{shortlink}">{shortlink}</a></p>
<button id="copy" data-copy="#link" class="main button hidden">

View File

@ -5,10 +5,18 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="/static/index.css" rel="stylesheet" />
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" />
<link
rel="icon"
type="image/vnd.microsoft.icon"
href="/static/favicon.ico"
/>
</head>
<body>
<main>
<h1><a href="/">datatrash</a></h1>
<h1>
<a href="/">datatrash<img src="/static/favicon.svg" class="icon" /></a>
</h1>
<p>link: <a id="link" href="{link}">{link}</a></p>
<button id="copy" data-copy="#link" class="main button hidden">
link kopieren

View File

@ -5,10 +5,18 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="/static/index.css" rel="stylesheet" />
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" />
<link
rel="icon"
type="image/vnd.microsoft.icon"
href="/static/favicon.ico"
/>
</head>
<body>
<main>
<h1><a href="/">datatrash</a></h1>
<h1>
<a href="/">datatrash<img src="/static/favicon.svg" class="icon" /></a>
</h1>
<a
id="link"
class="large-link"