Skip to content

Commit 897e65a

Browse files
committed
logo fix
1 parent 63cd569 commit 897e65a

File tree

4 files changed

+25
-23
lines changed

4 files changed

+25
-23
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="modelfox.svg" title="ModelFox">
2+
<img width="200px" src="modelfox.png" title="ModelFox">
33
</p>
44

55
<h1 align="center">

crates/app/ui/logo.rs

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use pinwheel::prelude::*;
1+
use pinwheel::prelude::{svg::linearGradient, *};
22

33
#[derive(builder, Default, new)]
44
#[new(default)]
@@ -12,35 +12,37 @@ pub struct Logo {
1212
impl Component for Logo {
1313
fn into_node(self) -> Node {
1414
svg()
15-
.class(self.class)
16-
.attribute("width", "100%")
17-
.attribute("height", "100%")
18-
.attribute("viewBox", "0 0 900 962")
15+
.attribute("width", "1000")
16+
.attribute("height","1000")
17+
.attribute("viewBox", "0 0 1000 1000")
1918
.attribute("fill", "none")
20-
.attribute("xmlns","http://www.w3.org/2000/svg")
19+
.attribute("xmlns", "http://www.w3.org/2000/svg")
2120
.child(
2221
svg::path()
23-
.attribute("d", "M860 620L449.277 930L40 622M860 620V33L539.196 326L860 620ZM40 622V30L363.803 327L40 622Z").attribute("stroke", "url(#paint0_linear_2_4)")
24-
.attribute("stroke-width", "80")
25-
.attribute("stroke-linejoin", "bevel")
22+
.attribute("d", "M960 620L500 950L40 620M960 620V80L600 320L960 620ZM40 620V80L400 320L40 620Z")
23+
.attribute("stroke", "url(#paint0_linear_33_10)")
24+
.attribute("stroke-width","80")
2625
)
2726
.child(
2827
svg::defs()
2928
.child(
30-
svg::linearGradient()
31-
.attribute("id", "paint0_linear_2_4")
32-
.attribute("x1", "450")
33-
.attribute("y1", "30")
34-
.attribute("x2", "449.75")
35-
.attribute("y2", "1069.5")
29+
linearGradient()
30+
.attribute("id", "paint0_linear_33_10")
31+
.attribute("x1", "500")
32+
.attribute("y1", "19")
33+
.attribute("x2", "500")
34+
.attribute("y2", "1019")
3635
.attribute("gradientUnits", "userSpaceOnUse")
3736
.child(
38-
svg::stop().attribute("stop-color", "#0A84FF")
39-
).child(
40-
svg::stop().attribute("offset", "1").attribute("stop-color", "#4DD0E1")
37+
svg::stop()
38+
.attribute("stop-color","#0A84FF")
39+
)
40+
.child(
41+
svg::stop()
42+
.attribute("offset", "1")
43+
.attribute("stop-color", "#4DD0E1"))
4144
)
4245
)
43-
)
4446
.into_node()
4547
}
4648
}

modelfox.png

315 KB
Loading

modelfox.svg

Lines changed: 3 additions & 3 deletions
Loading

0 commit comments

Comments
 (0)