Commits: 1

Draw a logo

Thanks to Fana, Mark_Hilton and Astrusia for early feedback on https://forum.typst.app/t/erna-a-typst-library-to-scale-and-align-rows-of-images/8375?u=tad-lispy

new file mode 100644
index 0000000..332bb07
Binary files /dev/null and b/erna-logo.png differ
new file mode 100644
index 0000000..d09c058
--- /dev/null
+++ b/erna-logo.svg
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   width="32"
+   height="32"
+   viewBox="0 0 32 32"
+   version="1.1"
+   id="svg8"
+   inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
+   sodipodi:docname="erna-logo.svg"
+   inkscape:export-filename="erna-logo.png"
+   inkscape:export-xdpi="96"
+   inkscape:export-ydpi="96"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:dc="http://purl.org/dc/elements/1.1/">
+  <title
+     id="title1">Erna Logo</title>
+  <defs
+     id="defs2" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="15.839192"
+     inkscape:cx="9.2492092"
+     inkscape:cy="13.889597"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     inkscape:document-rotation="0"
+     showgrid="false"
+     units="px"
+     scale-x="1"
+     inkscape:showpageshadow="0"
+     inkscape:pagecheckerboard="1"
+     inkscape:deskcolor="#d1d1d1"
+     inkscape:window-width="1920"
+     inkscape:window-height="1011"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1">
+    <inkscape:grid
+       id="grid1"
+       units="px"
+       originx="16"
+       originy="16"
+       spacingx="1"
+       spacingy="1"
+       empcolor="#0099e5"
+       empopacity="0.30196078"
+       color="#0099e5"
+       opacity="0.14901961"
+       empspacing="5"
+       enabled="true"
+       visible="false" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata5">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>Tad Lispy</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:title>Erna Logo</dc:title>
+        <dc:date>2026-04-06</dc:date>
+        <dc:rights>
+          <cc:Agent>
+            <dc:title>All rights reserved</dc:title>
+          </cc:Agent>
+        </dc:rights>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <rect
+       style="opacity:1;fill:#eeefea;fill-opacity:1.0;fill-rule:evenodd;paint-order:markers stroke fill"
+       id="rect8"
+       width="32"
+       height="32"
+       x="0"
+       y="0" />
+    <rect
+       style="opacity:1;fill:#fdcc4e;fill-opacity:1;fill-rule:evenodd;paint-order:markers stroke fill"
+       id="rect7"
+       width="15"
+       height="15"
+       x="17"
+       y="17" />
+    <path
+       id="path4"
+       style="font-weight:bold;font-size:20px;line-height:1.25;font-family:'FiraCode Nerd Font';-inkscape-font-specification:'FiraCode Nerd Font, Bold';fill:#2f2f30;fill-opacity:1.0"
+       d="m 24.132812,19.353516 c -0.601708,0 -1.284969,0.06833 -2.050781,0.205078 -0.758973,0.136752 -1.491039,0.338802 -2.195312,0.605468 l 0.748047,2.154297 c 0.547008,-0.184615 1.095569,-0.324195 1.642578,-0.419922 0.547008,-0.102564 0.995031,-0.154296 1.34375,-0.154296 1.435898,0 2.152343,0.557345 2.152343,1.671875 v 0.410156 h -1.466796 c -1.682052,0 -2.988054,0.320156 -3.917969,0.962891 -0.923077,0.642735 -1.384766,1.555375 -1.384766,2.738281 0,1.005128 0.332846,1.829921 0.996094,2.472656 0.670085,0.635897 1.566132,0.953125 2.6875,0.953125 0.676923,0 1.338708,-0.118105 1.988281,-0.357422 0.649573,-0.246153 1.184468,-0.619994 1.601563,-1.11914 0.252991,0.451281 0.597549,0.789984 1.035157,1.015624 0.444444,0.218802 0.988124,0.358382 1.630859,0.419922 l 0.666016,-2.132812 c -0.252993,-0.09573 -0.436495,-0.235306 -0.552735,-0.419922 -0.109402,-0.184615 -0.164063,-0.48232 -0.164063,-0.892578 v -4.267578 c 0,-1.244445 -0.390435,-2.193199 -1.169922,-2.849609 -0.772649,-0.663247 -1.969331,-0.996093 -3.589844,-0.996094 z m 0.841797,6.318359 h 0.798828 v 1.763672 c -0.198291,0.382906 -0.488188,0.680612 -0.871093,0.892578 -0.382906,0.205128 -0.748938,0.308594 -1.097657,0.308594 -0.458119,0 -0.816341,-0.117131 -1.076171,-0.349609 -0.252992,-0.239316 -0.38086,-0.567282 -0.38086,-0.984375 0,-0.533333 0.212787,-0.937433 0.636719,-1.210938 0.423932,-0.280342 1.087671,-0.419922 1.990234,-0.419922 z" />
+    <rect
+       style="opacity:1;fill:#25476a;fill-opacity:1;fill-rule:evenodd;paint-order:markers stroke fill"
+       id="rect6"
+       width="15"
+       height="15"
+       x="17"
+       y="0" />
+    <rect
+       style="opacity:1;fill:#9fabcf;fill-opacity:1;fill-rule:evenodd;paint-order:markers stroke fill"
+       id="rect5"
+       width="15"
+       height="13"
+       x="0"
+       y="19" />
+    <path
+       style="font-weight:bold;font-size:20px;line-height:1.25;font-family:'FiraCode Nerd Font';-inkscape-font-specification:'FiraCode Nerd Font, Bold';fill:#2f2f30;fill-opacity:1.0;stroke-width:0.953805"
+       d="M 3,30.815216 V 20.426087 h 2.7 l 0.215218,1.203261 q 0.694564,-0.782609 1.467391,-1.16413 0.772826,-0.381522 1.760869,-0.381522 1.330434,0 2.093479,0.811956 Q 12,21.707609 12,23.184783 v 7.630433 H 8.908694 V 24.075 q 0,-0.958695 -0.215216,-1.330435 -0.205435,-0.381521 -0.782609,-0.381521 -0.48913,0 -0.93913,0.313043 -0.440218,0.313044 -0.880435,0.870653 v 7.268476 z"
+       id="path2" />
+    <path
+       style="font-weight:bold;font-size:20px;line-height:1.25;font-family:'FiraCode Nerd Font';-inkscape-font-specification:'FiraCode Nerd Font, Bold';fill:#eeefea;fill-opacity:1.0;stroke-width:0.918375"
+       d="M 19.681308,14.011031 V 12.014154 H 21 V 5.9858457 h -1.318692 v -1.978039 h 3.588728 l 0.546315,2.251197 q 0.536896,-1.290436 1.365789,-1.921525 0.838312,-0.631087 2.043973,-0.631087 0.508639,0 0.904248,0.08477 0.395607,0.07536 0.744118,0.216642 l -0.555735,4.182139 h -1.865008 v -1.846173 q -0.84773,0.150713 -1.488238,0.923089 -0.640508,0.762959 -0.98902,1.883848 v 2.8634453 h 1.978039 v 1.996878 z"
+       id="path1" />
+    <rect
+       style="opacity:1;fill:#ad2c34;fill-opacity:1;fill-rule:evenodd;paint-order:markers stroke fill"
+       id="rect4"
+       width="15"
+       height="17"
+       x="0"
+       y="0" />
+    <path
+       style="font-weight:bold;font-size:20px;line-height:1.25;font-family:'FiraCode Nerd Font';-inkscape-font-specification:'FiraCode Nerd Font, Bold';fill:#2f2f30;fill-opacity:1;stroke-width:0.998818"
+       d="M 6.3601259,4.1985815 V 7.609929 H 11.277385 V 9.9661142 H 6.3601259 V 13.592592 H 12.291569 V 16 H 3 V 1.8014185 h 9.281325 l -0.338061,2.397163 z"
+       id="text1" />
+  </g>
+</svg>
index da40a8e..14a0b71 100644
Binary files a/preview.pdf and b/preview.pdf differ
index 333a558..c2eaba9 100644
--- a/preview.typ
+++ b/preview.typ
@@ -12,7 +12,13 @@
=    eval(content.text, mode: "markup", scope: (image_row: image_row))
=}
=
-#title[Erna]
+#grid(
+    columns: 2,
+    align: left + horizon,
+    gutter: 12pt,
+    image(width: 42pt, height: 42pt, "./erna-logo.svg"),
+    title[Erna]
+)
=
=#v(1fr)
=