diff --git a/public/icon-192x192.png b/public/icon-192x192.png new file mode 100644 index 0000000..447bac4 Binary files /dev/null and b/public/icon-192x192.png differ diff --git a/public/icon-512x512.png b/public/icon-512x512.png new file mode 100644 index 0000000..41d06c8 Binary files /dev/null and b/public/icon-512x512.png differ diff --git a/public/next.svg b/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/short.svg b/public/short.svg new file mode 100644 index 0000000..8abd480 --- /dev/null +++ b/public/short.svg @@ -0,0 +1,11 @@ + diff --git a/public/vercel.svg b/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/app/favicon.ico b/src/app/favicon.ico index 718d6fe..16fa5b2 100644 Binary files a/src/app/favicon.ico and b/src/app/favicon.ico differ diff --git a/src/app/globals.css b/src/app/globals.css index 93da6e7..2972a57 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -19,11 +19,11 @@ h2 { } .form-field-error { - @apply border-red-500; + @apply common-red; } .form-label-error { - @apply text-red-500; + @apply common-red; } form { @@ -51,11 +51,11 @@ button { } .zebra { - @apply even:bg-slate-800 p-2 rounded; + @apply even:bg-slate-800 p-2 py-5 rounded; } .common-red { - @apply text-red-500; + @apply text-red-800; } @keyframes slide-in { diff --git a/src/app/manifest.ts b/src/app/manifest.ts new file mode 100644 index 0000000..f87ae17 --- /dev/null +++ b/src/app/manifest.ts @@ -0,0 +1,27 @@ +import type { MetadataRoute } from "next"; + +export default function manifest(): MetadataRoute.Manifest { + return { + name: "traberph/short", + short_name: "short", + description: "A URL shortener", + start_url: "/~/dash", + display: "standalone", + theme_color: "#111827", + background_color: "#111827", + icons: [ + { + src:'/icon-192x192.png', + sizes: '192x192', + type: 'image/png', + }, + { + src:'/icon-512x512.png', + sizes: '512x512', + type: 'image/png', + }, + ], + }; +} + + \ No newline at end of file diff --git a/src/app/~/dash/[uuid]/page.tsx b/src/app/~/dash/[uuid]/page.tsx index dfe57d9..b5fd2c0 100644 --- a/src/app/~/dash/[uuid]/page.tsx +++ b/src/app/~/dash/[uuid]/page.tsx @@ -7,7 +7,7 @@ import CustomPageDashboard from "@/components/CustomPageDashboard"; import LinkFavicon from "@/components/LinkFavicon"; import { hashToColor } from "@/utils"; import PinPageToRootForm from "@/components/forms/pinPageToRootForm"; -import { ArrowTopRightOnSquareIcon } from "@heroicons/react/24/solid"; +import { ArrowTopRightOnSquareIcon, BookmarkIcon } from "@heroicons/react/24/solid"; import QRCode from "@/components/QRCode"; interface PageProps { @@ -90,7 +90,7 @@ export default async function DetailedStats({ params }: PageProps) {
: ""}Pinned to root
: ""} + {page.pinnedPage ?{page.shortcode}
+{redirectPage ? redirectPage.dest : customPage.title}
+{page.shortcode}
-{redirectPage ? redirectPage.dest : customPage.title}
- -Pinned to root
: ""} -{page._count.stat} visits
: ""} - {//{page._count.stat} visits
: ""}