Vykostěný a upravený "Team member" partial z roweb3

This commit is contained in:
Marek Nečada 2022-04-11 22:20:35 +03:00
parent 11ba1b48bb
commit b394396ba8
3 changed files with 233 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<div class="col-md-3 col-6">
<div class="user-card">
<img class="user-img" src="{{ .image }}" alt="" />
<a href="{{ .url }}" class="user-name">
{{ with .prefix }} {{ . }} {{ end }}
{{ .name }}{{ with .postfix }}, {{ . }} {{ end }}
</a>
{{ with .affiliation }}
<div class="user-role">
{{ . }}
</div>
{{ end }}
{{ if (ne .roles nil ) }}
{{ if and (ne (delimit .roles "") "advisor") (ne (delimit .roles "") "fellow") }}
<div class="user-position">
{{ delimit .roles " • " }}
</div>
{{ end }}
{{ end }}
{{ if eq .roles nil }}
{{ with .past_roles }}
<div class="user-position">
{{ delimit . " • " }}
</div>
{{ end }}
{{ end }}
<div class="user-social d-flex">
{{ with .email }}<a href="mailto:{{ . }}"><img src="/images/gnome-icon-hicontrast-scalable/actions/mail-mark-unread.svg" alt="" /></a>{{ end }}
<!-- {{ with .home }}<a href="{{ . }}"><img src="/images/gnome-icon-hicontrast-scalable/actions/go-home.svg" alt="" /></a>{{ end }} -->
<!-- {{ with .twitter }}<a href="https://twitter.com/{{ . }}"><img src="/images/users/twitter.svg" alt="" /></a>{{ end }} -->
<!-- {{ with .github }}<a href="https://github.com/{{ . }}"><img src="/images/users/github.svg" alt="" /></a>{{ end }} -->
</div>
</div>
</div>

