Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge branch feature/landing-page (#4) #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ const config = {
locales: ["en"],
defaultLocale: "en",
},
webpack: (config) => {
config.resolve.fallback = { fs: false, net: false, tls: false };
return config;
},
};
export default config;
3,046 changes: 2,947 additions & 99 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,23 @@
"@headlessui/react": "^1.7.15",
"@heroicons/react": "^2.0.18",
"@prisma/client": "^4.14.0",
"@rainbow-me/rainbowkit": "^1.0.7",
"@t3-oss/env-nextjs": "^0.3.1",
"@tanstack/react-query": "^4.29.7",
"@trpc/client": "^10.26.0",
"@trpc/next": "^10.26.0",
"@trpc/react-query": "^10.26.0",
"@trpc/server": "^10.26.0",
"clsx": "^1.2.1",
"framer-motion": "^10.12.20",
"next": "^13.4.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.45.2",
"react-hot-toast": "^2.4.1",
"superjson": "1.12.2",
"viem": "^1.3.0",
"wagmi": "^1.3.9",
"zod": "^3.21.4"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
-- AlterTable
ALTER TABLE "User" ADD COLUMN "bannerUrl" TEXT,
ADD COLUMN "profileUrl" TEXT;

-- CreateTable
CREATE TABLE "Project" (
"id" TEXT NOT NULL,
"email" TEXT NOT NULL,
"isValidated" BOOLEAN NOT NULL DEFAULT false,
"name" TEXT NOT NULL,
"description" TEXT NOT NULL,
"tags" TEXT[],
"urlBanner" TEXT,
"urlProfile" TEXT,
"userId" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,

CONSTRAINT "Project_pkey" PRIMARY KEY ("id")
);

-- CreateTable
CREATE TABLE "WaitlistApplication" (
"id" TEXT NOT NULL,
"applicantEmail" TEXT NOT NULL,
"applicantEthAddress" TEXT NOT NULL,
"userId" TEXT NOT NULL,
"projectId" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,

CONSTRAINT "WaitlistApplication_pkey" PRIMARY KEY ("id")
);

-- CreateTable
CREATE TABLE "SocialMediaLink" (
"id" TEXT NOT NULL,
"platformName" TEXT NOT NULL,
"url" TEXT NOT NULL,
"userId" TEXT NOT NULL,
"projectId" TEXT NOT NULL,

CONSTRAINT "SocialMediaLink_pkey" PRIMARY KEY ("id")
);

-- CreateIndex
CREATE UNIQUE INDEX "Project_email_key" ON "Project"("email");

-- CreateIndex
CREATE INDEX "Project_userId_idx" ON "Project"("userId");

-- CreateIndex
CREATE INDEX "WaitlistApplication_projectId_userId_applicantEmail_applica_idx" ON "WaitlistApplication"("projectId", "userId", "applicantEmail", "applicantEthAddress");

-- AddForeignKey
ALTER TABLE "Project" ADD CONSTRAINT "Project_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "WaitlistApplication" ADD CONSTRAINT "WaitlistApplication_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "WaitlistApplication" ADD CONSTRAINT "WaitlistApplication_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "SocialMediaLink" ADD CONSTRAINT "SocialMediaLink_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "SocialMediaLink" ADD CONSTRAINT "SocialMediaLink_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "Project" ADD COLUMN "url" TEXT;

-- AlterTable
ALTER TABLE "User" ADD COLUMN "url" TEXT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- DropForeignKey
ALTER TABLE "WaitlistApplication" DROP CONSTRAINT "WaitlistApplication_userId_fkey";

-- AlterTable
ALTER TABLE "WaitlistApplication" ALTER COLUMN "userId" DROP NOT NULL;

-- AddForeignKey
ALTER TABLE "WaitlistApplication" ADD CONSTRAINT "WaitlistApplication_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- DropForeignKey
ALTER TABLE "Project" DROP CONSTRAINT "Project_userId_fkey";

-- AlterTable
ALTER TABLE "Project" ALTER COLUMN "userId" DROP NOT NULL;

-- AddForeignKey
ALTER TABLE "Project" ADD CONSTRAINT "Project_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
64 changes: 57 additions & 7 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
}

datasource db {
Expand All @@ -11,10 +11,60 @@ datasource db {
}

model User {
id String @id @default(cuid())
role String
email String @unique
ethAddress String @unique
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
id String @id @default(cuid())
email String @unique
ethAddress String @unique
bannerUrl String?
profileUrl String?
role String
url String?
projects Project[]
socialMediaLinks SocialMediaLink[]
waitlistApplications WaitlistApplication[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}

model Project {
id String @id @default(cuid())
email String @unique
name String
description String
isValidated Boolean @default(false)
tags String[]
url String?
urlBanner String?
urlProfile String?
User User? @relation(fields: [userId], references: [id])
userId String?
applications WaitlistApplication[]
socialMediaLinks SocialMediaLink[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

@@index([userId])
}

model WaitlistApplication {
id String @id @default(cuid())
applicantEmail String
applicantEthAddress String
User User? @relation(fields: [userId], references: [id])
userId String?
Project Project @relation(fields: [projectId], references: [id])
projectId String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

@@index([projectId, userId, applicantEmail, applicantEthAddress])
}

model SocialMediaLink {
id String @id @default(cuid())
platformName String
url String
User User? @relation(fields: [userId], references: [id])
userId String
Project Project? @relation(fields: [projectId], references: [id])
projectId String
}
Binary file removed public/favicon.ico
Binary file not shown.
Binary file added public/images/logos/d-logo-beigeWhite-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/ladao-orange-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/ladao.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pdf/xocolatl_whitepaper_v0.1.pdf
Binary file not shown.
10 changes: 10 additions & 0 deletions public/svg/logos/d-logo-beigeWhite-512x512.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions public/svg/logos/lens_logo_only.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading