-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(landing): added some sections (#4)
- Loading branch information
1 parent
6b4ad3e
commit e03e516
Showing
4 changed files
with
189 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
import { cn } from '../utils/cn'; | ||
type Props = { | ||
title: string; | ||
description: string; | ||
icon?: string; | ||
}; | ||
const { title, description, icon } = Astro.props; | ||
--- | ||
|
||
|
||
<div class="border rounded-xl bg-[linear-gradient(to_right,#80808008_1px,transparent_1px),linear-gradient(to_bottom,#80808008_1px,transparent_1px)] bg-[size:24px_24px] overflow-hidden"> | ||
<div class="z-50"> | ||
<slot></slot> | ||
</div> | ||
|
||
<div class="relative z-60 bg-gradient-to-t from-background via-background to-transparent p-6 pt-24 mt--24"> | ||
{icon && (<div class={cn('size-9 text-muted-foreground mb-4', icon)} />)} | ||
<h3 class="text-xl font-bold text-pretty">{title}</h3> | ||
|
||
<p class="text-muted-foreground text-base mt-2 leading-tight"> | ||
{description} | ||
</p> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
--- | ||
import { cn } from '../utils/cn'; | ||
import BentoCard from './BentoCard.astro'; | ||
const filesIcons = [ | ||
'i-tabler-file', | ||
'i-tabler-file-text', | ||
'i-tabler-file-code', | ||
'i-tabler-file-code-2', | ||
'i-tabler-file-invoice', | ||
'i-tabler-file-euro', | ||
'i-tabler-file-dollar', | ||
'i-tabler-file-analytics', | ||
'i-tabler-file-chart', | ||
'i-tabler-file-description', | ||
'i-tabler-file-music', | ||
'i-tabler-file-lambda', | ||
'i-tabler-file-3d', | ||
'i-tabler-file-rss', | ||
]; | ||
const getRandomIcon = () => filesIcons[Math.floor(Math.random() * filesIcons.length)]; | ||
--- | ||
|
||
<div class="py-32 bg-card p-6"> | ||
|
||
<h2 class="text-3xl font-semibold text-pretty mb-2 text-center"> | ||
Some Features | ||
</h2> | ||
<p class="text-base text-muted-foreground text-center max-w-500px mx-auto mb-24"> | ||
Manage your documents with ease. Papra offers a range of features to help you organize, search, and access your documents effortlessly. | ||
</p> | ||
|
||
<div class="max-w-1000px mx-auto flex flex-col sm:flex-row gap-4 items-start"> | ||
|
||
<div class="flex flex-col gap-4 w-full"> | ||
|
||
<BentoCard | ||
title="All your documents in one place" | ||
description="Say goodbye to scattered documents across different platforms. Papra helps you archive and organize all your documents in one place." | ||
icon="i-tabler-archive" | ||
> | ||
<div class="grid grid-cols-8 grid-rows-2 gap-4 p-6 overflow-hidden mb--150px"> | ||
{Array.from({ length: 24 }).map(() => <div class={cn('size-8 sm:size-10 text-muted text-center', getRandomIcon())} />)} | ||
</div> | ||
</BentoCard> | ||
|
||
<BentoCard | ||
title="Email ingestion" | ||
description="Generate a unique email address and forward your emails to Papra. We'll automatically save your email attachments as documents." | ||
icon="i-tabler-mail" | ||
> | ||
<div class="mt-6" /> | ||
</BentoCard> | ||
</div> | ||
|
||
<div class="flex flex-col gap-4 w-full"> | ||
<BentoCard | ||
title="Search and find documents easily" | ||
description="With Papra's powerful search functionality, you can find any document in seconds. No more endless scrolling and searching." | ||
icon="i-tabler-search" | ||
> | ||
<div class="mb--180px flex items-start justify-center pt-6 relative"> | ||
<div class="bg-background sm:min-w-64 border rounded-lg"> | ||
<div class="px-4 py-2 flex items-center gap-2"> | ||
<span class="i-tabler-search size-4 text-primary"></span> | ||
<span class="text-muted-foreground text-xs">Search for documents...</span> | ||
</div> | ||
|
||
<div class="border-t p-4 text-xs text-muted-foreground"> | ||
<div class="flex items-center gap-2"> | ||
<span class="i-tabler-file-text size-4"></span> | ||
Phone invoice.pdf | ||
</div> | ||
|
||
<div class="flex items-center gap-2 mt-2"> | ||
<span class="i-tabler-file-analytics size-4"></span> | ||
Analytics report.pdf | ||
</div> | ||
|
||
<div class="flex items-center gap-2 mt-2"> | ||
<span class="i-tabler-file-code size-4"></span> | ||
Code snippets.txt | ||
</div> | ||
|
||
<div class="flex items-center gap-2 mt-2"> | ||
<span class="i-tabler-file size-4"></span> | ||
Document.docx | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</BentoCard> | ||
|
||
<BentoCard title="Documents tagging" description="Organize your documents with tags. Tags help you categorize and filter your documents easily." icon="i-tabler-tag"> | ||
<div class="mt-6" /> | ||
</BentoCard> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters