Skip to content

Commit a5de2a5

Browse files
author
Olivier Bonnaure
committed
feat: add 2 ne widgets
1 parent d2a5bf4 commit a5de2a5

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
FROM alpine AS build
66
# Add your files here
77
COPY . /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
1010
RUN 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-
1716
FROM scratch
1817
WORKDIR /
1918
COPY --from=build --chmod=777 /redbean.com /
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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">&gt;</span>
8+
<% end %>
9+
<% end %>
10+
</div>
11+
</div>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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>

0 commit comments

Comments
 (0)