Skip to content

Commit a75e3be

Browse files
committed
new images
1 parent 897e65a commit a75e3be

File tree

4 files changed

+34
-32
lines changed

4 files changed

+34
-32
lines changed

crates/app/ui/logo.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,37 @@ pub struct Logo {
1212
impl Component for Logo {
1313
fn into_node(self) -> Node {
1414
svg()
15-
.attribute("width", "1000")
16-
.attribute("height","1000")
15+
.class(self.class)
1716
.attribute("viewBox", "0 0 1000 1000")
1817
.attribute("fill", "none")
1918
.attribute("xmlns", "http://www.w3.org/2000/svg")
2019
.child(
2120
svg::path()
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")
21+
.attribute("fill-rule", "evenodd")
22+
.attribute("clip-rule", "evenodd")
23+
.attribute("d", "M0 0L466.762 313.062L105.322 616.089L500 900.946L894.678 616.089L533.238 313.062L1000 0V639.128L500 1000L0 639.128V0ZM920 532.551L666.762 320.238L920 150.388V532.551ZM80 532.551V150.388L333.238 320.238L80 532.551Z")
24+
.attribute("fill","url(#paint0_linear_33_10)")
2525
)
2626
.child(
27-
svg::defs()
28-
.child(
27+
svg::defs().child(
2928
linearGradient()
3029
.attribute("id", "paint0_linear_33_10")
3130
.attribute("x1", "500")
32-
.attribute("y1", "19")
31+
.attribute("y1", "13.8241")
3332
.attribute("x2", "500")
34-
.attribute("y2", "1019")
33+
.attribute("y2", "1019.89")
3534
.attribute("gradientUnits", "userSpaceOnUse")
3635
.child(
3736
svg::stop()
38-
.attribute("stop-color","#0A84FF")
37+
.attribute("stop-color", "#0A84FF")
3938
)
4039
.child(
4140
svg::stop()
4241
.attribute("offset", "1")
43-
.attribute("stop-color", "#4DD0E1"))
42+
.attribute("stop-color", "#4DD0E1")
4443
)
4544
)
45+
)
4646
.into_node()
4747
}
4848
}

crates/www/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)]
@@ -13,31 +13,33 @@ impl Component for Logo {
1313
fn into_node(self) -> Node {
1414
svg()
1515
.class(self.class)
16-
.attribute("width", "100%")
17-
.attribute("height", "100%")
18-
.attribute("viewBox", "0 0 900 962")
16+
.attribute("viewBox", "0 0 1000 1000")
1917
.attribute("fill", "none")
20-
.attribute("xmlns","http://www.w3.org/2000/svg")
18+
.attribute("xmlns", "http://www.w3.org/2000/svg")
2119
.child(
2220
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")
21+
.attribute("fill-rule", "evenodd")
22+
.attribute("clip-rule", "evenodd")
23+
.attribute("d", "M0 0L466.762 313.062L105.322 616.089L500 900.946L894.678 616.089L533.238 313.062L1000 0V639.128L500 1000L0 639.128V0ZM920 532.551L666.762 320.238L920 150.388V532.551ZM80 532.551V150.388L333.238 320.238L80 532.551Z")
24+
.attribute("fill","url(#paint0_linear_33_10)")
2625
)
2726
.child(
28-
svg::defs()
29-
.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")
27+
svg::defs().child(
28+
linearGradient()
29+
.attribute("id", "paint0_linear_33_10")
30+
.attribute("x1", "500")
31+
.attribute("y1", "13.8241")
32+
.attribute("x2", "500")
33+
.attribute("y2", "1019.89")
3634
.attribute("gradientUnits", "userSpaceOnUse")
3735
.child(
38-
svg::stop().attribute("stop-color", "#0A84FF")
39-
).child(
40-
svg::stop().attribute("offset", "1").attribute("stop-color", "#4DD0E1")
36+
svg::stop()
37+
.attribute("stop-color", "#0A84FF")
38+
)
39+
.child(
40+
svg::stop()
41+
.attribute("offset", "1")
42+
.attribute("stop-color", "#4DD0E1")
4143
)
4244
)
4345
)

modelfox.png

-322 KB
Loading

modelfox.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)