2021-03-15 18:00:23 +03:00
|
|
|
<div class="<%= if !@conn.assigns[:embedded], do: "container", else: "max-w-screen-lg mx-auto" %>" data-site-domain="<%= @site.domain %>">
|
2019-09-10 18:51:34 +03:00
|
|
|
<%= if @offer_email_report do %>
|
2021-03-10 15:41:17 +03:00
|
|
|
<div class="w-full px-4 text-sm font-bold text-center text-blue-900 bg-blue-200 rounded transition" style="top: 91px" role="alert">
|
2021-01-19 16:40:01 +03:00
|
|
|
<%= link("Click here to enable weekly email reports →", to: "/#{URI.encode_www_form(@site.domain)}/settings/email-reports", class: "py-2 block") %>
|
2019-09-10 18:51:34 +03:00
|
|
|
</div>
|
2019-10-31 08:39:51 +03:00
|
|
|
<% end %>
|
2020-02-10 16:17:00 +03:00
|
|
|
<div class="pt-6"></div>
|
2021-03-16 11:40:25 +03:00
|
|
|
<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 %>" data-shared-link-auth="<%= assigns[:shared_link_auth] %>" data-embedded="<%= @conn.assigns[:embedded] %>" data-background="<%= @conn.assigns[:background] %>"></div>
|
2019-11-19 07:30:42 +03:00
|
|
|
<div id="modal_root"></div>
|
2020-04-02 15:50:42 +03:00
|
|
|
<%= if !@conn.assigns[:current_user] && @conn.assigns[:demo] do %>
|
2020-12-16 12:57:28 +03:00
|
|
|
<div class="bg-gray-50 dark:bg-gray-850">
|
2020-04-02 15:50:42 +03:00
|
|
|
<div class="py-12 lg:py-16 lg:flex lg:items-center lg:justify-between">
|
2021-03-10 15:41:17 +03:00
|
|
|
<h2 class="text-3xl font-extrabold tracking-tight text-gray-900 leading-9 sm:text-4xl sm:leading-10 dark:text-gray-100">
|
2020-04-02 15:50:42 +03:00
|
|
|
Want these stats for your website?
|
|
|
|
<br />
|
|
|
|
<span class="text-indigo-600">Start your free trial today.</span>
|
|
|
|
</h2>
|
2021-03-10 15:41:17 +03:00
|
|
|
<div class="flex mt-8 lg:flex-shrink-0 lg:mt-0">
|
|
|
|
<div class="inline-flex shadow rounded-md">
|
|
|
|
<a href="/register" class="inline-flex items-center justify-center px-5 py-3 text-base font-medium text-white bg-indigo-600 border border-transparent leading-6 rounded-md hover:bg-indigo-500 focus:outline-none focus:ring transition duration-150 ease-in-out">
|
2020-04-02 15:50:42 +03:00
|
|
|
Get started
|
|
|
|
</a>
|
|
|
|
</div>
|
2021-03-10 15:41:17 +03:00
|
|
|
<div class="inline-flex ml-3 shadow rounded-md">
|
|
|
|
<a href="/" class="inline-flex items-center justify-center px-5 py-3 text-base font-medium text-indigo-600 bg-white border border-transparent leading-6 rounded-md dark:text-gray-100 dark:bg-gray-800 hover:text-indigo-500 dark:hover:text-indigo-500 focus:outline-none focus:ring transition duration-150 ease-in-out">
|
2020-04-02 15:50:42 +03:00
|
|
|
Learn more
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2019-11-19 07:30:42 +03:00
|
|
|
<script type="text/javascript" src="<%= Routes.static_path(@conn, "/js/dashboard.js") %>"></script>
|
2019-09-02 14:29:19 +03:00
|
|
|
</div>
|