Skip to content
Snippets Groups Projects
Commit bea9b5f5 authored by kainguyen's avatar kainguyen
Browse files

changed login page to include sushant's changes

parent 6581de00
No related branches found
No related tags found
No related merge requests found
.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 */
}
import './Login.css'
import user_icon from './assets/person.png'
import React, { useState } from "react"; import React, { useState } from "react";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
...@@ -20,25 +22,32 @@ function Login() { ...@@ -20,25 +22,32 @@ function Login() {
}; };
return ( return (
<div className="login-container"> <div className='container'>
<div classname="login-body"> <div className="header">
<div> <div className="text">VT Corps Directory Sign Up Page</div>
<h1>Login page</h1> <div className="underline"></div>
<h2>Corps directory project</h2> </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>
{/* <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> </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
frontend/src/components/assets/email.png

384 B

frontend/src/components/assets/password.png

396 B

frontend/src/components/assets/person.png

435 B

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment