diff --git a/apps/marketing/public/Logo-bold.png b/apps/marketing/public/Logo-bold.png new file mode 100644 index 0000000..0bbe5e0 Binary files /dev/null and b/apps/marketing/public/Logo-bold.png differ diff --git a/apps/marketing/public/app.webp b/apps/marketing/public/app.webp new file mode 100644 index 0000000..40cc5d2 Binary files /dev/null and b/apps/marketing/public/app.webp differ diff --git a/apps/marketing/public/favicon.ico b/apps/marketing/public/favicon.ico new file mode 100644 index 0000000..3cdfa6b Binary files /dev/null and b/apps/marketing/public/favicon.ico differ diff --git a/apps/marketing/public/logo.svg b/apps/marketing/public/logo.svg new file mode 100644 index 0000000..f5ff6fa --- /dev/null +++ b/apps/marketing/public/logo.svg @@ -0,0 +1,13 @@ + diff --git a/apps/marketing/public/next.svg b/apps/marketing/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/apps/marketing/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/marketing/public/vercel.svg b/apps/marketing/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/apps/marketing/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/marketing/src/app/favicon.ico b/apps/marketing/src/app/favicon.ico deleted file mode 100644 index 4570eb8..0000000 Binary files a/apps/marketing/src/app/favicon.ico and /dev/null differ diff --git a/apps/marketing/src/app/layout.tsx b/apps/marketing/src/app/layout.tsx index fa66b1e..f0569e3 100644 --- a/apps/marketing/src/app/layout.tsx +++ b/apps/marketing/src/app/layout.tsx @@ -7,7 +7,8 @@ const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { title: "Unsend", - description: "Open source sending infrastructure", + description: "Open source sending infrastructure for developers", + icons: [{ rel: "icon", url: "/favicon.ico" }], }; export default function RootLayout({ diff --git a/apps/marketing/src/app/page.tsx b/apps/marketing/src/app/page.tsx index 2f5f9ac..7e68d14 100644 --- a/apps/marketing/src/app/page.tsx +++ b/apps/marketing/src/app/page.tsx @@ -1,4 +1,4 @@ -"use client" +"use client"; import { motion } from "framer-motion"; import { @@ -21,27 +21,26 @@ import { ListOrdered, } from "lucide-react"; import { formatDate } from "date-fns"; -import { Code } from "@unsend/ui/src/code" -import { hi } from "date-fns/locale"; - +import { Code } from "@unsend/ui/src/code"; +import Link from "next/link"; +import Image from "next/image"; const jsCode = `const requestOptions = { method: "POST", headers: { "Accept": "application/json", "Content-Type": "application/json", - "Authorization": "Bearer us_ad9a79256e366399c747cbf0b38eca3c472e8a2e" + "Authorization": "Bearer us_1a2b3c4d5e6f7f8g" }, body: JSON.stringify({ - "to": "koushikmohan1996@gmail.com", - "from": "hello@test.splitpro.app", - "subject": "Test mail", - "html": "
Hello this is a test mail
" + "to": "test@company.com", + "from": "hello@unsend.dev", + "subject": "Unsend email", + "html": "Unsend is the best open source product to send emails
" }), - redirect: "follow" }; -fetch("http://localhost:3000/api/v1/emails", requestOptions) +fetch("http://unsend.dev/api/v1/emails", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.error(error)); @@ -50,18 +49,18 @@ fetch("http://localhost:3000/api/v1/emails", requestOptions) const pythonCode = `import requests import json -url = "http://localhost:3000/api/v1/emails" +url = "http://unsend.dev/api/v1/emails" payload = json.dumps({ - "to": "koushikmohan1996@gmail.com", - "from": "hello@test.splitpro.app", - "subject": "Test mail", - "html": "Hello this is a test mail
" + "to": "test@company.com", + "from": "hello@unsend.dev", + "subject": "Unsend email", + "html": "Unsend is the best open source product to send emails
" }) headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', - 'Authorization': 'Bearer us_ad9a79256e366399c747cbf0b38eca3c472e8a2e' + 'Authorization': 'Bearer us_1a2b3c4d5e6f7f8g' } response = requests.request("POST", url, headers=headers, data=payload) @@ -72,36 +71,36 @@ const rubyCode = `require 'uri' require 'net/http' require 'json' -url = URI("http://localhost:3000/api/v1/emails") +url = URI("http://unsend.dev/api/v1/emails") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Post.new(url) request["Accept"] = 'application/json' request["Content-Type"] = 'application/json' -request["Authorization"] = 'Bearer us_ad9a79256e366399c747cbf0b38eca3c472e8a2e' +request["Authorization"] = 'Bearer us_1a2b3c4d5e6f7f8g' request.body = JSON.dump({ - "to" => "koushikmohan1996@gmail.com", - "from" => "hello@test.splitpro.app", - "subject" => "Test mail", - "html" => "Hello this is a test mail
" + "to" => "test@company.com", + "from" => "hello@unsend.dev", + "subject" => "Unsend email", + "html" => "Unsend is the best open source product to send emails
" }) response = http.request(request) puts response.read_body`; -const phpCode = `$url = "http://localhost:3000/api/v1/emails"; +const phpCode = `$url = "http://unsend.dev/api/v1/emails"; $payload = json_encode(array( - "to" => "koushikmohan1996@gmail.com", - "from" => "hello@test.splitpro.app", - "subject" => "Test mail", - "html" => "Hello this is a test mail
" + "to" => "test@company.com", + "from" => "hello@unsend.dev", + "subject" => "Unsend email", + "html" => "Unsend is the best open source product to send emails
" )); $headers = array( "Accept: application/json", "Content-Type: application/json", - "Authorization: Bearer us_ad9a79256e366399c747cbf0b38eca3c472e8a2e" + "Authorization: Bearer us_1a2b3c4d5e6f7f8g" ); $ch = curl_init($url); @@ -117,13 +116,54 @@ if (curl_errno($ch)) { echo $response; }`; +const cUrl = `curl --location 'https://unsend.dev/v1/emails' \\ +--header 'Accept: application/json' \\ +--header 'Content-Type: application/json' \\ +--header 'Authorization: Bearer us_44c1071bd30058322f89a09805522d7341a47b5e' \\ +--data-raw '{ + "to": "test@company.com", + "from": "hello@unsend.dev", + "subject": "Unsend email", + "html": "Unsend is the best open source product to send emails
", +}'`; export default function Home() { return (Reach your users
SMS & Push notification
Integrate in minutes
-
-
+
diff --git a/packages/ui/src/code.tsx b/packages/ui/src/code.tsx
index c23512f..5922087 100644
--- a/packages/ui/src/code.tsx
+++ b/packages/ui/src/code.tsx
@@ -11,7 +11,7 @@ import { ClipboardCopy, Check } from "lucide-react";
import { useState } from "react";
import { cn } from "../lib/utils";
-type Language = "js" | "ruby" | "php" | "python";
+type Language = "js" | "ruby" | "php" | "python" | "curl";
type CodeProps = {
codeBlocks: {
@@ -85,7 +85,7 @@ export const Code: React.FC