View File

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 9.0, SVG Export Plug-In -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="48"
height="48"
viewBox="0 0 48 48"
xml:space="preserve"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.43"
sodipodi:docname="user-home.svg"
sodipodi:docbase="/home/luca/Artwork/blackwhite-icon-theme/scalable/places"
version="1.0"><metadata
id="metadata23"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title>Home Folder Icon</dc:title><dc:coverage /><dc:description>The user's $HOME directory</dc:description><cc:license
rdf:resource="http://creativecommons.org/licenses/LGPL/2.1/" /><dc:subject><rdf:Bag><rdf:li>folder</rdf:li><rdf:li>directory</rdf:li><rdf:li>home</rdf:li><rdf:li>user</rdf:li></rdf:Bag></dc:subject></cc:Work><cc:License
rdf:about="http://creativecommons.org/licenses/LGPL/2.1/"><cc:permits
rdf:resource="http://web.resource.org/cc/Reproduction" /><cc:permits
rdf:resource="http://web.resource.org/cc/Distribution" /><cc:requires
rdf:resource="http://web.resource.org/cc/Notice" /><cc:permits
rdf:resource="http://web.resource.org/cc/DerivativeWorks" /><cc:requires
rdf:resource="http://web.resource.org/cc/ShareAlike" /><cc:requires
rdf:resource="http://web.resource.org/cc/SourceCode" /></cc:License></rdf:RDF></metadata><defs
id="defs21" /><sodipodi:namedview
inkscape:window-height="947"
inkscape:window-width="1268"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
showgrid="true"
inkscape:grid-bbox="true"
inkscape:grid-points="true"
inkscape:zoom="15.895833"
inkscape:cx="24"
inkscape:cy="24"
inkscape:window-x="6"
inkscape:window-y="46"
inkscape:current-layer="svg2"
showguides="true"
inkscape:guide-bbox="true" />
<rect
style="fill:none;fill-opacity:0.5096525;stroke:none;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect1333"
width="48"
height="48"
x="0"
y="0"
rx="0.046648435"
ry="0" /><path
sodipodi:nodetypes="csscccccccccsccccccccc"
id="path2208"
d="M 5,22 C 5,22 4,22.6 4,23 C 4,23.2 3.9,23.8 4,24 C 4.3,24.6 5.3,25 6,25 C 6,25 6.9,25 8,25 C 8,27.4 8,39 8,39 C 8,40.1 9,41 10,41 L 38,41 C 39.1,41 40,40.1 40,39 C 40,39 40,27.4 40,25 C 41,25 42,25 42,25 C 42.8,25 43.7,24.7 44,24 C 44.1,23.8 44,23.2 44,23 C 44,22.5 43.5,22.4 43,22 C 43,22 39.9,19.7 39,19 C 39,17.8 39,10 39,10 C 39,8.8 38.2,8 37,8 L 31,8 C 30,8 29,9 29,10 C 27.1,8.4 25.4,6.7 25.4,6.7 C 25.4,6.7 23.7,6 22.8,6.7 L 5,22 z "
style="fill:#ffffff;fill-rule:evenodd;stroke:#ffffff;stroke-miterlimit:4;fill-opacity:1;stroke-opacity:1;stroke-width:8;stroke-dasharray:none" /><path
style="fill:#000000;fill-rule:evenodd;stroke:none;stroke-miterlimit:4"
d="M 5,22 C 5,22 4,22.6 4,23 C 4,23.2 3.9,23.8 4,24 C 4.3,24.6 5.3,25 6,25 C 6,25 6.9,25 8,25 C 8,27.4 8,39 8,39 C 8,40.1 9,41 10,41 L 38,41 C 39.1,41 40,40.1 40,39 C 40,39 40,27.4 40,25 C 41,25 42,25 42,25 C 42.8,25 43.7,24.7 44,24 C 44.1,23.8 44,23.2 44,23 C 44,22.5 43.5,22.4 43,22 C 43,22 39.9,19.7 39,19 C 39,17.8 39,10 39,10 C 39,8.8 38.2,8 37,8 L 31,8 C 30,8 29,9 29,10 C 27.1,8.4 25.4,6.7 25.4,6.7 L 25.5,6.8 C 24.8,6.1 23.7,6 22.8,6.7 L 5,22 z "
id="path9"
sodipodi:nodetypes="csscccccccccscccccccccc" /><path
style="fill:#ffffff;fill-rule:evenodd;stroke:none;stroke-miterlimit:4"
d="M 36,12 C 36,12 36,11 35,11 L 33,11 C 32,11 32,12 32,12 L 32,13.8 L 35.9,16.7 L 36,12 z "
id="path13"
sodipodi:nodetypes="ccccccc" /><path
style="fill:#ffffff;fill-rule:evenodd;stroke:none;stroke-miterlimit:4"
d="M 12,25 L 12,37 L 36,37 L 36,25 L 12,25 z "
id="path15"
sodipodi:nodetypes="ccccc" />
<g
id="crop_x0020_marks"
style="fill-rule:nonzero;stroke:#000000;stroke-miterlimit:4">
<path
style="fill:none;stroke:none"
d="M 48,48 L 0,48 L 0,0 L 48,0 L 48,48 z "
id="path18" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="48px"
height="48px"
id="svg1307"
sodipodi:version="0.32"
inkscape:version="0.44"
sodipodi:docbase="/home/luca/Artwork/blackwhite-icon-theme/scalable/actions"
sodipodi:docname="mail-mark-unread.svg">
<defs
id="defs1309" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="15.1875"
inkscape:cx="24"
inkscape:cy="24"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:grid-bbox="true"
inkscape:document-units="px"
inkscape:window-width="1270"
inkscape:window-height="944"
inkscape:window-x="0"
inkscape:window-y="26" />
<metadata
id="metadata1312">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>Email unread</dc:title>
<dc:creator>
<cc:Agent>
<dc:title>Luca Ferretti</dc:title>
</cc:Agent>
</dc:creator>
<dc:subject>
<rdf:Bag>
<rdf:li>unread email message</rdf:li>
</rdf:Bag>
</dc:subject>
<cc:license
rdf:resource="http://creativecommons.org/licenses/LGPL/2.1/" />
</cc:Work>
<cc:License
rdf:about="http://creativecommons.org/licenses/LGPL/2.1/">
<cc:permits
rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits
rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:requires
rdf:resource="http://web.resource.org/cc/Notice" />
<cc:permits
rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:requires
rdf:resource="http://web.resource.org/cc/ShareAlike" />
<cc:requires
rdf:resource="http://web.resource.org/cc/SourceCode" />
</cc:License>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<rect
ry="3.9649484"
rx="3.9631047"
y="9"
x="5"
height="30"
width="38"
id="rect4006"
style="fill:white;fill-opacity:1;fill-rule:evenodd;stroke:white;stroke-width:8;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
style="fill:black;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="rect2248"
width="38"
height="30"
x="5"
y="9"
rx="4.0291295"
ry="3.9649487" />
<rect
style="fill:white;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="rect3123"
width="30"
height="22"
x="9"
y="13"
rx="0"
ry="0" />
<path
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:black;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;"
d="M 8,13.174564 L 22,27 C 23.124807,28.198901 23.884336,28.18857 25.046312,27.033012 L 40.077307,12.820449"
id="path4000"
sodipodi:nodetypes="cccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB