From 0e7181d6cf59dc6debb5ff68da2face63b0d4cb3 Mon Sep 17 00:00:00 2001 From: MarconLP <13001502+MarconLP@users.noreply.github.com> Date: Sun, 16 Apr 2023 17:37:13 +0200 Subject: [PATCH] add new landing page --- package-lock.json | 15 ++++ package.json | 1 + src/pages/index.tsx | 191 +++++++++++++++++++++++++++++++++++++++----- 3 files changed, 185 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0ecb9d5..beabac6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@aws-sdk/client-s3": "^3.310.0", "@aws-sdk/s3-request-presigner": "^3.310.0", "@headlessui/react": "^1.7.13", + "@heroicons/react": "^2.0.17", "@next-auth/prisma-adapter": "^1.0.5", "@popperjs/core": "^2.11.7", "@prisma/client": "^4.11.0", @@ -1845,6 +1846,14 @@ "react-dom": "^16 || ^17 || ^18" } }, + "node_modules/@heroicons/react": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.17.tgz", + "integrity": "sha512-90GMZktkA53YbNzHp6asVEDevUQCMtxWH+2UK2S8OpnLEu7qckTJPhNxNQG52xIR1WFTwFqtH6bt7a60ZNcLLA==", + "peerDependencies": { + "react": ">= 16" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", @@ -8378,6 +8387,12 @@ "client-only": "^0.0.1" } }, + "@heroicons/react": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.17.tgz", + "integrity": "sha512-90GMZktkA53YbNzHp6asVEDevUQCMtxWH+2UK2S8OpnLEu7qckTJPhNxNQG52xIR1WFTwFqtH6bt7a60ZNcLLA==", + "requires": {} + }, "@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", diff --git a/package.json b/package.json index fd005b2..9e33111 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@aws-sdk/client-s3": "^3.310.0", "@aws-sdk/s3-request-presigner": "^3.310.0", "@headlessui/react": "^1.7.13", + "@heroicons/react": "^2.0.17", "@next-auth/prisma-adapter": "^1.0.5", "@popperjs/core": "^2.11.7", "@prisma/client": "^4.11.0", diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 79689c0..ce042f0 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,42 +1,189 @@ import { type NextPage } from "next"; import Head from "next/head"; -import Link from "next/link"; import { signIn, signOut, useSession } from "next-auth/react"; +import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/outline"; import { api } from "~/utils/api"; +import { Dialog } from "@headlessui/react"; +import { useState } from "react"; +import Link from "next/link"; + +const navigation = [ + { name: "Features", href: "#features" }, + { name: "Pricing", href: "/pricing" }, + { name: "Discord", href: "https://discord.com/invite/invalid" }, +]; const Home: NextPage = () => { - const hello = api.example.hello.useQuery({ text: "from tRPC" }); + const [mobileMenuOpen, setMobileMenuOpen] = useState(false); return ( <> - Create T3 App + Screenity | Async video messaging -
-
-

- Create T3 App -

-
- -

Go to Videos →

-
The entire videos collection
- +
+
+ + +
+ +
+ + Your Company + + + +
+
+
+
+ {navigation.map((item) => ( + + {item.name} + + ))} +
+
+ + Log in + +
+
+
+
+
+
+ +
+
+ ); };