Improve appearance of the project index
This commit is contained in:
parent
ff2183087d
commit
ab84332b23
|
@ -1,11 +1,10 @@
|
||||||
{{ template "base.html" . }}
|
{{ template "base.html" . }}
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
<div class="content-block no-bg-image">
|
<div>
|
||||||
{{ with .CarouselProjects }}
|
{{ with .CarouselProjects }}
|
||||||
<div class="carousel-container mw-100 mv2 mv3-ns margin-center">
|
<div class="carousel-container mw-100 mv2 mv3-ns margin-center dn db-ns">
|
||||||
<div class="carousel pa3 h5 overflow-hidden bg--dim br2-ns">
|
<div class="carousel pa3 h5 overflow-hidden bg--dim br2-ns">
|
||||||
<div class="dn db-l"> <!-- desktop carousel -->
|
|
||||||
{{ range $index, $project := . }}
|
{{ range $index, $project := . }}
|
||||||
<div class="carousel-item flex pa3 w-100 h-100 bg--dim items-center {{ if eq $index 0 }}active{{ end }}">
|
<div class="carousel-item flex pa3 w-100 h-100 bg--dim items-center {{ if eq $index 0 }}active{{ end }}">
|
||||||
<div class="flex-grow-1 pr3 relative flex flex-column h-100 justify-center">
|
<div class="flex-grow-1 pr3 relative flex flex-column h-100 justify-center">
|
||||||
|
@ -25,14 +24,6 @@
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="db dn-l"> <!-- mobile/tablet carousel -->
|
|
||||||
{{ range $index, $project := . }}
|
|
||||||
<div class="carousel-item-small {{ if eq $index 0 }}active{{ end }}">
|
|
||||||
{{ template "project_card.html" projectcarddata $project "h-100" }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="flex justify-center pv2">
|
<div class="flex justify-center pv2">
|
||||||
{{ range $index, $project := . }}
|
{{ range $index, $project := . }}
|
||||||
<div
|
<div
|
||||||
|
@ -58,7 +49,7 @@
|
||||||
<div class="projectlist ph3">
|
<div class="projectlist ph3">
|
||||||
{{ range .Projects }}
|
{{ range .Projects }}
|
||||||
<div class="mv3">
|
<div class="mv3">
|
||||||
{{ template "project_card.html" projectcarddata . ""}}
|
{{ template "project_card.html" projectcarddata . "" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -73,7 +64,9 @@
|
||||||
<h2>Personal Projects</h2>
|
<h2>Personal Projects</h2>
|
||||||
<p>Many community members have projects of their own that are currently works in progress. Here's a few:</p>
|
<p>Many community members have projects of their own that are currently works in progress. Here's a few:</p>
|
||||||
{{ range .PersonalProjects }}
|
{{ range .PersonalProjects }}
|
||||||
<div><a href="{{ .Url }}">{{ .Name }}</a></div>
|
<div class="mv3">
|
||||||
|
{{ template "project_card.html" projectcarddata . "" }}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue