Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

add file icons to document

Marc Seitzf6b151fbc018
diff --git a/components/documents/document-card.tsx b/components/documents/document-card.tsx
index dd3a707c..3b742533 100644
--- a/components/documents/document-card.tsx
+++ b/components/documents/document-card.tsx
@@ -7,6 +7,7 @@ import toast from "react-hot-toast";
import Notification from "@/components/Notification";
import Copy from "@/components/shared/icons/copy";
import BarChart from "@/components/shared/icons/bar-chart";
+import Image from "next/image";
export default function DocumentsCard({
document,
@@ -29,13 +30,13 @@ export default function DocumentsCard({
));
}
+
+
return (
<li className="relative rounded-lg bg-gray-800 p-3 border-0 ring-1 ring-gray-700 transition-all hover:ring-gray-500 sm:p-4 flex justify-between items-center">
<div className="min-w-0 flex shrink items-center space-x-4">
- <div className="rounded-full p-2 bg-gray-700 w-10 text-center flex justify-center items-center">
- <span className="text-white whitespace-nowrap">
- {getExtension(document.file)}
- </span>
+ <div className="w-8 mx-1 text-center flex justify-center items-center">
+ <Image src={`/_icons/${getExtension(document.file)}.svg`} alt="File icon" width={50} height={50} className="" />
</div>
<div className="flex-col">
<div className="flex items-center">
diff --git a/pages/documents/[id].tsx b/pages/documents/[id].tsx
index 34311786..0aacc7b8 100644
--- a/pages/documents/[id].tsx
+++ b/pages/documents/[id].tsx
@@ -1,11 +1,11 @@
-import Sidebar from "@/components/Sidebar";
import { getExtension } from "@/lib/utils";
-import Link from "next/link";
import { useDocument } from "@/lib/swr/use-document";
import ErrorPage from "next/error";
import LinksContainer from "@/components/links/links-container";
import StatsCard from "@/components/documents/stats-card";
import StatsChart from "@/components/documents/stats-chart";
+import AppLayout from "@/components/layouts/app";
+import Image from "next/image"
export default function DocumentPage() {
const { document, error } = useDocument();
@@ -15,58 +15,44 @@ export default function DocumentPage() {
}
return (
- <>
- <div className="flex flex-col lg:flex-row min-h-screen bg-gradient-to-tl from-black to-gray-950">
- <Sidebar></Sidebar>
- <main className="lg:m-2 grow w-full bg-gray-900 shadow rounded-xl">
- <div className="">
- {document ? (
- <>
- <header>
- {/* Heading */}
- <div className="flex flex-col items-start justify-between gap-x-8 gap-y-4 px-4 py-4 sm:flex-row sm:items-center sm:px-6 lg:px-8">
- <div>
- <div className="flex items-center gap-x-3">
- <h1 className="flex gap-x-3 text-base leading-7">
- <span className="font-semibold text-white">
- {document.name}
- </span>
- <span className="text-gray-600">/</span>
- <span className="font-semibold text-gray-500">
- {getExtension(document.file)}
- </span>
- </h1>
- </div>
- <p className="mt-2 text-xs leading-6 text-gray-400">
- {document.description}
- </p>
- </div>
- <Link
- className="order-first rounded flex-none px-2 py-1 bg-gray-800 hover:bg-gray-700 text-gray-400 hover:text-gray-50 sm:order-none"
- href={document.file}
- >
- View Document
- </Link>
- </div>
-
- {/* Stats */}
- {document.numPages !== null && (
- <StatsChart
- documentId={document.id}
- totalPages={document.numPages}
+ <AppLayout>
+ <div>
+ {document ? (
+ <>
+ {/* Heading */}
+ <div className="flex flex-col items-start justify-between gap-x-8 gap-y-4 p-4 sm:flex-row sm:items-center sm:p-4 sm:m-4">
+ <div className="space-y-2">
+ <div className="flex space-x-4 items-center">
+ <div className="w-8">
+ <Image
+ src={`/_icons/${getExtension(document.file)}.svg`}
+ alt="File icon"
+ width={50}
+ height={50}
+ className=""
/>
- )}
- <StatsCard />
- </header>
-
- <LinksContainer />
- </>
- ) : (
- <div>Loading...</div>
+ </div>
+ <h2 className="leading-7 text-2xl text-white font-semibold tracking-tight">
+ {document.name}
+ </h2>
+ </div>
+ </div>
+ </div>
+ {/* Stats */}
+ {document.numPages !== null && (
+ <StatsChart
+ documentId={document.id}
+ totalPages={document.numPages}
+ />
)}
- </div>
- </main>
+ <StatsCard />
+ {/* Links */}
+ <LinksContainer />
+ </>
+ ) : (
+ <div>Loading...</div>
+ )}
</div>
- </>
+ </AppLayout>
);
}
diff --git a/public/_icons/doc.svg b/public/_icons/doc.svg
new file mode 100644
index 00000000..d1fccb74
--- /dev/null
+++ b/public/_icons/doc.svg
@@ -0,0 +1,7 @@
+<svg width="171" height="200" viewBox="0 0 171 200" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2 98H132V163H2V98Z" fill="white"/>
+<path d="M167.578 38.4L132.138 2.96C130.229 1.05111 127.691 0 124.991 0H30.3956C24.8222 0 20.2889 4.53333 20.2889 10.1067V92.5778H9.50445C4.26444 92.5778 0 96.7422 0 101.86V158.373C0 163.493 4.26444 167.658 9.50445 167.658H20.2889V189.893C20.2889 195.467 24.8222 200 30.3956 200H160.433C166.007 200 170.54 195.467 170.54 189.893V45.5467C170.538 42.8467 169.487 40.3111 167.578 38.4ZM131.131 11.38L159.158 39.4067H133.969C132.404 39.4067 131.131 38.1333 131.131 36.5689V11.38ZM6.66667 158.376V101.86C6.66667 100.418 7.94 99.2444 9.50445 99.2444H127.987C129.551 99.2444 130.824 100.418 130.824 101.86V158.373C130.824 159.816 129.551 160.991 127.987 160.991H9.50445C7.94 160.991 6.66667 159.818 6.66667 158.376ZM160.431 193.333H30.3956C28.4978 193.333 26.9556 191.791 26.9556 189.893V167.658H127.989C133.229 167.658 137.493 163.493 137.493 158.373V101.86C137.493 96.7422 133.229 92.5778 127.989 92.5778H26.9556V10.1067C26.9556 8.20889 28.4978 6.66667 30.3956 6.66667H124.464V36.5689C124.464 41.8089 128.729 46.0733 133.969 46.0733H163.871V189.893C163.871 191.791 162.329 193.333 160.431 193.333Z" fill="white"/>
+<path d="M21.2614 152H5.7926V108.364H21.3892C25.7784 108.364 29.5568 109.237 32.7244 110.984C35.892 112.717 38.3281 115.21 40.0327 118.463C41.7514 121.716 42.6108 125.608 42.6108 130.139C42.6108 134.685 41.7514 138.591 40.0327 141.858C38.3281 145.125 35.8778 147.632 32.6818 149.379C29.5 151.126 25.6932 152 21.2614 152ZM15.0185 144.095H20.8778C23.6051 144.095 25.8991 143.612 27.7599 142.646C29.6349 141.666 31.0412 140.153 31.9787 138.108C32.9304 136.048 33.4062 133.392 33.4062 130.139C33.4062 126.915 32.9304 124.28 31.9787 122.234C31.0412 120.189 29.642 118.683 27.7812 117.717C25.9204 116.751 23.6264 116.268 20.8991 116.268H15.0185V144.095Z" fill="black"/>
+<path d="M89.5444 130.182C89.5444 134.94 88.6424 138.989 86.8384 142.327C85.0486 145.665 82.6055 148.214 79.5089 149.976C76.4265 151.723 72.9606 152.597 69.1111 152.597C65.2333 152.597 61.7532 151.716 58.6708 149.955C55.5884 148.193 53.1523 145.643 51.3626 142.305C49.5728 138.967 48.6779 134.926 48.6779 130.182C48.6779 125.423 49.5728 121.375 51.3626 118.037C53.1523 114.699 55.5884 112.156 58.6708 110.409C61.7532 108.648 65.2333 107.767 69.1111 107.767C72.9606 107.767 76.4265 108.648 79.5089 110.409C82.6055 112.156 85.0486 114.699 86.8384 118.037C88.6424 121.375 89.5444 125.423 89.5444 130.182ZM80.1907 130.182C80.1907 127.099 79.729 124.5 78.8057 122.384C77.8967 120.267 76.6111 118.662 74.9492 117.568C73.2873 116.474 71.3413 115.928 69.1111 115.928C66.881 115.928 64.935 116.474 63.2731 117.568C61.6111 118.662 60.3185 120.267 59.3952 122.384C58.4861 124.5 58.0316 127.099 58.0316 130.182C58.0316 133.264 58.4861 135.864 59.3952 137.98C60.3185 140.097 61.6111 141.702 63.2731 142.795C64.935 143.889 66.881 144.436 69.1111 144.436C71.3413 144.436 73.2873 143.889 74.9492 142.795C76.6111 141.702 77.8967 140.097 78.8057 137.98C79.729 135.864 80.1907 133.264 80.1907 130.182Z" fill="black"/>
+<path d="M134.88 123.641H125.548C125.377 122.433 125.029 121.361 124.504 120.423C123.978 119.472 123.303 118.662 122.479 117.994C121.656 117.327 120.704 116.815 119.624 116.46C118.559 116.105 117.401 115.928 116.151 115.928C113.893 115.928 111.925 116.489 110.249 117.611C108.573 118.719 107.273 120.338 106.35 122.469C105.427 124.585 104.965 127.156 104.965 130.182C104.965 133.293 105.427 135.906 106.35 138.023C107.288 140.139 108.594 141.737 110.271 142.817C111.947 143.896 113.886 144.436 116.087 144.436C117.323 144.436 118.467 144.273 119.518 143.946C120.583 143.619 121.528 143.143 122.352 142.518C123.175 141.879 123.857 141.105 124.397 140.196C124.951 139.287 125.335 138.25 125.548 137.085L134.88 137.128C134.638 139.131 134.035 141.062 133.069 142.923C132.117 144.77 130.832 146.425 129.212 147.888C127.607 149.337 125.69 150.487 123.46 151.339C121.244 152.178 118.736 152.597 115.938 152.597C112.046 152.597 108.566 151.716 105.498 149.955C102.444 148.193 100.029 145.643 98.2535 142.305C96.4922 138.967 95.6115 134.926 95.6115 130.182C95.6115 125.423 96.5064 121.375 98.2962 118.037C100.086 114.699 102.515 112.156 105.583 110.409C108.651 108.648 112.103 107.767 115.938 107.767C118.467 107.767 120.81 108.122 122.969 108.832C125.143 109.543 127.067 110.58 128.744 111.943C130.42 113.293 131.783 114.947 132.835 116.908C133.9 118.868 134.582 121.112 134.88 123.641Z" fill="black"/>
+</svg>
diff --git a/public/_icons/gif.svg b/public/_icons/gif.svg
new file mode 100644
index 00000000..a19dba04
--- /dev/null
+++ b/public/_icons/gif.svg
@@ -0,0 +1,7 @@
+<svg width="171" height="200" viewBox="0 0 171 200" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2 98H132V163H2V98Z" fill="white"/>
+<path d="M167.578 38.4L132.138 2.96C130.229 1.05111 127.691 0 124.991 0H30.3956C24.8222 0 20.2889 4.53333 20.2889 10.1067V92.5778H9.50445C4.26444 92.5778 0 96.7422 0 101.86V158.373C0 163.493 4.26444 167.658 9.50445 167.658H20.2889V189.893C20.2889 195.467 24.8222 200 30.3956 200H160.433C166.007 200 170.54 195.467 170.54 189.893V45.5467C170.538 42.8467 169.487 40.3111 167.578 38.4ZM131.131 11.38L159.158 39.4067H133.969C132.404 39.4067 131.131 38.1333 131.131 36.5689V11.38ZM6.66667 158.376V101.86C6.66667 100.418 7.94 99.2444 9.50445 99.2444H127.987C129.551 99.2444 130.824 100.418 130.824 101.86V158.373C130.824 159.816 129.551 160.991 127.987 160.991H9.50445C7.94 160.991 6.66667 159.818 6.66667 158.376ZM160.431 193.333H30.3956C28.4978 193.333 26.9556 191.791 26.9556 189.893V167.658H127.989C133.229 167.658 137.493 163.493 137.493 158.373V101.86C137.493 96.7422 133.229 92.5778 127.989 92.5778H26.9556V10.1067C26.9556 8.20889 28.4978 6.66667 30.3956 6.66667H124.464V36.5689C124.464 41.8089 128.729 46.0733 133.969 46.0733H163.871V189.893C163.871 191.791 162.329 193.333 160.431 193.333Z" fill="white"/>
+<path d="M51.7272 123.469C51.4289 122.432 51.0099 121.516 50.4701 120.72C49.9303 119.91 49.2698 119.229 48.4886 118.675C47.7215 118.107 46.8409 117.673 45.8465 117.375C44.8664 117.077 43.7798 116.928 42.5866 116.928C40.3565 116.928 38.3963 117.482 36.7059 118.589C35.0298 119.697 33.723 121.31 32.7855 123.426C31.848 125.528 31.3792 128.099 31.3792 131.139C31.3792 134.179 31.8409 136.764 32.7641 138.895C33.6874 141.026 34.9943 142.652 36.6846 143.774C38.3749 144.882 40.3707 145.436 42.6718 145.436C44.7599 145.436 46.5426 145.067 48.0198 144.328C49.5113 143.575 50.6477 142.517 51.4289 141.153C52.2244 139.79 52.6221 138.178 52.6221 136.317L54.4971 136.594H43.2471V129.648H61.507V135.145C61.507 138.98 60.6974 142.276 59.0781 145.031C57.4588 147.773 55.2286 149.889 52.3877 151.381C49.5468 152.858 46.294 153.597 42.6292 153.597C38.5383 153.597 34.9445 152.695 31.848 150.891C28.7514 149.072 26.3366 146.494 24.6036 143.156C22.8849 139.804 22.0255 135.827 22.0255 131.224C22.0255 127.687 22.5369 124.534 23.5596 121.764C24.5965 118.98 26.0454 116.622 27.9062 114.69C29.767 112.759 31.9332 111.288 34.4048 110.28C36.8764 109.271 39.5539 108.767 42.4374 108.767C44.909 108.767 47.2102 109.129 49.3409 109.854C51.4715 110.564 53.3607 111.572 55.0085 112.879C56.6704 114.186 58.0269 115.741 59.0781 117.545C60.1292 119.335 60.8039 121.31 61.1022 123.469H51.7272Z" fill="black"/>
+<path d="M77.6629 109.364V153H68.4371V109.364H77.6629Z" fill="black"/>
+<path d="M85.2535 153V109.364H114.146V116.97H94.4793V127.368H112.228V134.974H94.4793V153H85.2535Z" fill="black"/>
+</svg>
diff --git a/public/_icons/jpg.svg b/public/_icons/jpg.svg
new file mode 100644
index 00000000..0f08699c
--- /dev/null
+++ b/public/_icons/jpg.svg
@@ -0,0 +1,7 @@
+<svg width="171" height="200" viewBox="0 0 171 200" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2 98H132V163H2V98Z" fill="white"/>
+<path d="M167.578 38.4L132.138 2.96C130.229 1.05111 127.691 0 124.991 0H30.3956C24.8222 0 20.2889 4.53333 20.2889 10.1067V92.5778H9.50445C4.26444 92.5778 0 96.7422 0 101.86V158.373C0 163.493 4.26444 167.658 9.50445 167.658H20.2889V189.893C20.2889 195.467 24.8222 200 30.3956 200H160.433C166.007 200 170.54 195.467 170.54 189.893V45.5467C170.538 42.8467 169.487 40.3111 167.578 38.4ZM131.131 11.38L159.158 39.4067H133.969C132.404 39.4067 131.131 38.1333 131.131 36.5689V11.38ZM6.66667 158.376V101.86C6.66667 100.418 7.94 99.2444 9.50445 99.2444H127.987C129.551 99.2444 130.824 100.418 130.824 101.86V158.373C130.824 159.816 129.551 160.991 127.987 160.991H9.50445C7.94 160.991 6.66667 159.818 6.66667 158.376ZM160.431 193.333H30.3956C28.4978 193.333 26.9556 191.791 26.9556 189.893V167.658H127.989C133.229 167.658 137.493 163.493 137.493 158.373V101.86C137.493 96.7422 133.229 92.5778 127.989 92.5778H26.9556V10.1067C26.9556 8.20889 28.4978 6.66667 30.3956 6.66667H124.464V36.5689C124.464 41.8089 128.729 46.0733 133.969 46.0733H163.871V189.893C163.871 191.791 162.329 193.333 160.431 193.333Z" fill="white"/>
+<path d="M28.2642 108.364H37.3835V138.79C37.3835 141.602 36.7514 144.045 35.4872 146.119C34.2372 148.193 32.4972 149.791 30.267 150.913C28.0369 152.035 25.4446 152.597 22.4901 152.597C19.8622 152.597 17.4758 152.135 15.331 151.212C13.2003 150.274 11.5099 148.854 10.2599 146.95C9.00994 145.033 8.39204 142.625 8.40625 139.727H17.5895C17.6179 140.878 17.8523 141.865 18.2926 142.689C18.7472 143.499 19.3651 144.124 20.1463 144.564C20.9418 144.99 21.8793 145.203 22.9588 145.203C24.0952 145.203 25.054 144.962 25.8352 144.479C26.6307 143.982 27.2344 143.257 27.6463 142.305C28.0582 141.354 28.2642 140.182 28.2642 138.79V108.364Z" fill="black"/>
+<path d="M45.0114 152V108.364H62.2273C65.5369 108.364 68.3565 108.996 70.6861 110.26C73.0156 111.51 74.7912 113.25 76.0128 115.48C77.2486 117.696 77.8665 120.253 77.8665 123.151C77.8665 126.048 77.2415 128.605 75.9915 130.821C74.7415 133.037 72.9304 134.763 70.5582 135.999C68.2003 137.234 65.3452 137.852 61.9929 137.852H51.0199V130.459H60.5014C62.277 130.459 63.7401 130.153 64.8906 129.543C66.0554 128.918 66.9219 128.058 67.4901 126.964C68.0724 125.857 68.3636 124.585 68.3636 123.151C68.3636 121.702 68.0724 120.437 67.4901 119.358C66.9219 118.264 66.0554 117.419 64.8906 116.822C63.7258 116.212 62.2486 115.906 60.4588 115.906H54.2372V152H45.0114Z" fill="black"/>
+<path d="M112.794 122.469C112.495 121.432 112.076 120.516 111.537 119.72C110.997 118.91 110.336 118.229 109.555 117.675C108.788 117.107 107.907 116.673 106.913 116.375C105.933 116.077 104.846 115.928 103.653 115.928C101.423 115.928 99.4627 116.482 97.7724 117.589C96.0962 118.697 94.7894 120.31 93.8519 122.426C92.9144 124.528 92.4457 127.099 92.4457 130.139C92.4457 133.179 92.9073 135.764 93.8306 137.895C94.7539 140.026 96.0607 141.652 97.7511 142.774C99.4414 143.882 101.437 144.436 103.738 144.436C105.826 144.436 107.609 144.067 109.086 143.328C110.578 142.575 111.714 141.517 112.495 140.153C113.291 138.79 113.689 137.178 113.689 135.317L115.564 135.594H104.314V128.648H122.574V134.145C122.574 137.98 121.764 141.276 120.145 144.031C118.525 146.773 116.295 148.889 113.454 150.381C110.613 151.858 107.36 152.597 103.696 152.597C99.6048 152.597 96.011 151.695 92.9144 149.891C89.8178 148.072 87.403 145.494 85.6701 142.156C83.9513 138.804 83.092 134.827 83.092 130.224C83.092 126.687 83.6033 123.534 84.6261 120.764C85.663 117.98 87.1119 115.622 88.9726 113.69C90.8334 111.759 92.9996 110.288 95.4712 109.28C97.9428 108.271 100.62 107.767 103.504 107.767C105.975 107.767 108.277 108.129 110.407 108.854C112.538 109.564 114.427 110.572 116.075 111.879C117.737 113.186 119.093 114.741 120.145 116.545C121.196 118.335 121.87 120.31 122.169 122.469H112.794Z" fill="black"/>
+</svg>
diff --git a/public/_icons/other.svg b/public/_icons/other.svg
new file mode 100644
index 00000000..694a6901
--- /dev/null
+++ b/public/_icons/other.svg
@@ -0,0 +1,4 @@
+<svg width="171" height="200" viewBox="0 0 171 200" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2 98H132V163H2V98Z" fill="white"/>
+<path d="M167.578 38.4L132.138 2.96C130.229 1.05111 127.691 0 124.991 0H30.3956C24.8222 0 20.2889 4.53333 20.2889 10.1067V92.5778H9.50445C4.26444 92.5778 0 96.7422 0 101.86V158.373C0 163.493 4.26444 167.658 9.50445 167.658H20.2889V189.893C20.2889 195.467 24.8222 200 30.3956 200H160.433C166.007 200 170.54 195.467 170.54 189.893V45.5467C170.538 42.8467 169.487 40.3111 167.578 38.4ZM131.131 11.38L159.158 39.4067H133.969C132.404 39.4067 131.131 38.1333 131.131 36.5689V11.38ZM6.66667 158.376V101.86C6.66667 100.418 7.94 99.2444 9.50445 99.2444H127.987C129.551 99.2444 130.824 100.418 130.824 101.86V158.373C130.824 159.816 129.551 160.991 127.987 160.991H9.50445C7.94 160.991 6.66667 159.818 6.66667 158.376ZM160.431 193.333H30.3956C28.4978 193.333 26.9556 191.791 26.9556 189.893V167.658H127.989C133.229 167.658 137.493 163.493 137.493 158.373V101.86C137.493 96.7422 133.229 92.5778 127.989 92.5778H26.9556V10.1067C26.9556 8.20889 28.4978 6.66667 30.3956 6.66667H124.464V36.5689C124.464 41.8089 128.729 46.0733 133.969 46.0733H163.871V189.893C163.871 191.791 162.329 193.333 160.431 193.333Z" fill="white"/>
+</svg>
diff --git a/public/_icons/pdf.svg b/public/_icons/pdf.svg
new file mode 100644
index 00000000..47a94ca5
--- /dev/null
+++ b/public/_icons/pdf.svg
@@ -0,0 +1,7 @@
+<svg width="171" height="200" viewBox="0 0 171 200" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2 98H132V163H2V98Z" fill="white"/>
+<path d="M167.578 38.4L132.138 2.96C130.229 1.05111 127.691 0 124.991 0H30.3956C24.8222 0 20.2889 4.53333 20.2889 10.1067V92.5778H9.50445C4.26444 92.5778 0 96.7422 0 101.86V158.373C0 163.493 4.26444 167.658 9.50445 167.658H20.2889V189.893C20.2889 195.467 24.8222 200 30.3956 200H160.433C166.007 200 170.54 195.467 170.54 189.893V45.5467C170.538 42.8467 169.487 40.3111 167.578 38.4ZM131.131 11.38L159.158 39.4067H133.969C132.404 39.4067 131.131 38.1333 131.131 36.5689V11.38ZM6.66667 158.376V101.86C6.66667 100.418 7.94 99.2444 9.50445 99.2444H127.987C129.551 99.2444 130.824 100.418 130.824 101.86V158.373C130.824 159.816 129.551 160.991 127.987 160.991H9.50445C7.94 160.991 6.66667 159.818 6.66667 158.376ZM160.431 193.333H30.3956C28.4978 193.333 26.9556 191.791 26.9556 189.893V167.658H127.989C133.229 167.658 137.493 163.493 137.493 158.373V101.86C137.493 96.7422 133.229 92.5778 127.989 92.5778H26.9556V10.1067C26.9556 8.20889 28.4978 6.66667 30.3956 6.66667H124.464V36.5689C124.464 41.8089 128.729 46.0733 133.969 46.0733H163.871V189.893C163.871 191.791 162.329 193.333 160.431 193.333Z" fill="white"/>
+<path d="M13.7926 152V108.364H31.0085C34.3182 108.364 37.1378 108.996 39.4673 110.26C41.7969 111.51 43.5724 113.25 44.794 115.48C46.0298 117.696 46.6477 120.253 46.6477 123.151C46.6477 126.048 46.0227 128.605 44.7727 130.821C43.5227 133.037 41.7117 134.763 39.3395 135.999C36.9815 137.234 34.1264 137.852 30.7742 137.852H19.8011V130.459H29.2827C31.0582 130.459 32.5213 130.153 33.6719 129.543C34.8367 128.918 35.7031 128.058 36.2713 126.965C36.8537 125.857 37.1449 124.585 37.1449 123.151C37.1449 121.702 36.8537 120.438 36.2713 119.358C35.7031 118.264 34.8367 117.419 33.6719 116.822C32.5071 116.212 31.0298 115.906 29.2401 115.906H23.0185V152H13.7926Z" fill="black"/>
+<path d="M68.109 152H52.6403V108.364H68.2369C72.6261 108.364 76.4045 109.237 79.5721 110.984C82.7397 112.717 85.1758 115.21 86.8803 118.463C88.5991 121.716 89.4585 125.608 89.4585 130.139C89.4585 134.685 88.5991 138.591 86.8803 141.858C85.1758 145.125 82.7255 147.632 79.5295 149.379C76.3477 151.126 72.5408 152 68.109 152ZM61.8661 144.095H67.7255C70.4528 144.095 72.7468 143.612 74.6076 142.646C76.4826 141.666 77.8889 140.153 78.8264 138.108C79.7781 136.048 80.2539 133.392 80.2539 130.139C80.2539 126.915 79.7781 124.28 78.8264 122.234C77.8889 120.189 76.4897 118.683 74.6289 117.717C72.7681 116.751 70.4741 116.268 67.7468 116.268H61.8661V144.095Z" fill="black"/>
+<path d="M96.2926 152V108.364H125.185V115.97H105.518V126.368H123.267V133.974H105.518V152H96.2926Z" fill="black"/>
+</svg>
diff --git a/public/_icons/png.svg b/public/_icons/png.svg
new file mode 100644
index 00000000..0134452b
--- /dev/null
+++ b/public/_icons/png.svg
@@ -0,0 +1,7 @@
+<svg width="171" height="200" viewBox="0 0 171 200" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2 98H132V163H2V98Z" fill="white"/>
+<path d="M167.578 38.4L132.138 2.96C130.229 1.05111 127.691 0 124.991 0H30.3956C24.8222 0 20.2889 4.53333 20.2889 10.1067V92.5778H9.50445C4.26444 92.5778 0 96.7422 0 101.86V158.373C0 163.493 4.26444 167.658 9.50445 167.658H20.2889V189.893C20.2889 195.467 24.8222 200 30.3956 200H160.433C166.007 200 170.54 195.467 170.54 189.893V45.5467C170.538 42.8467 169.487 40.3111 167.578 38.4ZM131.131 11.38L159.158 39.4067H133.969C132.404 39.4067 131.131 38.1333 131.131 36.5689V11.38ZM6.66667 158.376V101.86C6.66667 100.418 7.94 99.2444 9.50445 99.2444H127.987C129.551 99.2444 130.824 100.418 130.824 101.86V158.373C130.824 159.816 129.551 160.991 127.987 160.991H9.50445C7.94 160.991 6.66667 159.818 6.66667 158.376ZM160.431 193.333H30.3956C28.4978 193.333 26.9556 191.791 26.9556 189.893V167.658H127.989C133.229 167.658 137.493 163.493 137.493 158.373V101.86C137.493 96.7422 133.229 92.5778 127.989 92.5778H26.9556V10.1067C26.9556 8.20889 28.4978 6.66667 30.3956 6.66667H124.464V36.5689C124.464 41.8089 128.729 46.0733 133.969 46.0733H163.871V189.893C163.871 191.791 162.329 193.333 160.431 193.333Z" fill="white"/>
+<path d="M7.7926 153V109.364H25.0085C28.3182 109.364 31.1378 109.996 33.4673 111.26C35.7969 112.51 37.5724 114.25 38.794 116.48C40.0298 118.696 40.6477 121.253 40.6477 124.151C40.6477 127.048 40.0227 129.605 38.7727 131.821C37.5227 134.037 35.7116 135.763 33.3395 136.999C30.9815 138.234 28.1264 138.852 24.7741 138.852H13.8011V131.459H23.2827C25.0582 131.459 26.5213 131.153 27.6719 130.543C28.8366 129.918 29.7031 129.058 30.2713 127.964C30.8537 126.857 31.1449 125.585 31.1449 124.151C31.1449 122.702 30.8537 121.437 30.2713 120.358C29.7031 119.264 28.8366 118.419 27.6719 117.822C26.5071 117.212 25.0298 116.906 23.24 116.906H17.0185V153H7.7926Z" fill="black"/>
+<path d="M83.1388 109.364V153H75.1701L56.1857 125.535H55.8661V153H46.6403V109.364H54.7369L73.5721 136.807H73.9556V109.364H83.1388Z" fill="black"/>
+<path d="M119.696 123.469C119.398 122.432 118.979 121.516 118.439 120.72C117.899 119.91 117.239 119.229 116.457 118.675C115.69 118.107 114.81 117.673 113.815 117.375C112.835 117.077 111.749 116.928 110.555 116.928C108.325 116.928 106.365 117.482 104.675 118.589C102.999 119.697 101.692 121.31 100.754 123.426C99.8168 125.528 99.348 128.099 99.348 131.139C99.348 134.179 99.8097 136.764 100.733 138.895C101.656 141.026 102.963 142.652 104.653 143.774C106.344 144.882 108.339 145.436 110.641 145.436C112.729 145.436 114.511 145.067 115.989 144.328C117.48 143.575 118.616 142.517 119.398 141.153C120.193 139.79 120.591 138.178 120.591 136.317L122.466 136.594H111.216V129.648H129.476V135.145C129.476 138.98 128.666 142.276 127.047 145.031C125.428 147.773 123.197 149.889 120.357 151.381C117.516 152.858 114.263 153.597 110.598 153.597C106.507 153.597 102.913 152.695 99.8168 150.891C96.7202 149.072 94.3054 146.494 92.5724 143.156C90.8537 139.804 89.9943 135.827 89.9943 131.224C89.9943 127.687 90.5057 124.534 91.5284 121.764C92.5653 118.98 94.0142 116.622 95.875 114.69C97.7358 112.759 99.902 111.288 102.374 110.28C104.845 109.271 107.523 108.767 110.406 108.767C112.878 108.767 115.179 109.129 117.31 109.854C119.44 110.564 121.33 111.572 122.977 112.879C124.639 114.186 125.996 115.741 127.047 117.545C128.098 119.335 128.773 121.31 129.071 123.469H119.696Z" fill="black"/>
+</svg>
diff --git a/public/_icons/ppt.svg b/public/_icons/ppt.svg
new file mode 100644
index 00000000..bfcddbd9
--- /dev/null
+++ b/public/_icons/ppt.svg
@@ -0,0 +1,7 @@
+<svg width="171" height="200" viewBox="0 0 171 200" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2 98H132V163H2V98Z" fill="white"/>
+<path d="M167.578 38.4L132.138 2.96C130.229 1.05111 127.691 0 124.991 0H30.3956C24.8222 0 20.2889 4.53333 20.2889 10.1067V92.5778H9.50445C4.26444 92.5778 0 96.7422 0 101.86V158.373C0 163.493 4.26444 167.658 9.50445 167.658H20.2889V189.893C20.2889 195.467 24.8222 200 30.3956 200H160.433C166.007 200 170.54 195.467 170.54 189.893V45.5467C170.538 42.8467 169.487 40.3111 167.578 38.4ZM131.131 11.38L159.158 39.4067H133.969C132.404 39.4067 131.131 38.1333 131.131 36.5689V11.38ZM6.66667 158.376V101.86C6.66667 100.418 7.94 99.2444 9.50445 99.2444H127.987C129.551 99.2444 130.824 100.418 130.824 101.86V158.373C130.824 159.816 129.551 160.991 127.987 160.991H9.50445C7.94 160.991 6.66667 159.818 6.66667 158.376ZM160.431 193.333H30.3956C28.4978 193.333 26.9556 191.791 26.9556 189.893V167.658H127.989C133.229 167.658 137.493 163.493 137.493 158.373V101.86C137.493 96.7422 133.229 92.5778 127.989 92.5778H26.9556V10.1067C26.9556 8.20889 28.4978 6.66667 30.3956 6.66667H124.464V36.5689C124.464 41.8089 128.729 46.0733 133.969 46.0733H163.871V189.893C163.871 191.791 162.329 193.333 160.431 193.333Z" fill="white"/>
+<path d="M14.7926 153V109.364H32.0085C35.3182 109.364 38.1378 109.996 40.4673 111.26C42.7969 112.51 44.5724 114.25 45.794 116.48C47.0298 118.696 47.6477 121.253 47.6477 124.151C47.6477 127.048 47.0227 129.605 45.7727 131.821C44.5227 134.037 42.7116 135.763 40.3395 136.999C37.9815 138.234 35.1264 138.852 31.7741 138.852H20.8011V131.459H30.2827C32.0582 131.459 33.5213 131.153 34.6719 130.543C35.8366 129.918 36.7031 129.058 37.2713 127.965C37.8537 126.857 38.1449 125.585 38.1449 124.151C38.1449 122.702 37.8537 121.438 37.2713 120.358C36.7031 119.264 35.8366 118.419 34.6719 117.822C33.5071 117.212 32.0298 116.906 30.24 116.906H24.0185V153H14.7926Z" fill="black"/>
+<path d="M53.6403 153V109.364H70.8562C74.1658 109.364 76.9854 109.996 79.315 111.26C81.6445 112.51 83.4201 114.25 84.6417 116.48C85.8775 118.696 86.4954 121.253 86.4954 124.151C86.4954 127.048 85.8704 129.605 84.6204 131.821C83.3704 134.037 81.5593 135.763 79.1871 136.999C76.8292 138.234 73.9741 138.852 70.6218 138.852H59.6488V131.459H69.1303C70.9059 131.459 72.369 131.153 73.5195 130.543C74.6843 129.918 75.5508 129.058 76.119 127.965C76.7013 126.857 76.9925 125.585 76.9925 124.151C76.9925 122.702 76.7013 121.438 76.119 120.358C75.5508 119.264 74.6843 118.419 73.5195 117.822C72.3547 117.212 70.8775 116.906 69.0877 116.906H62.8661V153H53.6403Z" fill="black"/>
+<path d="M90.826 116.97V109.364H126.664V116.97H113.305V153H104.185V116.97H90.826Z" fill="black"/>
+</svg>
diff --git a/public/_icons/xls.svg b/public/_icons/xls.svg
new file mode 100644
index 00000000..f270e89c
--- /dev/null
+++ b/public/_icons/xls.svg
@@ -0,0 +1,7 @@
+<svg width="171" height="200" viewBox="0 0 171 200" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2 98H132V163H2V98Z" fill="white"/>
+<path d="M167.578 38.4L132.138 2.96C130.229 1.05111 127.691 0 124.991 0H30.3956C24.8222 0 20.2889 4.53333 20.2889 10.1067V92.5778H9.50445C4.26444 92.5778 0 96.7422 0 101.86V158.373C0 163.493 4.26444 167.658 9.50445 167.658H20.2889V189.893C20.2889 195.467 24.8222 200 30.3956 200H160.433C166.007 200 170.54 195.467 170.54 189.893V45.5467C170.538 42.8467 169.487 40.3111 167.578 38.4ZM131.131 11.38L159.158 39.4067H133.969C132.404 39.4067 131.131 38.1333 131.131 36.5689V11.38ZM6.66667 158.376V101.86C6.66667 100.418 7.94 99.2444 9.50445 99.2444H127.987C129.551 99.2444 130.824 100.418 130.824 101.86V158.373C130.824 159.816 129.551 160.991 127.987 160.991H9.50445C7.94 160.991 6.66667 159.818 6.66667 158.376ZM160.431 193.333H30.3956C28.4978 193.333 26.9556 191.791 26.9556 189.893V167.658H127.989C133.229 167.658 137.493 163.493 137.493 158.373V101.86C137.493 96.7422 133.229 92.5778 127.989 92.5778H26.9556V10.1067C26.9556 8.20889 28.4978 6.66667 30.3956 6.66667H124.464V36.5689C124.464 41.8089 128.729 46.0733 133.969 46.0733H163.871V189.893C163.871 191.791 162.329 193.333 160.431 193.333Z" fill="white"/>
+<path d="M23.4432 109.364L32.2429 124.236H32.5838L41.4261 109.364H51.8451L38.5284 131.182L52.1434 153H41.5326L32.5838 138.107H32.2429L23.294 153H12.7258L26.3835 131.182L12.9815 109.364H23.4432Z" fill="black"/>
+<path d="M57.6832 153V109.364H66.9091V145.393H85.6165V153H57.6832Z" fill="black"/>
+<path d="M115.398 121.913C115.228 120.195 114.496 118.859 113.203 117.908C111.911 116.956 110.157 116.48 107.941 116.48C106.435 116.48 105.164 116.693 104.127 117.119C103.09 117.531 102.294 118.107 101.74 118.845C101.201 119.584 100.931 120.422 100.931 121.359C100.902 122.141 101.066 122.822 101.421 123.405C101.79 123.987 102.294 124.491 102.934 124.918C103.573 125.33 104.311 125.692 105.149 126.004C105.988 126.303 106.882 126.558 107.834 126.771L111.755 127.709C113.658 128.135 115.405 128.703 116.996 129.413C118.587 130.124 119.965 130.997 121.13 132.034C122.294 133.071 123.196 134.293 123.836 135.699C124.489 137.105 124.823 138.717 124.837 140.535C124.823 143.206 124.141 145.521 122.792 147.482C121.456 149.428 119.524 150.94 116.996 152.02C114.482 153.085 111.449 153.618 107.898 153.618C104.375 153.618 101.307 153.078 98.6935 151.999C96.0941 150.919 94.0628 149.321 92.5998 147.205C91.1509 145.074 90.391 142.439 90.3199 139.3H99.2475C99.3469 140.763 99.766 141.984 100.505 142.964C101.257 143.93 102.259 144.662 103.509 145.159C104.773 145.642 106.201 145.884 107.792 145.884C109.354 145.884 110.711 145.656 111.861 145.202C113.026 144.747 113.928 144.115 114.567 143.305C115.206 142.496 115.526 141.565 115.526 140.514C115.526 139.534 115.235 138.71 114.652 138.043C114.084 137.375 113.246 136.807 112.138 136.338C111.044 135.869 109.702 135.443 108.111 135.06L103.36 133.866C99.6807 132.972 96.7759 131.572 94.6452 129.669C92.5145 127.766 91.4563 125.202 91.4705 121.977C91.4563 119.335 92.1594 117.027 93.5799 115.053C95.0145 113.078 96.9819 111.537 99.4819 110.429C101.982 109.321 104.823 108.767 108.005 108.767C111.243 108.767 114.07 109.321 116.485 110.429C118.914 111.537 120.803 113.078 122.152 115.053C123.502 117.027 124.198 119.314 124.24 121.913H115.398Z" fill="black"/>
+</svg>