File tree Expand file tree Collapse file tree 3 files changed +56
-3
lines changed
app/views/partials/components Expand file tree Collapse file tree 3 files changed +56
-3
lines changed Original file line number Diff line number Diff line change 55FROM alpine AS build
66# Add your files here
77COPY . /assets/
8- ARG REDBEAN_URL='https://redbean.dev/ redbean-3.0.0.com '
9- ADD --chmod=777 https://cosmo.zip/pub/cosmos/bin/assimilate-aarch64 .elf /assimilate
8+ ARG REDBEAN_URL='https://cosmo.zip/pub/cosmos/bin/ redbean'
9+ ADD --chmod=777 https://cosmo.zip/pub/cosmos/bin/assimilate-x86_64 .elf /assimilate
1010RUN apk add zip \
1111 && wget -O /redbean.com ${REDBEAN_URL} \
1212 && cd /assets \
1313 && zip -r -X /redbean.com * \
1414 && /assimilate /redbean.com
1515
16-
1716FROM scratch
1817WORKDIR /
1918COPY --from=build --chmod=777 /redbean.com /
Original file line number Diff line number Diff line change 1+ <div class="flex item-center col-span-12">
2+
3+ <div class="flex items-center gap-2">
4+ <% for i, item in pairs(component.items) do %>
5+ <a href="<%= item.url %>" class="text-blue-500 hover:text-blue-700"><%= item.label %></a>
6+ <% if i < #component.items then %>
7+ <span class="text-gray-500">></span>
8+ <% end %>
9+ <% end %>
10+ </div>
11+ </div>
Original file line number Diff line number Diff line change 1+ <% component.items = component.items or {} %>
2+ <div class="col-span-12">
3+ <div class="border-t border-x border-gray-300 rounded-t-md p-4">
4+ <div class="flex items-center gap-2 align-middle">
5+ <div class="material-icons-outlined md-48">
6+ paid
7+ </div>
8+ <div class="flex flex-col">
9+ <div class=" text-gray-500 text-2xl">
10+ <%= component.title %>
11+ </div>
12+ <div class=" text-gray-500 text-sm">
13+ <%= component.comment %>
14+ </div>
15+ </div>
16+ </div>
17+ </div>
18+
19+ <div class="border border-gray-300 rounded-b-md p-4">
20+ <div class="grid grid-cols-<%= #component.items %> gap-4">
21+ <% for i, item in ipairs(component.items) do %>
22+ <div class="flex flex-col">
23+ <div class=" text-gray-500 text-lg uppercase">
24+ <%= item.title %>
25+ </div>
26+ <div class="flex">
27+ <div class="text-xl flex items-center gap-2 <% if item.color then %> text-<%= item.color %>-600 bg-<%= item.color %>-200 rounded-md px-4 py-1<% end %>">
28+ <% if item.icon then %>
29+ <div class="material-icons-outlined">
30+ <%= item.icon %>
31+ </div>
32+ <% end %>
33+ <%= item.value %>
34+ </div>
35+ </div>
36+ <div class=" text-gray-500 text-sm">
37+ <%= item.comment %>
38+ </div>
39+ </div>
40+ <% end %>
41+ </div>
42+ </div>
43+ </div>
You can’t perform that action at this time.
0 commit comments