add landing page

pull/105/head
Alex Turchyn 2 years ago
parent 4094bb03b7
commit 0b4a2819dd

@ -1,7 +1,11 @@
# frozen_string_literal: true
class DashboardController < ApplicationController
skip_before_action :authenticate_user!, only: %i[index]
def index
return render 'pages/landing' unless signed_in?
@templates = current_account.templates.active
end
end

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" class="<%= local_assigns[:class] %>" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z" />
<path d="M5 10h3v3h-3z" />
<path d="M8 10h3v3h-3z" />
<path d="M11 10h3v3h-3z" />
<path d="M8 7h3v3h-3z" />
<path d="M11 7h3v3h-3z" />
<path d="M11 4h3v3h-3z" />
<path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />
<path d="M10 16l0 .01" />
</svg>

After

Width:  |  Height:  |  Size: 758 B

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" class="<%= local_assigns[:class] %>" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
</svg>

After

Width:  |  Height:  |  Size: 590 B

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" class="<%= local_assigns[:class] %>" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M13 9a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-10z" />
<path d="M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9" />
<path d="M16 9h2" />
</svg>

After

Width:  |  Height:  |  Size: 477 B

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" class="<%= local_assigns[:class] %>" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2" />
<path d="M20 12h-13l3 -3m0 6l-3 -3" />
</svg>

After

Width:  |  Height:  |  Size: 418 B

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" class="<%= local_assigns[:class] %>" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M11.46 20.846a12 12 0 0 1 -7.96 -14.846a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 -.09 7.06" />
<path d="M15 19l2 2l4 -4" />
</svg>

After

Width:  |  Height:  |  Size: 427 B

@ -0,0 +1,76 @@
<section class="flex items-center justify-center">
<div class="py-10 mx-auto max-w-7xl">
<div class="max-w-xl mx-auto">
<div class="text-center">
<div class="relative flex flex-col items-center">
<%= render 'shared/logo', width: "100", height: "100" %>
<h1 class="text-6xl font-bold mt-4 mb-8">
DocuSeal
</h1>
</div>
<p class="mb-16 text-lg text-center text-gray-500">
A self-hosted, web-based platform providing secure and efficient digital document signing and transaction management.
</p>
</div>
</div>
<div class="grid grid-cols-1 gap-12 md:gap-10 md:grid-cols-2">
<div class="card bg-base-300">
<div class="card-body">
<div class="text-center transition-all">
<div class="inline-block p-4 mb-6 -mt-16 bg-base-content rounded-full">
<%= svg_icon('brand_docker', class: 'w-10 h-10 text-base-100') %>
</div>
<h3 class="mb-4 text-2xl font-semibold">Easy to Install</h3>
<p class="text-base text-gray-500">
Simply initiate the process on your platform, deploy the solution via <a href="https://hub.docker.com/r/docuseal/docuseal" class="link link-neutral font-bold" target="_blank">Docker</a>,
or opt for its packaged version for ease of use.
</p>
</div>
</div>
</div>
<div class="card bg-base-300">
<div class="card-body">
<div class="text-center transition-all">
<div class="inline-block p-4 mb-6 -mt-16 bg-base-content rounded-full">
<%= svg_icon('devices', class: 'w-10 h-10 text-base-100') %>
</div>
<h3 class="mb-4 text-2xl font-semibold">Mobile Optimized</h3>
<p class="text-base text-gray-500">
This self-hosted solution is mobile-ready, designed to offer a seamless user experience on any device.
Manage documents with ease, right from your smartphone or tablet.
</p>
</div>
</div>
</div>
<div class="card bg-base-300">
<div class="card-body">
<div class="text-center transition-all">
<div class="inline-block p-4 mb-6 -mt-16 bg-base-content rounded-full">
<%= svg_icon('shield_check', class: 'w-10 h-10 text-base-100') %>
</div>
<h3 class="mb-4 text-2xl font-semibold">Secure</h3>
<p class="text-base text-gray-500">
With a focus on security, this solution integrates top-level encryption within your own hosting infrastructure.
Comprehensive tracking of every action assures a secure environment for all digital transactions.
</p>
</div>
</div>
</div>
<div class="card bg-base-300">
<div class="card-body">
<div class="text-center transition-all">
<div class="inline-block p-4 mb-6 -mt-16 bg-base-content rounded-full">
<%= svg_icon('brand_github', class: 'w-10 h-10 text-base-100') %>
</div>
<h3 class="mb-4 text-2xl font-semibold">Open Source</h3>
<p class="text-base text-gray-500">
Don't hesitate to fetch <a href="https://github.com/docusealhq" class="link link-neutral font-bold" target="_blank">github.com/docusealhq</a>.
We warmly invite you to participate and help us enhance this project.
There's no need to shy away from becoming a contributor!
</p>
</div>
</div>
</div>
</div>
</div>
</section>

@ -20,5 +20,12 @@
</ul>
</div>
</div>
<% else %>
<%= link_to new_user_session_path, class: 'font-medium text-lg' do %>
<span class="flex items-center justify-center space-x-1">
<%= svg_icon('login', class: 'w-6 h-6') %>
<span>Sign in</span>
</span>
<% end %>
<% end %>
</div>

Loading…
Cancel
Save