1
- use pinwheel:: prelude:: * ;
1
+ use pinwheel:: prelude:: { svg :: linearGradient , * } ;
2
2
3
3
#[ derive( builder, Default , new) ]
4
4
#[ new( default ) ]
@@ -12,35 +12,37 @@ pub struct Logo {
12
12
impl Component for Logo {
13
13
fn into_node ( self ) -> Node {
14
14
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" )
19
18
. attribute ( "fill" , "none" )
20
- . attribute ( "xmlns" , "http://www.w3.org/2000/svg" )
19
+ . attribute ( "xmlns" , "http://www.w3.org/2000/svg" )
21
20
. child (
22
21
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 ")
26
25
)
27
26
. child (
28
27
svg:: defs ( )
29
28
. 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 " )
36
35
. attribute ( "gradientUnits" , "userSpaceOnUse" )
37
36
. 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" ) )
41
44
)
42
45
)
43
- )
44
46
. into_node ( )
45
47
}
46
48
}
0 commit comments