Skip to content

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

feat(icon): add file type icons

Marc Seitzf74d4d255a16
diff --git a/components/shared/icons/files/docs.tsx b/components/shared/icons/files/docs.tsx
new file mode 100644
index 00000000..01c87083
--- /dev/null
+++ b/components/shared/icons/files/docs.tsx
@@ -0,0 +1,50 @@
+export default function DocsIcon({
+ className,
+ isLight = true,
+}: {
+ className?: string;
+ isLight?: boolean;
+}) {
+ return (
+ <svg
+ width="576"
+ height="576"
+ viewBox="0 0 576 576"
+ fill="none"
+ className={className}
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g clip-path="url(#a)">
+ <path fill={isLight ? "#000" : "#fff"} d="M57 59h454v462H57z" />
+ <path
+ opacity=".999"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M497.5 31.5h-420c-24.333 6.333-39.667 21.667-46 46v420c6.333 24.333 21.667 39.667 46 46h420c24.333-6.333 39.667-21.667 46-46v-420c-6.333-24.333-21.667-39.667-46-46ZM129.465 268.876h-20v40h357.666v-40H129.465ZM109.87 163.648h357.665v40H109.87v-40ZM129.465 373h-20v40h253.542v-40H129.465Z"
+ fill={isLight ? "#fff" : "#111827"}
+ />
+ </g>
+ <rect
+ x="16"
+ y="16"
+ width="544"
+ height="544"
+ rx="48"
+ stroke={isLight ? "#000" : "#fff"}
+ stroke-width="32"
+ />
+ <defs>
+ <clipPath id="a">
+ <rect
+ x="32"
+ y="32"
+ width="512"
+ height="512"
+ rx="32"
+ fill={isLight ? "#fff" : "#111827"}
+ />
+ </clipPath>
+ </defs>
+ </svg>
+ );
+}
diff --git a/components/shared/icons/notion.tsx b/components/shared/icons/files/notion.tsx
similarity index 100%
rename from components/shared/icons/notion.tsx
rename to components/shared/icons/files/notion.tsx
diff --git a/components/shared/icons/files/pdf.tsx b/components/shared/icons/files/pdf.tsx
new file mode 100644
index 00000000..139050d3
--- /dev/null
+++ b/components/shared/icons/files/pdf.tsx
@@ -0,0 +1,50 @@
+export default function PdfIcon({
+ className,
+ isLight = true,
+}: {
+ className?: string;
+ isLight?: boolean;
+}) {
+ return (
+ <svg
+ width="576"
+ height="576"
+ viewBox="0 0 576 576"
+ fill="none"
+ className={className}
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g clip-path="url(#a)">
+ <path fill={isLight ? "#000" : "#fff"} d="M57 59h454v462H57z" />
+ <path
+ opacity=".999"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M497.5 31.5h-420c-24.333 6.333-39.667 21.667-46 46v420c6.333 24.333 21.667 39.667 46 46h420c24.333-6.333 39.667-21.667 46-46v-420c-6.333-24.333-21.667-39.667-46-46ZM103 360V215h57.184c10.994 0 20.359 2.1 28.097 6.301 7.738 4.154 13.636 9.936 17.693 17.346 4.105 7.364 6.158 15.86 6.158 25.489 0 9.629-2.076 18.125-6.228 25.488-4.152 7.363-10.168 13.098-18.047 17.205-7.833 4.106-17.316 6.159-28.451 6.159h-25.761V360H103Zm51.452-71.58h-20.807v-48.357h20.665c5.945 0 10.852 1.015 14.721 3.045 3.869 1.982 6.747 4.791 8.634 8.425 1.935 3.587 2.902 7.788 2.902 12.603 0 4.767-.967 8.991-2.902 12.673-1.887 3.635-4.765 6.49-8.634 8.567-3.822 2.03-8.681 3.044-14.579 3.044ZM283.417 360h-51.381V215h51.806c14.579 0 27.13 2.903 37.651 8.708 10.522 5.759 18.613 14.043 24.275 24.852 5.709 10.808 8.564 23.741 8.564 38.798 0 15.105-2.855 28.085-8.564 38.941-5.662 10.856-13.8 19.187-24.416 24.993-10.569 5.805-23.214 8.708-37.935 8.708Zm-20.736-26.267h19.463c9.058 0 16.678-1.605 22.859-4.815 6.228-3.256 10.899-8.283 14.013-15.08 3.161-6.844 4.742-15.671 4.742-26.48 0-10.714-1.581-19.47-4.742-26.267-3.114-6.797-7.761-11.8-13.942-15.009-6.181-3.21-13.801-4.815-22.86-4.815h-19.533v92.466ZM377.032 215v145h30.645v-59.897h58.953v-25.276h-58.953v-34.551H473V215h-95.968Z"
+ fill={isLight ? "#fff" : "#111827"}
+ />
+ </g>
+ <rect
+ x="16"
+ y="16"
+ width="544"
+ height="544"
+ rx="48"
+ stroke={isLight ? "#000" : "#fff"}
+ stroke-width="32"
+ />
+ <defs>
+ <clipPath id="a">
+ <rect
+ x="32"
+ y="32"
+ width="512"
+ height="512"
+ rx="32"
+ fill={isLight ? "#fff" : "#111827"}
+ />
+ </clipPath>
+ </defs>
+ </svg>
+ );
+}
diff --git a/components/shared/icons/files/sheet.tsx b/components/shared/icons/files/sheet.tsx
new file mode 100644
index 00000000..cedd0b33
--- /dev/null
+++ b/components/shared/icons/files/sheet.tsx
@@ -0,0 +1,50 @@
+export default function SheetIcon({
+ className,
+ isLight = true,
+}: {
+ className?: string;
+ isLight?: boolean;
+}) {
+ return (
+ <svg
+ width="576"
+ height="576"
+ viewBox="0 0 576 576"
+ fill="none"
+ className={className}
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g clipPath="url(#a)">
+ <path fill={isLight ? "#000" : "#fff"} d="M57.5 59.5h454v462h-454z" />
+ <path
+ opacity=".999"
+ fillRule="evenodd"
+ clipRule="evenodd"
+ d="M498 32H78c-24.333 6.333-39.667 21.667-46 46v420c6.333 24.333 21.667 39.667 46 46h420c24.333-6.333 39.667-21.667 46-46V78c-6.333-24.333-21.667-39.667-46-46ZM145.135 197h127.95l-.214 76.36H145.135V197Zm-30 89.341a15.103 15.103 0 0 0 0 4.039v104.071c0 8.284 6.716 15 15 15h315.98c8.284 0 15-6.716 15-15V290.38a15.118 15.118 0 0 0 0-4.04V182c0-8.284-6.716-15-15-15h-315.98c-8.284 0-15 6.716-15 15v104.341Zm315.98-12.981V197H303.086l-.215 76.36h128.244Zm-158.328 30-.214 76.091H145.135V303.36h127.652Zm30 0h128.328v76.091H302.573l.214-76.091Z"
+ fill={isLight ? "#fff" : "#111827"}
+ />
+ </g>
+ <rect
+ x="16"
+ y="16"
+ width="544"
+ height="544"
+ rx="48"
+ stroke={isLight ? "#000" : "#fff"}
+ strokeWidth="32"
+ />
+ <defs>
+ <clipPath id="a">
+ <rect
+ x="32"
+ y="32"
+ width="512"
+ height="512"
+ rx="32"
+ fill={isLight ? "#fff" : "#111827"}
+ />
+ </clipPath>
+ </defs>
+ </svg>
+ );
+}
diff --git a/components/shared/icons/files/slides.tsx b/components/shared/icons/files/slides.tsx
new file mode 100644
index 00000000..8ac36cca
--- /dev/null
+++ b/components/shared/icons/files/slides.tsx
@@ -0,0 +1,50 @@
+export default function SlidesIcon({
+ className,
+ isLight = true,
+}: {
+ className?: string;
+ isLight?: boolean;
+}) {
+ return (
+ <svg
+ width="576"
+ height="576"
+ viewBox="0 0 576 576"
+ fill="none"
+ className={className}
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g clip-path="url(#a)">
+ <path fill={isLight ? "#000" : "#fff"} d="M57 59h454v462H57z" />
+ <path
+ opacity=".999"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M497.5 31.5h-420c-24.333 6.333-39.667 21.667-46 46v420c6.333 24.333 21.667 39.667 46 46h420c24.333-6.333 39.667-21.667 46-46v-420c-6.333-24.333-21.667-39.667-46-46ZM133 160c-19.33 0-35 15.67-35 35v186c0 19.33 15.67 35 35 35h309.347c19.329 0 35-15.67 35-35V195c0-19.33-15.671-35-35-35H133Zm-5 59.347h319.347v136.871H128V219.347Z"
+ fill={isLight ? "#fff" : "#111827"}
+ />
+ </g>
+ <rect
+ x="16"
+ y="16"
+ width="544"
+ height="544"
+ rx="48"
+ stroke={isLight ? "#000" : "#fff"}
+ stroke-width="32"
+ />
+ <defs>
+ <clipPath id="a">
+ <rect
+ x="32"
+ y="32"
+ width="512"
+ height="512"
+ rx="32"
+ fill={isLight ? "#fff" : "#111827"}
+ />
+ </clipPath>
+ </defs>
+ </svg>
+ );
+}