add nice statistics
This commit is contained in:
17
app/views/home/index.html.erb
Normal file
17
app/views/home/index.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<div style="display: flex; justify-content: flex-end; margin-bottom: 1.5em;">
|
||||
<%= link_to 'Statistics Dashboard', statistics_path, style: 'background: #0071e3; color: #fff; padding: 0.6em 1.5em; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 1.05em; box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: background 0.2s;'
|
||||
%>
|
||||
</div>
|
||||
|
||||
<h1>Hello, <%= @user.email %>!</h1>
|
||||
|
||||
<h2>Your Logins</h2>
|
||||
<ul>
|
||||
<% @logins.each do |login| %>
|
||||
<li>
|
||||
Platform: <%= login.platform %> | Last refreshed: <%= login.last_refresh_at || 'Never' %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<button disabled style="margin-top: 20px;">Add New Login (Coming Soon)</button>
|
||||
Reference in New Issue
Block a user