mirror of
https://github.com/we-promise/sure.git
synced 2026-04-17 02:54:10 +00:00
* add initial pages for Bank Sync and Lunch Flow * update breadcrumbs on Lunch Flow page * update content for Lunch Flow page * add norefeerrer to Github link * update lunch flow url * nest lunch_flow resource under bank_sync * add a provider link partial * remove trailing whitespaces * update providers style to match merchants page * remove separate lunch flow page * fix hover on dark mode * point lunch flow to custom sure landing page * [i18n] Bank Sync label * [i18n] API Keys * [i18n] Self-Hosting consistency * Security breadcrum, not "securities" default --------- Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
<%# locals: (provider_link:) %>
|
|
|
|
<%# Assign distinct colors to each provider %>
|
|
<% provider_colors = {
|
|
"Lunch Flow" => "#6471eb",
|
|
"Plaid" => "#4da568",
|
|
"SimpleFin" => "#e99537"
|
|
} %>
|
|
<% provider_color = provider_colors[provider_link[:name]] || "#6B7280" %>
|
|
|
|
<%= link_to provider_link[:path],
|
|
target: provider_link[:target],
|
|
rel: provider_link[:rel],
|
|
class: "flex justify-between items-center p-4 bg-container hover:bg-container-hover transition-colors" do %>
|
|
<div class="flex w-full items-center gap-2.5">
|
|
<%= render partial: "shared/color_avatar", locals: { name: provider_link[:name], color: provider_color } %>
|
|
|
|
<div class="flex flex-col">
|
|
<p class="text-primary text-sm font-medium">
|
|
<%= provider_link[:name] %>
|
|
</p>
|
|
<p class="text-secondary text-xs">
|
|
<%= provider_link[:description] %>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="justify-self-end">
|
|
<%= icon("arrow-right", size: "sm", class: "text-secondary") %>
|
|
</div>
|
|
<% end %>
|
|
|
|
|