feat: add website icon/project avatar
This commit is contained in:
parent
1b6835eddb
commit
b7c0b84274
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
/target/
|
/target/
|
||||||
|
|
||||||
|
/icon.png
|
||||||
|
3
build_icon.sh
Normal file
3
build_icon.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
inkscape -o icon.png -w 200 -h 200 -b white src/static/icon.svg
|
@ -43,6 +43,7 @@ fn main() -> Result<()> {
|
|||||||
r#static::js,
|
r#static::js,
|
||||||
r#static::checkmark,
|
r#static::checkmark,
|
||||||
r#static::cross,
|
r#static::cross,
|
||||||
|
r#static::icon,
|
||||||
r#static::hourglass,
|
r#static::hourglass,
|
||||||
api::update])
|
api::update])
|
||||||
.manage(config)
|
.manage(config)
|
||||||
|
@ -32,6 +32,11 @@ pub fn hourglass() -> Svg<&'static str> {
|
|||||||
Svg(include_str!("static/hourglass.svg"))
|
Svg(include_str!("static/hourglass.svg"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[get("/icon.svg")]
|
||||||
|
pub fn icon() -> Svg<&'static str> {
|
||||||
|
Svg(include_str!("static/icon.svg"))
|
||||||
|
}
|
||||||
|
|
||||||
#[get("/legal.html")]
|
#[get("/legal.html")]
|
||||||
pub fn legal() -> content::Html<&'static str> {
|
pub fn legal() -> content::Html<&'static str> {
|
||||||
content::Html(include_str!("static/legal.html"))
|
content::Html(include_str!("static/legal.html"))
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
<svg width="100"
|
|
||||||
height="100"
|
|
||||||
viewBox="-1 -1 2 2"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
||||||
<path stroke-width="0.2"
|
|
||||||
stroke="black"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
fill="none"
|
|
||||||
d="
|
|
||||||
M 0 -0.705
|
|
||||||
L 0.303 -0.705
|
|
||||||
L 0 0
|
|
||||||
L -0.303 0.705
|
|
||||||
L 0.303 0.705
|
|
||||||
L -0.303 -0.705
|
|
||||||
L 0 -0.705"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 458 B |
32
src/static/icon.svg
Normal file
32
src/static/icon.svg
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<svg width="100"
|
||||||
|
height="100"
|
||||||
|
viewBox="-1 -1 2 2"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<rect x="-1" y="-1" width="2" height="2" fill="white"/>
|
||||||
|
<path stroke-width="0.1"
|
||||||
|
stroke="black"
|
||||||
|
fill="none"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-linecap="round"
|
||||||
|
d="M -0.65 0
|
||||||
|
A 0.65 0.65 0 0 1 0.46 -0.46
|
||||||
|
|
||||||
|
M -0.85 -0.1
|
||||||
|
l 0.2 0.2
|
||||||
|
l 0.2 -0.2
|
||||||
|
|
||||||
|
M 0.65 0
|
||||||
|
A 0.65 0.65 0 0 1 -0.46 0.46
|
||||||
|
|
||||||
|
M 0.85 0.1
|
||||||
|
l -0.2 -0.2
|
||||||
|
l -0.2 0.2
|
||||||
|
|
||||||
|
M -0.1 -0.173
|
||||||
|
L 0.1 0.173
|
||||||
|
M 0.1 -0.173
|
||||||
|
L -0.1 0.173
|
||||||
|
M -0.2 0
|
||||||
|
L 0.2 0"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 776 B |
@ -4,6 +4,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>WebLDAPPasswd</title>
|
<title>WebLDAPPasswd</title>
|
||||||
<link rel="stylesheet" href="webldappasswd.css">
|
<link rel="stylesheet" href="webldappasswd.css">
|
||||||
|
<link rel="icon" type="image/svg+xml" href="icon.svg">
|
||||||
<script src="webldappasswd.js"></script>
|
<script src="webldappasswd.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
Reference in New Issue
Block a user