From 3b6d2dec25bcf1650a1c4ff65f719076c2949e63 Mon Sep 17 00:00:00 2001 From: KMKoushik Date: Tue, 23 Apr 2024 22:11:23 +1000 Subject: [PATCH] Add transactional mail animations --- apps/marketing/package.json | 1 + apps/marketing/src/app/page.tsx | 98 +++++++++++++++++++++++++++------ pnpm-lock.yaml | 5 +- 3 files changed, 86 insertions(+), 18 deletions(-) diff --git a/apps/marketing/package.json b/apps/marketing/package.json index 8568e9f..0bb7890 100644 --- a/apps/marketing/package.json +++ b/apps/marketing/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "@heroicons/react": "^2.1.3", + "date-fns": "^3.6.0", "framer-motion": "^11.0.24", "lucide-react": "^0.359.0", "next": "14.1.4", diff --git a/apps/marketing/src/app/page.tsx b/apps/marketing/src/app/page.tsx index 4f3fcc0..a457384 100644 --- a/apps/marketing/src/app/page.tsx +++ b/apps/marketing/src/app/page.tsx @@ -8,6 +8,7 @@ import { ChatBubbleOvalLeftEllipsisIcon, BellAlertIcon, } from "@heroicons/react/24/solid"; +import { formatDate } from "date-fns"; export default function Home() { return ( @@ -57,23 +58,86 @@ export default function Home() {
  • Get notified of email bounces and complaints.
  • -
    - {/* */} +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    + Sent +
    +
    +
    + {formatDate(Date.now() - 100000, "MMM dd, hh:mm a")} +
    +
    + We received your request and sent the email to recipient's + server. +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    + Delivered +
    +
    +
    + {formatDate(new Date(), "MMM dd, hh:mm a")} +
    +
    + Mail is successfully delivered to the recipient. +
    +
    +
    +
    +
    diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 76d123f..3a7b2d7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,6 +30,9 @@ importers: '@heroicons/react': specifier: ^2.1.3 version: 2.1.3(react@18.2.0) + date-fns: + specifier: ^3.6.0 + version: 3.6.0 framer-motion: specifier: ^11.0.24 version: 11.0.24(react-dom@18.2.0)(react@18.2.0) @@ -4483,7 +4486,7 @@ packages: enhanced-resolve: 5.16.0 eslint: 8.57.0 eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0)(eslint@8.57.0) + eslint-plugin-import: 2.29.1(eslint@8.57.0) fast-glob: 3.3.2 get-tsconfig: 4.7.3 is-core-module: 2.13.1