mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
* Add geist font * Design system css file * Add cursor ui/ux rules * Add shadows and shadow borders * Replace primitives with tokens for common text and backgrounds * Organize css * Update switch and checkbox class names * Add back global color variables
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
<% content_for :sidebar do %>
|
|
<%= render "settings/nav" %>
|
|
<% end %>
|
|
|
|
<div class="space-y-4">
|
|
<header class="flex justify-between items-center text-primary font-medium">
|
|
<h1 class="text-xl"><%= t(".accounts") %></h1>
|
|
<div class="flex items-center gap-5">
|
|
<div class="flex items-center gap-2">
|
|
<%= button_to sync_all_accounts_path,
|
|
disabled: Current.family.syncing?,
|
|
class: "btn btn--outline flex items-center gap-2",
|
|
title: t(".sync") do %>
|
|
<%= lucide_icon "refresh-cw", class: "w-5 h-5" %>
|
|
<span><%= t(".sync") %></span>
|
|
<% end %>
|
|
|
|
<%= link_to new_account_path(return_to: accounts_path),
|
|
data: { turbo_frame: "modal" },
|
|
class: "btn btn--primary flex items-center gap-1" do %>
|
|
<%= lucide_icon("plus", class: "w-5 h-5") %>
|
|
<p class="text-sm font-medium"><%= t(".new_account") %></p>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<% if @manual_accounts.empty? && @plaid_items.empty? %>
|
|
<%= render "empty" %>
|
|
<% else %>
|
|
<div class="space-y-2">
|
|
<% if @plaid_items.any? %>
|
|
<%= render @plaid_items.sort_by(&:created_at) %>
|
|
<% end %>
|
|
|
|
<% if @manual_accounts.any? %>
|
|
<%= render "accounts/index/manual_accounts", accounts: @manual_accounts %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= settings_nav_footer %>
|
|
</div>
|