Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hschne committed Dec 13, 2023
1 parent 51a2f9a commit 9c23392
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 27 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

## TODOs:

- [ ] Fix deploy
- [ ] Improve how it works design
- [ ] Generate memorable URL
- [ ] Upload file via UI
- [ ] Show confirm dialog
Expand Down
Binary file removed app/assets/images/burn.png
Binary file not shown.
Binary file removed app/assets/images/download.png
Binary file not shown.
Binary file added app/assets/images/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/upload.png
Binary file not shown.
46 changes: 23 additions & 23 deletions app/views/application/home.html.erb
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<section class="">
<div class="mx-auto max-w-screen-xl py-32 lg:flex lg:h-screen lg:items-center">
<div class="mx-auto max-w-2xl text-center">
<h1 class="text-2xl font-extrabold sm:text-5xl">
Simple Data Sharing.
<section class="px-4">
<div class="mx-auto max-w-screen-xl py-32 lg:flex lg:gap-8 lg:items-center">
<div class="mx-auto max-w-md">
<h1 class="text-2xl font-extrabold sm:text-4xl">
Data Sharing.
<strong class="font-extrabold text-red-600 sm:block mt-2">
For Humans and Machines.
</strong>
</h1>

<p class="mt-4 sm:text-xl/relaxed">
<p class="mt-8 sm:text-xl/relaxed">
Upload data and receive a secure link. After access or a set expiry
date your data is destroyed forever. Made for humans and machines.
</p>

<div class="mt-8 flex flex-wrap justify-center gap-4">
<div class="mt-8 flex flex-wrap gap-4">
<a
class="
block w-full rounded bg-red-600 px-12 py-3 text-sm font-medium text-white shadow
Expand All @@ -36,18 +36,19 @@
</a>
</div>
</div>

<%= image_tag("hero.png", class: "w-full object-cover hidden lg:block") %>
</div>
</section>
<section id="how-it-works" class="container mx-auto max-w-screen-xl">
<section id="how-it-works" class="container mx-auto max-w-screen-xl p-4">

<p class="text-lg font-extrabold text-gray-300 sm:text-2xl mb-2 upcase">How It Works</p>
<p class="text-lg font-extrabold sm:text-2xl mb-2 upcase">How It Works</p>
<h2 class="text-3xl font-extrabold text-red-600 sm:text-5xl mb-8">Share data in 3 simple steps</h2>

<div class="grid grid-cols-1 gap-8 items-center justify-between md:grid-cols-2">
<div class="grid grid-cols-1 gap-8 items-center justify-between md:grid-cols-3">

<%= image_tag("upload.png", class: "w-full h-64 object-scale-down mb-4 rounded-lg") %>
<div class="bg-white p-6 rounded-lg shadow-md">
<p class="text-8xl font-extrabold text-gray-300 mb-4">01</p>
<p class="text-8xl font-extrabold text-red-600 mb-4 p-6">01</p>
<div class="bg-white col-span-2 p-6 rounded shadow">
<h3 class="text-3xl font-semibold text-red-600 mb-2">Drop your data</h3>
<p class="text-gray-700 mb-4">Drop some data in our
<%= link_to(
Expand Down Expand Up @@ -94,12 +95,12 @@
</code>
</div>

<%= image_tag(
"download.png",
class: "w-full h-64 object-scale-down mb-4 rounded-lg",
) %>
<div class="bg-white p-6 rounded-lg shadow-md md:col-start-1 md:row-start-2 ">
<p class="text-8xl font-extrabold text-gray-300 mb-4">02</p>
<p class="text-8xl font-extrabold text-red-500 p-6">02</p>
<div
class="
bg-white md:col-start-1 md:row-start-2 col-span-2 rounded shadow p-6
"
>
<h3 class="text-3xl font-semibold text-red-600 mb-2">Grab your data</h3>
<p class="text-gray-700 mb-4">Use your link to download your data, either via your browser or your
favorite command line client.</p>
Expand Down Expand Up @@ -140,9 +141,8 @@
</code>
</div>

<%= image_tag("burn.png", class: "w-full h-64 object-scale-down mb-4 rounded-lg") %>
<div class="bg-white p-6 rounded-lg shadow-md">
<p class="text-8xl font-extrabold text-gray-300 mb-4">03</p>
<p class="text-8xl font-extrabold text-red-500 p-6">03</p>
<div class="bg-white col-span-2 rounded shadow p-6">
<h3 class="text-3xl font-semibold text-red-600 mb-2">Incinerate!</h3>
<p class="text-gray-700 mb-4">After access, we destroy your data and keep no trace of it. If you
don't grab your data after a set amount of time it will also be
Expand All @@ -152,7 +152,7 @@
</div>
</section>

<section id="how-it-works" class="container mx-auto max-w-screen-xl py-32">
<section id="faq" class="container mx-auto max-w-screen-xl py-32 px-4">
<h2 class="text-3xl font-extrabold text-red-600 mb-8 sm:text-5xl">FAQ</h2>

<details class="group [&_summary::-webkit-details-marker]:hidden" open>
Expand Down
4 changes: 2 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<header class="bg-white">
<div
class="
mx-auto flex h-16 max-w-screen-xl items-center justify-between px-4 lg:px-8
mx-auto flex h-16 max-w-screen-xl items-center justify-between px-4
"
>
<a class=" flex flex-row gap-1 items-center text-red-600 " href="/">
Expand All @@ -43,7 +43,7 @@
</a>
</div>
</header>
<main class="px-4">
<main class="">
<%= content_for?(:drops) ? yield(:drops) : yield %>
</main>

Expand Down

0 comments on commit 9c23392

Please sign in to comment.