diff --git a/.gitignore b/.gitignore index 77956c8..906d2a6 100644 --- a/.gitignore +++ b/.gitignore @@ -46,4 +46,5 @@ prisma/dev.db /playwright/.cache/ # docker -pgdata \ No newline at end of file +pgdata +certificates \ No newline at end of file diff --git a/components/Modal.tsx b/components/Modal.tsx index 365597f..e9077b2 100644 --- a/components/Modal.tsx +++ b/components/Modal.tsx @@ -9,6 +9,8 @@ type Props = { }; export default function Modal({ toggleModal, className, children }: Props) { + const [drawerIsOpen, setDrawerIsOpen] = React.useState(true); + useEffect(() => { if (window.innerWidth >= 640) { document.body.style.overflow = "hidden"; @@ -22,15 +24,21 @@ export default function Modal({ toggleModal, className, children }: Props) { if (window.innerWidth < 640) { return ( - setTimeout(() => toggleModal(), 100)}> + setTimeout(() => toggleModal(), 100)} + > - -
-
- {children} -
- + setDrawerIsOpen(false)}> + +
+
+ + {children} +
+ + ); diff --git a/public/screenshots/screenshot1.png b/public/screenshots/screenshot1.png new file mode 100644 index 0000000..6c2b982 Binary files /dev/null and b/public/screenshots/screenshot1.png differ diff --git a/public/screenshots/screenshot2.png b/public/screenshots/screenshot2.png new file mode 100644 index 0000000..c9326d3 Binary files /dev/null and b/public/screenshots/screenshot2.png differ diff --git a/public/site.webmanifest b/public/site.webmanifest index 0a9c4ab..f682207 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -1,4 +1,5 @@ { + "id": "/dashboard", "name":"Linkwarden", "short_name":"Linkwarden", "icons":[ @@ -19,6 +20,27 @@ "purpose": "maskable" } ], + "share_target": { + "action": "/api/v1/links/", + "method": "POST", + "enctype": "multipart/form-data", + "params": { + "url": "link" + } + }, + "screenshots": [ + { + "src": "/screenshots/screenshot1.png", + "type": "image/png", + "sizes": "386x731" + }, + { + "src": "/screenshots/screenshot2.png", + "type": "image/png", + "sizes": "1361x861", + "form_factor": "wide" + } + ], "theme_color":"#000000", "background_color":"#000000", "display":"standalone",