diff --git a/frontend/src/components/Login.css b/frontend/src/components/Login.css new file mode 100644 index 0000000000000000000000000000000000000000..76b658ddf9bc3cbb6c1399ab0e50507fb98ffc10 --- /dev/null +++ b/frontend/src/components/Login.css @@ -0,0 +1,182 @@ +.container{ + display:flex; + flex-direction: column; + margin:auto; + margin-top:100px; + background:rgb(34, 31, 31); + padding-bottom: 30px; + width: 600px; + +} + +body { + margin: 0; /* Remove default margin */ + height: 100vh; /* Full viewport height */ + background: linear-gradient(to right, maroon, orange); /* Gradient colors */ +} + +.header{ + display:flex; + flex-direction:column; + align-items:center; + gap:10px; + margin-top:10px; +} + +.text{ + color:White; + font-size:25px; + font-weight: 600; +} + +.underline{ + width:70px; + height: 5px; + background:maroon; + border-radius: 9px; +} + +.inputs{ + margin-top: 55px; + display:flex; + flex-direction: column; + gap:10px; +} + +.input{ + display:flex; + align-items: center; + margin:auto; + width:480px; + height:40px; + background-color: rgb(179, 174, 174); + border-radius: 6px; + +} + +.input img{ + margin: 0px 30px; +} + +.input input{ + height:50px; + width:400px; + background: transparent; + border:none; + outline:none; + color: grey; + font-size: 19px; + +} + +.submitTerms{ + /* padding-left: 400px; + padding-bottom: 10px; */ + margin-left: 400px; + margin-bottom: 10px; + margin-top: 27px; + color: gray; + font-size: 15px; + cursor:pointer; + font-weight: 500; +} + +.submitTerms img{ + margin: 0px 10px; +} + +.submit-container{ + display: flex; + margin-left:450px; + padding-right: 30px; + /* color:black; + font-size:20px; + font-weight: 5000; + cursor:pointer; */ +} + + + +.othercred{ + display: flex; + padding-left: 10px; + position: relative; + top: -50px; /* Adjust the value to move it higher */ + +} + + +.submitMore { + padding-left: 10px; + padding-right: 10px; + /* margin-left: 50px; */ + display: flex; + align-items: center; + cursor: pointer; + font-size: 12px; + font-weight: 500; + color:white; + border-radius: 50px; + background-color: maroon; + width: 100px; + height:59px; + text-align: center; + +} + +.submitMore:hover { + color: rgb(218, 124, 124); +} + +.submit{ + display: flex; + justify-content: center; + align-items: center; + text-align: center; + width: 220px; + height:59px; + color:white; + background: maroon; + border-radius: 50px; + font-size: 19px; + font-weight: 700; + cursor: pointer; + +} + +.submit:hover { + color: rgb(218, 124, 124); +} + +.home-auth { + display: flex; + justify-content: center; /* Center the link */ + margin-top: 20px; /* Add some spacing above */ + margin-bottom: 20px; /* Add some spacing below */ +} + +.login-link { + color: white; /* Adjust color if needed */ + font-size: 14px; /* Adjust font size */ + cursor: pointer; /* Pointer cursor on hover */ +} + +.login-button { + display: inline-flex; /* Use inline-flex for proper centering */ + background-color: maroon; /* Background color */ + color: white; /* Text color */ + text-decoration: none; /* Remove underline */ + border: none; /* Remove default border */ + border-radius: 20px; /* Adjust for rounded corners */ + padding: 10px 30px; /* Adjust padding for size */ + font-size: 14px; /* Font size */ + cursor: pointer; /* Pointer cursor */ + transition: background-color 0.3s; /* Smooth transition */ + margin: auto; /* Center it */ + justify-content: center; /* Center text */ + align-items: center; /* Center text */ +} + +.login-button:hover { + background-color: rgb(218, 124, 124); /* Hover effect */ +} diff --git a/frontend/src/components/Login.js b/frontend/src/components/Login.js index d6bdebc12bf6afe9524ac8a387118a33a6e6782d..12436bbf1e68a66f2b60158c9a41c8ec941b2dc9 100644 --- a/frontend/src/components/Login.js +++ b/frontend/src/components/Login.js @@ -1,3 +1,5 @@ +import './Login.css' +import user_icon from './assets/person.png' import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; @@ -20,25 +22,32 @@ function Login() { }; return ( - <div className="login-container"> - <div classname="login-body"> - <div> - <h1>Login page</h1> - <h2>Corps directory project</h2> + <div className='container'> + <div className="header"> + <div className="text">VT Corps Directory Sign Up Page</div> + <div className="underline"></div> + </div> + <div className="inputs"> + <div className="home-auth"> + {!user ? ( + <a className="login-button" href={`${process.env.REACT_APP_API_URL}/login`}> + Login with CAS + </a> + ) : ( + <a className="login-button" href={`${process.env.REACT_APP_API_URL}/logout`}> + Logout + </a> + )} </div> + + </div> + {/* <div className="forgot-password">Forgot Password <span> Click here</span></div> */} + <div className="submitTerms">I agree to terms of use + <img src={user_icon} alt="" /> + </div> + </div> - <header> - <p>{user ? "Welcome " + user : ""}</p> - </header> - <div className="home-auth"> - {!user ? ( - <a href={`${process.env.REACT_APP_API_URL}/login`}>Login</a> - ) : ( - <a href={`${process.env.REACT_APP_API_URL}/logout`}>Logout</a> - )} - </div> - </div> - ); + ) } -export default Login; +export default Login \ No newline at end of file diff --git a/frontend/src/components/assets/email.png b/frontend/src/components/assets/email.png new file mode 100644 index 0000000000000000000000000000000000000000..204173fa68d56b7432529612e677432be18bb022 Binary files /dev/null and b/frontend/src/components/assets/email.png differ diff --git a/frontend/src/components/assets/password.png b/frontend/src/components/assets/password.png new file mode 100644 index 0000000000000000000000000000000000000000..aa7facb27b5dea2eae10f7fe2c7f2d01043059f2 Binary files /dev/null and b/frontend/src/components/assets/password.png differ diff --git a/frontend/src/components/assets/person.png b/frontend/src/components/assets/person.png new file mode 100644 index 0000000000000000000000000000000000000000..c88f99680d68a8de9e5396c80a66c986cf1ef7f2 Binary files /dev/null and b/frontend/src/components/assets/person.png differ