diff --git a/app/routes/admin.email._index.tsx b/app/routes/admin.email._index.tsx new file mode 100644 index 00000000..8534225d --- /dev/null +++ b/app/routes/admin.email._index.tsx @@ -0,0 +1,106 @@ +import { Link } from "@remix-run/react"; +import React from "react"; + +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "~/components/ui/card"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "~/components/ui/tabs"; + +interface TemplateOptionProperties { + title: string; + description: string; + icon: React.ReactNode; + href: string; +} + +const EmailManagementDashboard: React.FC = () => { + return ( +
+
{/* Replace with Sidebar Nav */} +
+ + + + New Template + + + Manage Templates + + + + + + + Create a New Template + + + Choose an option below to begin crafting your email design. + + + + } + href="/admin/email/generate-html" + /> + } + href="/admin/email/edit-template" + /> + + + + + {/* Content for managing templates */} + + +
+
+ ); +}; + +const TemplateOption: React.FC = ({ + title, + description, + icon, + href, +}) => { + return ( + + + + {icon} +
+

+ {title} + {description} +

+
+
+
+ + ); +}; + +const CodeIcon: React.FC = () => { + return code icon; +}; + +const FileIcon: React.FC = () => { + return edit icon; +}; + +export default EmailManagementDashboard; diff --git a/app/routes/admin.email.edit-template.tsx b/app/routes/admin.email.edit-template.tsx new file mode 100644 index 00000000..5a30e845 --- /dev/null +++ b/app/routes/admin.email.edit-template.tsx @@ -0,0 +1,5 @@ +const EditTemplate = () => { + return
EditTemplate
; +}; + +export default EditTemplate; diff --git a/app/routes/admin.email.generate-html.tsx b/app/routes/admin.email.generate-html.tsx new file mode 100644 index 00000000..431ff95b --- /dev/null +++ b/app/routes/admin.email.generate-html.tsx @@ -0,0 +1,5 @@ +const GenerateHTMLTemplate = () => { + return
GenerateHTMLTemplate
; +}; + +export default GenerateHTMLTemplate; diff --git a/package-lock.json b/package-lock.json index a63564e2..59abc5f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14487,4 +14487,4 @@ } } } -} +} \ No newline at end of file diff --git a/public/code-icon.svg b/public/code-icon.svg new file mode 100644 index 00000000..785d96b5 --- /dev/null +++ b/public/code-icon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/public/edit-icon.svg b/public/edit-icon.svg new file mode 100644 index 00000000..0861ccd4 --- /dev/null +++ b/public/edit-icon.svg @@ -0,0 +1,6 @@ + + + + + +