From 9c92803c4ca41332d426950d49867aa1e4f87373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Thu, 22 Feb 2024 21:50:30 +0100 Subject: [PATCH] a looooot --- apps/public/package.json | 1 + apps/public/src/app/footer.tsx | 62 +++ apps/public/src/app/hero.tsx | 55 +- apps/public/src/app/layout.tsx | 18 +- apps/public/src/app/page.tsx | 50 -- apps/public/src/app/privacy/page.tsx | 524 ++++++++++++++++++ apps/public/src/app/terms/page.tsx | 458 +++++++++++++++ apps/public/src/components/Logo.tsx | 6 +- apps/public/tailwind.config.js | 2 +- apps/sdk-api/src/bots/index.ts | 2 +- .../src/controllers/event.controller.ts | 100 +++- .../src/controllers/misc.controller.ts | 2 - .../src/controllers/profile.controller.ts | 253 ++------- apps/sdk-api/src/index.ts | 5 +- apps/sdk-api/src/utils/parseUserAgent.ts | 4 + apps/test/next-env.d.ts | 1 + apps/test/next.config.mjs | 7 +- apps/test/package.json | 9 +- apps/test/public/op.js | 2 +- apps/test/src/app/app-dir/page.component.tsx | 12 + apps/test/src/app/app-dir/page.tsx | 55 ++ apps/test/src/app/layout.tsx | 22 + apps/test/src/pages/_app.tsx | 22 +- apps/test/src/pages/_document.tsx | 22 - apps/test/src/pages/test.tsx | 81 ++- apps/test/tsconfig.json | 16 +- .../[projectId]/events/event-list.tsx | 7 +- .../[projectId]/events/page.tsx | 11 +- .../[projectId]/layout-sidebar.tsx | 17 +- .../[organizationId]/[projectId]/layout.tsx | 7 +- .../[projectId]/overview-metrics.tsx | 18 +- .../[organizationId]/[projectId]/page.tsx | 2 +- .../[projectId]/profiles/[profileId]/page.tsx | 159 ++++-- .../[projectId]/profiles/list-profiles.tsx | 67 --- .../[projectId]/profiles/page.tsx | 49 +- .../profiles/profile-list-item.tsx | 46 +- .../[projectId]/profiles/profile-list.tsx | 74 +++ .../app/(public)/share/overview/[id]/page.tsx | 2 +- .../overview-filters-drawer-content.tsx | 65 ++- .../filters/overview-filters-drawer.tsx | 22 +- .../src/components/ui/gradient-background.tsx | 24 + apps/web/src/hooks/useProfileProperties.ts | 10 + apps/web/src/hooks/useProfileValues.ts | 10 + apps/web/src/server/api/routers/profile.ts | 61 +- .../src/jobs/events.create-session-end.ts | 5 +- packages/common/src/object.ts | 12 +- packages/common/src/profileId.ts | 6 +- packages/db/clickhouse_tables.sql | 29 +- packages/db/src/services/event.service.ts | 114 ++-- packages/db/src/services/profile.service.ts | 198 ++++++- packages/queue/src/queues.ts | 2 +- packages/sdk-native/index.ts | 4 +- packages/sdk-next/index.tsx | 110 ++++ packages/sdk-next/package.json | 36 ++ packages/sdk-next/tsconfig.json | 6 + packages/sdk-next/tsup.config.ts | 9 + packages/sdk-web/cdn.ts | 38 +- packages/sdk-web/index.ts | 48 +- packages/sdk/index.ts | 80 ++- packages/types/src/sdk.types.ts | 10 +- pnpm-lock.yaml | 221 +++++++- 61 files changed, 2689 insertions(+), 681 deletions(-) create mode 100644 apps/public/src/app/footer.tsx create mode 100644 apps/public/src/app/privacy/page.tsx create mode 100644 apps/public/src/app/terms/page.tsx create mode 100644 apps/test/src/app/app-dir/page.component.tsx create mode 100644 apps/test/src/app/app-dir/page.tsx create mode 100644 apps/test/src/app/layout.tsx delete mode 100644 apps/test/src/pages/_document.tsx delete mode 100644 apps/web/src/app/(app)/[organizationId]/[projectId]/profiles/list-profiles.tsx create mode 100644 apps/web/src/app/(app)/[organizationId]/[projectId]/profiles/profile-list.tsx create mode 100644 apps/web/src/components/ui/gradient-background.tsx create mode 100644 apps/web/src/hooks/useProfileProperties.ts create mode 100644 apps/web/src/hooks/useProfileValues.ts create mode 100644 packages/sdk-next/index.tsx create mode 100644 packages/sdk-next/package.json create mode 100644 packages/sdk-next/tsconfig.json create mode 100644 packages/sdk-next/tsup.config.ts diff --git a/apps/public/package.json b/apps/public/package.json index c4f0484f..64d6a733 100644 --- a/apps/public/package.json +++ b/apps/public/package.json @@ -45,6 +45,7 @@ "@mixan/eslint-config": "workspace:*", "@mixan/prettier-config": "workspace:*", "@mixan/tsconfig": "workspace:*", + "@tailwindcss/typography": "^0.5.10", "@types/node": "^18.16.0", "@types/react": "^18.2.20", "@types/react-dom": "^18.2.7", diff --git a/apps/public/src/app/footer.tsx b/apps/public/src/app/footer.tsx new file mode 100644 index 00000000..9dcad137 --- /dev/null +++ b/apps/public/src/app/footer.tsx @@ -0,0 +1,62 @@ +import { Logo } from '@/components/Logo'; +import Image from 'next/image'; +import Link from 'next/link'; + +import { Heading2, Lead2 } from './copy'; +import { JoinWaitlist } from './join-waitlist'; + +export default function Footer() { + return ( + + ); +} diff --git a/apps/public/src/app/hero.tsx b/apps/public/src/app/hero.tsx index cfbb61b0..a57f4eb7 100644 --- a/apps/public/src/app/hero.tsx +++ b/apps/public/src/app/hero.tsx @@ -38,41 +38,27 @@ const features = [ export function Hero({ waitlistCount }: { waitlistCount: number }) { return ( -
-
-
-
- -
-
-
- -
-
- - An open-source -
- alternative to Mixpanel -
-

- Mixpanel + Plausible ={' '} - Openpanel! A simple - analytics tool that your wallet can afford. +

+
+ + An open-source +
+ alternative to Mixpanel +
+

+ Mixpanel + Plausible ={' '} + Openpanel! A simple + analytics tool that your wallet can afford. +

+ +
+

Get ahead of the curve and join our waiting list{' - '}

+

+ there are already{' '} + {waitlistCount} savvy individuals on board! ๐ŸŽ‰

- -
-

Get ahead of the curve and join our waiting list{' - '}

-

- there are already{' '} - {waitlistCount} savvy individuals on board! ๐ŸŽ‰ -

-
- {/*
+
+ {/*
{features.map(({ icon: Icon, title }) => (
@@ -80,7 +66,6 @@ export function Hero({ waitlistCount }: { waitlistCount: number }) {
))}
*/} -
); diff --git a/apps/public/src/app/layout.tsx b/apps/public/src/app/layout.tsx index 69d2d43a..8b36adbe 100644 --- a/apps/public/src/app/layout.tsx +++ b/apps/public/src/app/layout.tsx @@ -2,10 +2,12 @@ import { cn } from '@/utils/cn'; import '@/styles/globals.css'; +import { Logo } from '@/components/Logo'; import type { Metadata } from 'next'; import { Bricolage_Grotesque } from 'next/font/google'; import Script from 'next/script'; +import Footer from './footer'; import { defaultMeta } from './meta'; export const metadata: Metadata = { @@ -34,7 +36,21 @@ export default function RootLayout({ font.className )} > - {children} +
+
+
+ +
+
+
+
+
{children}
+