File tree 1 file changed +28
-0
lines changed 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE OverloadedStrings #-}
2
+
3
+ import Lucid.Svg
4
+
5
+ svg :: Element -> Element
6
+ svg content =
7
+ doctype
8
+ <> with (svg11_ content) [Version_ <<- " 1.1" , Width_ <<- " 482" , Height_ <<- " 340" ]
9
+
10
+ logo :: Element
11
+ logo =
12
+ path_ [ Fill_ <<- " #352950"
13
+ , D_ <<- ( mA 0 340 <> lA 113 170 <> lA 0 0 <> lA 85 0
14
+ <> lA 198 170 <> lA 85 340 <> lA 0 340 <> z <> mA 0 340 ) ]
15
+ <> path_ [ Fill_ <<- " #4A3A74"
16
+ , D_ <<- ( mA 113 340 <> lA 226 170 <> lA 113 0 <> lA 198 0
17
+ <> lA 425 340 <> lA 340 340 <> lA 269 234 <> lA 198 340
18
+ <> lA 113 340 <> z <> mA 113 340 ) ]
19
+ <> path_ [ Fill_ <<- " #7C3679"
20
+ , D_ <<- ( mA 387 241 <> lA 350 184 <> lA 482 184 <> lA 482 241
21
+ <> lA 387 241 <> z <> mA 387 241 ) ]
22
+ <> path_ [ Fill_ <<- " #7C3679"
23
+ , D_ <<- ( mA 331 156 <> lA 293 99 <> lA 482 99 <> lA 482 156
24
+ <> lA 331 156 <> z <> mA 331 156 ) ]
25
+
26
+ main :: IO ()
27
+ main = do
28
+ print $ svg logo
You can’t perform that action at this time.
0 commit comments