Skip to content

Commit 9e592c4

Browse files
authored
Merge pull request open-neuromorphic#216 from neural-loop/contrib-profile
Profiles appear correctly on mobile
2 parents 78e6ad1 + 194c454 commit 9e592c4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

themes/hugoplate/layouts/partials/components/team-card.html

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-8 flex author">
2-
<div class="w-3/12 flex items-center">
1+
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-8 flex flex-col md:flex-row author">
2+
<div class="w-full md:w-3/12 flex justify-center md:justify-start items-center">
33
{{ $image := .image }}
44
{{ if $image }}
5-
{{ partial "image" (dict "Src" $image "Alt" .name "Class" "mx-auto mb-6 rounded" "Size" "240x") }}
5+
{{ partial "image" (dict "Src" $image "Alt" .name "Class" "mx-auto mb-4 md:mb-0 rounded" "Size" "240x") }}
66
{{ end }}
77
</div>
8-
<div class="w-9/12 pl-4">
8+
<div class="w-full md:w-9/12 md:pl-4 text-center md:text-left">
99
<h4 class="mb-3">
1010
{{ .name }}
1111
</h4>
1212
<div class="authorContent pb-4">
1313
{{ .description | markdownify }}
1414
</div>
15-
<ul class="social-icons">
15+
<ul class="social-icons flex justify-center md:justify-start">
1616
{{ range .social }}
17-
<li>
18-
<a href="{{ .link | safeURL }}" target="_blank" rel="noopener nofollow">
19-
<span class="sr-only">{{ .title }}</span>
20-
<i class="{{ .icon }}"></i>
21-
</a>
22-
</li>
17+
<li class="mx-2">
18+
<a href="{{ .link | safeURL }}" target="_blank" rel="noopener nofollow">
19+
<span class="sr-only">{{ .title }}</span>
20+
<i class="{{ .icon }}"></i>
21+
</a>
22+
</li>
2323
{{ end }}
2424
</ul>
2525
</div>

0 commit comments

Comments
 (0)