mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
Developer ready, zero config gains a bullet on forwarded ports, and its devcontainer.json bullet moves to a new Make it yours card (your own layers, your own features, --from, devcontainer.json), placed in the right column with feature's new column option. Feature cards' art fills the card. Co-Authored-By: Claude Opus 5.5 <[email protected]>
24 lines
1.1 KiB
HTML
24 lines
1.1 KiB
HTML
{{- /* The home page's feature cards: {{< features >}}, then {{< feature >}} shortcodes, then {{< /features >}}.
|
|
On wide screens, the cards go into two columns, the first, third and so on on the left and the rest on
|
|
the right unless a card names its column, each card as tall as its content; on narrow screens they
|
|
stack in the order written, which each card's order style keeps. {{< features columns="3" >}} is a grid of three cards in a row instead,
|
|
for short cards without art. */ -}}
|
|
{{- if eq (.Get "columns") "3" -}}
|
|
<div class="devvm-features devvm-features-3">{{ .Inner }}</div>
|
|
{{- else -}}
|
|
{{- $_ := .Inner -}}
|
|
{{- $cards := .Store.Get "cards" -}}
|
|
<div class="devvm-features devvm-bento">
|
|
{{- range $column := slice "left" "right" }}
|
|
<div class="devvm-bento-column">
|
|
{{- range $i, $card := $cards }}
|
|
{{- $in := $card.column | default (cond (eq (mod $i 2) 0) "left" "right") }}
|
|
{{- if eq $in $column }}
|
|
<div class="devvm-bento-card" style="order: {{ $i }}">{{ $card.html }}</div>
|
|
{{- end }}
|
|
{{- end }}
|
|
</div>
|
|
{{- end }}
|
|
</div>
|
|
{{- end -}}
|