mirror of
https://github.com/plausible/analytics.git
synced 2024-12-21 08:31:29 +03:00
425975efec
* Adds New Dark Mode Assets * Moves triangle for dropdown to a reasonable position * Majority .eex dark implementation * Fixes Logo Positioning * Adds theme flag to user schema, uses it * Uses correct variables for theme applicator script * Minor missed theme changes/fallbacks * Individual Component Support + Theme Context * Sources Tab Support This was a pain to test D: * Partial Stats Sections Support * More of stats modules supported * Modal +table support * Improves some Flatpickr in light theme, supports dark theme * Fixes missed settings tab colors * Finishes Devices module support * Fixes bar graph colors * Better colorizes maps module * Undoes colorized bars (they looked bad, on second thought) * Fixes loading indicator * Finishes conversions module * Adds changelog entry The PR number could be wrong, will double check * Fixes missed header color * Fixes naming of migration and removes static alter * Does migration correctly As I said, my Elixir is pretty weak heh * Adds support for spike notifications setting * Improves contrast and visibility for email settings * Resolves @ukutaht's comments on #467 * Fixes missing dark style * Found one more missed dark element (shared links) * Formatting fixes
35 lines
2.2 KiB
Elixir
35 lines
2.2 KiB
Elixir
<div class="container pb-24" data-site-domain="<%= @site.domain %>">
|
|
<%= if @offer_email_report do %>
|
|
<div class="text-center bg-blue-200 text-blue-900 text-sm font-bold px-4 w-full rounded transition" style="top: 91px" role="alert">
|
|
<%= link("Click here to enable weekly email reports →", to: "/#{URI.encode_www_form(@site.domain)}/settings#email-reports", class: "py-2 block") %>
|
|
</div>
|
|
<% end %>
|
|
<div class="pt-6"></div>
|
|
<div id="stats-react-container" data-domain="<%= @site.domain %>" data-offset="<%= Timex.Timezone.total_offset(Timex.Timezone.get(@site.timezone)) %>" data-has-goals="<%= @has_goals %>" data-logged-in="<%= !!@conn.assigns[:current_user] %>" data-inserted-at="<%= @site.inserted_at %>"></div>
|
|
<div id="modal_root"></div>
|
|
<%= if !@conn.assigns[:current_user] && @conn.assigns[:demo] do %>
|
|
<div class="bg-gray-50 dark:bg-gray-850">
|
|
<div class="py-12 lg:py-16 lg:flex lg:items-center lg:justify-between">
|
|
<h2 class="text-3xl leading-9 font-extrabold tracking-tight text-gray-900 sm:text-4xl sm:leading-10 dark:text-gray-100">
|
|
Want these stats for your website?
|
|
<br />
|
|
<span class="text-indigo-600">Start your free trial today.</span>
|
|
</h2>
|
|
<div class="mt-8 flex lg:flex-shrink-0 lg:mt-0">
|
|
<div class="inline-flex rounded-md shadow">
|
|
<a href="/register" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base leading-6 font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-500 focus:outline-none focus:ring transition duration-150 ease-in-out">
|
|
Get started
|
|
</a>
|
|
</div>
|
|
<div class="ml-3 inline-flex rounded-md shadow">
|
|
<a href="/" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base leading-6 font-medium rounded-md text-indigo-600 dark:text-gray-100 bg-white dark:bg-gray-800 hover:text-indigo-500 dark:hover:text-indigo-500 focus:outline-none focus:ring transition duration-150 ease-in-out">
|
|
Learn more
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<script type="text/javascript" src="<%= Routes.static_path(@conn, "/js/dashboard.js") %>"></script>
|
|
</div>
|