diff --git a/Frontend/package.json b/Frontend/package.json index e334ac9..ccdc0d3 100644 --- a/Frontend/package.json +++ b/Frontend/package.json @@ -11,7 +11,8 @@ }, "dependencies": { "react": "^18.3.1", - "react-dom": "^18.3.1" + "react-dom": "^18.3.1", + "react-icons": "^5.2.1" }, "devDependencies": { "@types/react": "^18.3.3", diff --git a/Frontend/public/vite.png b/Frontend/public/vite.png new file mode 100644 index 0000000..90b80dc Binary files /dev/null and b/Frontend/public/vite.png differ diff --git a/Frontend/src/App.jsx b/Frontend/src/App.jsx index 6bcee72..cdbbd51 100644 --- a/Frontend/src/App.jsx +++ b/Frontend/src/App.jsx @@ -1,6 +1,6 @@ import React from 'react' -import Body from './components/Body' -// import Header from './components/Header' +import Body from './components/Login' + const App = () => { diff --git a/Frontend/src/components/Body.jsx b/Frontend/src/components/Body.jsx deleted file mode 100644 index 1f0f9c5..0000000 --- a/Frontend/src/components/Body.jsx +++ /dev/null @@ -1,60 +0,0 @@ -import React from 'react' -import { SiValorant } from "react-icons/si"; -import { SiPubg } from "react-icons/si"; -import Header from './Header'; -const Body = () => { - return ( -
-
-
-
- - - -
-
-
- ) -} - -export default Body diff --git a/Frontend/src/components/Login.jsx b/Frontend/src/components/Login.jsx new file mode 100644 index 0000000..00245ab --- /dev/null +++ b/Frontend/src/components/Login.jsx @@ -0,0 +1,90 @@ +import React, { useState } from 'react' +import { SiValorant } from "react-icons/si"; +import { SiPubg } from "react-icons/si"; +import Header from './Header'; +const Body = () => { + + const [isLogin, setIslogin] = useState(false); + const LoginHandler = () =>{ + setIslogin (!isLogin); + } + const [Fullname,setFullname]=useState(""); + const [Email,setEmail]=useState(""); + const [Password,setPassword]=useState(""); + const getInputData=(e)=>{ +e.preventDefault(); +console.log(Email,Password,Fullname); + } + return ( +
+
+
+
+ +
+

{isLogin ? "LOGIN" : "SIGN UP"}

+ {!isLogin&& + setFullname(e.target.value)} + className="input-text" + type="text" + placeholder="USERNAME" + name="username" + value={Fullname} + /> + } + + setEmail(e.target.value)} + /> + setPassword(e.target.value)} + type="password" + placeholder="PASSWORD" + name="username" + value={Password} + /> + + + +
+

{isLogin ? "Create a new account" : "Already Have a account "}

+

{isLogin ? "SIGN-IN" : "login"}

+ +
+
+
+
+
+
+
+

Tournament Supported Games

+
+
+
< SiPubg size={25} />
+
+
+
+
+ + + +
+
+
+ ) +} + +export default Body diff --git a/Frontend/src/index.css b/Frontend/src/index.css index 5902f21..f89317c 100644 --- a/Frontend/src/index.css +++ b/Frontend/src/index.css @@ -8,7 +8,7 @@ } .body{ - background-image: url("https://cdn.discordapp.com/attachments/1241785032725631079/1257564641433878568/vite.png?ex=6684ddd6&is=66838c56&hm=06cdcfad5d2e4f69e071e0856571babec173b898564b3d73533184c869400a65&"); + background-image: url("../public/vite.png"); background-size: 100% 100%; background-repeat: no-repeat; } @@ -17,20 +17,17 @@ width: 100vw; margin-bottom: 0px; } -img{ - width : 100%; - height : 100%; -} + /* sign in box */ .sign-in-box{ background-color: white; - height : 60vh; + height : 65vh; width : 23vw; border-radius : 20px; padding : 20px; position : absolute; - top : 20%; + top : 15%; left : 65%; opacity : 90%; } @@ -40,7 +37,7 @@ img{ } .input-text{ width : 90%; - margin: 15px 12px; + margin: 10px 10px; height : 35px; border-radius : 10px; text-align: center;