Skip to content

Commit

Permalink
added initial register and signin form
Browse files Browse the repository at this point in the history
  • Loading branch information
me-marzooq committed Sep 16, 2024
1 parent 9ff3b3f commit ecf03bb
Show file tree
Hide file tree
Showing 10 changed files with 307 additions and 149 deletions.
2 changes: 2 additions & 0 deletions backend/src/modules/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ export class AuthController {
return req.user;
}
}


175 changes: 171 additions & 4 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@
"lint": "next lint"
},
"dependencies": {
"@reduxjs/toolkit": "^2.2.7",
"next": "14.2.5",
"react": "^18",
"react-dom": "^18",
"next": "14.2.5"
"react-redux": "^9.1.2",
"react-toastify": "^10.0.5"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"daisyui": "^4.12.10",
"eslint": "^8",
"eslint-config-next": "14.2.5",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "14.2.5"
"typescript": "^5"
}
}
12 changes: 12 additions & 0 deletions frontend/src/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { AuthModal } from "@/components/AuthModal";
import React from "react";

const page = () => {
return (
<div className="h-screen w-screen flex items-center justify-center">
<AuthModal />
</div>
);
};

export default page;
12 changes: 12 additions & 0 deletions frontend/src/app/(auth)/register/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import {AuthModal} from "@/components/AuthModal";

const page = () => {
return (
<div className="h-screen w-screen flex items-center justify-center">
<AuthModal />
</div>
);
};

export default page;
29 changes: 0 additions & 29 deletions frontend/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,3 @@
@tailwind components;
@tailwind utilities;

:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}

@layer utilities {
.text-balance {
text-wrap: balance;
}
}
11 changes: 8 additions & 3 deletions frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "Connect App",
description: "Real Time Chat App",
};

export default function RootLayout({
Expand All @@ -16,7 +18,10 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
<body className={inter.className}>
{children}
<ToastContainer />
</body>
</html>
);
}
Loading

0 comments on commit ecf03bb

Please sign in to comment.