Skip to content

Commit

Permalink
feat: ✨ lots of stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
moinulmoin committed Nov 19, 2024
1 parent b7aa030 commit bddd8b4
Show file tree
Hide file tree
Showing 52 changed files with 2,853 additions and 2,927 deletions.
8 changes: 4 additions & 4 deletions emails/thanks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ const ThanksTemp: React.FC<Readonly<ThanksTemplateProps>> = ({ userName }) => (
<Head />
<Preview>Welcome to ChadNext.</Preview>
<Tailwind>
<Body className=" bg-gray-100">
<Body className="bg-gray-100">
<Container className="mx-auto my-10 bg-white">
<Section className="my-8">
<Section className="m-6">
<Text className="mx-10 text-lg font-bold">Hi {userName} 👋 ,</Text>
<Text className="mx-10 text-base">
Welcome to ChadNext. Now you can build your idea faster. You can
star the project on GitHub. That would be very helpful.
</Text>
<Section className="my-5 text-center">
<Button
className="bg-bg-white inline-block rounded-md bg-slate-900 px-6 py-3 text-base text-white"
className="inline-block px-6 py-3 text-base text-white rounded-md bg-bg-white bg-slate-900"
href="https://github.com/moinulmoin/chadnext"
target="_blank"
rel="noopener noreferrer"
>
Star on GitHub
</Button>
</Section>
<Text className="mx-10 text-base font-light">Best,</Text>
<Text className="mx-10 text-base font-light">Best,</Text>
<Text className="mx-10 text-base font-bold">ChadNext</Text>
</Section>
</Container>
Expand Down
26 changes: 4 additions & 22 deletions emails/verification.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import {
Body,
Column,
Container,
Head,
Html,
Img,
Preview,
Row,
Section,
Tailwind,
Text,
Text
} from "@react-email/components";

const siteUrl =
Expand All @@ -29,24 +26,9 @@ const VerificationTemp: React.FC<Readonly<VerificationTemplateProps>> = ({
<Preview>Verify your email</Preview>
<Tailwind>
<Body className="bg-gray-100">
<Container className="m-10 mx-auto bg-white p-10">
<Section className="mx-auto text-center">
<Row>
<Column align="right">
<Img
src={`${siteUrl}/chad-next.png`}
height="50"
alt="ChadNext logo"
className="inline-block"
/>
</Column>
<Column align="left">
<Text className="ml-2 text-lg font-bold">ChadNext</Text>
</Column>
</Row>
</Section>
<Text className="my-4 text-lg">Hi, {userName.split(" ")[0]}</Text>
<Text className="text-center text-base font-semibold">
<Container className="p-6 m-10 mx-auto bg-white">
<Text className="mb-4 text-lg">Hi, {userName.split(" ")[0]}</Text>
<Text className="text-base font-semibold text-center">
Here is your verification code.
</Text>
<Section className="mt-4 text-center">
Expand Down
5 changes: 4 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const withSerwist = withSerwistInit({
disable: process.env.NODE_ENV !== "production",
});

/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
redirects: async () => {
return [
Expand All @@ -22,6 +25,6 @@ const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
};
}

export default withSerwist(nextConfig);
103 changes: 52 additions & 51 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "prisma generate && next dev",
"dev": "prisma generate && next dev --turbo",
"dev:email": "email dev -p 9000",
"dev:content": "velite build --watch",
"build:content": "velite build --clean",
Expand All @@ -14,65 +14,66 @@
"preinstall": "lefthook install"
},
"dependencies": {
"@hookform/resolvers": "^3.3.2",
"@hookform/resolvers": "^3.9.1",
"@lucia-auth/adapter-prisma": "4.0.1",
"@prisma/client": "^5.7.0",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-menubar": "^1.0.4",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@react-email/components": "^0.0.12",
"@serwist/next": "^9.0.3",
"@uploadthing/react": "^7.0.2",
"arctic": "^1.9.1",
"dayjs": "^1.11.10",
"input-otp": "^1.2.4",
"lucia": "3.2.0",
"lucide-react": "^0.447.0",
"nanoid": "^5.0.4",
"next": "14.2.14",
"next-international": "^1.1.4",
"next-themes": "^0.3.0",
"@oslojs/crypto": "^1.0.1",
"@oslojs/encoding": "^1.1.0",
"@prisma/client": "^5.22.0",
"@radix-ui/react-alert-dialog": "^1.1.2",
"@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-menubar": "^1.1.2",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.1",
"@radix-ui/react-toast": "^1.2.2",
"@react-email/components": "^0.0.28",
"@serwist/next": "^9.0.10",
"@uploadthing/react": "^7.1.1",
"arctic": "^2.2.2",
"dayjs": "^1.11.13",
"input-otp": "^1.4.1",
"lucide-react": "^0.460.0",
"nanoid": "^5.0.8",
"next": "15.0.3",
"next-international": "^1.3.1",
"next-themes": "^0.4.3",
"oslo": "^1.2.1",
"postcss": "8.4.35",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-email": "3.0.1",
"react-hook-form": "^7.49.2",
"postcss": "8.4.49",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-email": "3.0.2",
"react-hook-form": "^7.53.2",
"resend": "^4.0.0",
"stripe": "^14.8.0",
"uploadthing": "^7.0.2",
"zod": "^3.22.4"
"stripe": "^14.25.0",
"uploadthing": "^7.3.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@tailwindcss/line-clamp": "^0.4.4",
"@tailwindcss/typography": "^0.5.10",
"@types/node": "20.11.20",
"@types/react": "18.2.79",
"@types/react-dom": "18.2.19",
"autoprefixer": "10.4.16",
"@tailwindcss/typography": "^0.5.15",
"@types/node": "22.9.0",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"autoprefixer": "10.4.20",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"clsx": "^2.1.1",
"encoding": "^0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.2",
"eslint-config-next": "15.0.3",
"eslint-config-prettier": "^8.10.0",
"lefthook": "^1.5.5",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "^0.6.2",
"prisma": "^5.7.0",
"serwist": "^9.0.3",
"sharp": "^0.33.1",
"tailwind-merge": "^2.3.0",
"tailwindcss": "3.4.1",
"lefthook": "^1.8.4",
"prettier": "3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"prisma": "^5.22.0",
"serwist": "^9.0.10",
"tailwind-merge": "^2.5.4",
"tailwindcss": "3.4.15",
"tailwindcss-animate": "^1.0.7",
"typescript": "5.3.3",
"velite": "0.1.0"
}
"typescript": "5.6.3",
"velite": "0.2.1"
},
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
}
Loading

0 comments on commit bddd8b4

Please sign in to comment.