Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added button like google and facbook #422

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions paras/package-lock.json

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

2 changes: 1 addition & 1 deletion paras/src/Login.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ body {
}

.login-btn {
padding: 14px;
padding: 14px 100px;
background-color: #3182ce;
color: #ffffff;
border: none;
Expand Down
3 changes: 3 additions & 0 deletions paras/src/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ const Login = () => {
</div>

<button type="submit" className="login-btn">Log In</button>
<button id="google-login" ><a href="https://accounts.google.com/v3/signin/identifier?authuser=0&continue=https%3A%2F%2Fmyaccount.google.com%2F%3Futm_source%3Dsign_in_no_continue%26pli%3D1%26nlr%3D1&ec=GAlAwAE&hl=en_GB&service=accountsettings&flowName=GlifWebSignIn&flowEntry=AddSession&dsh=S1211316509%3A1729920929255114&ddm=0">Login with Google</a></button>
<button id="facbook-login"><a href="https://www.facebook.com/login/">Login with facebook</a></button>
<button id="x-login"><a href="https://x.com/i/flow/login">Login with X</a></button>
</form>
<p className="redirect-text">
Don't have an account?{" "}
Expand Down
169 changes: 161 additions & 8 deletions paras/src/Signup.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ body {
justify-content: center;
align-items: center;
height: 100vh;

margin: 0;
color: #333;
}

.signup-container {
background-color: #ffffff;
padding: 40px;
padding: 20px;
border-radius: 15px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
width: 100%;
width: 300%;
max-width: 400px;
text-align: center;
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
position: relative; /* Changed from absolute */

}

.signup-container:hover {
Expand All @@ -33,10 +35,10 @@ body {
}

.signup-container h2 {
margin-bottom: 25px;
margin-bottom: 10px;
color: #1a202c;
font-weight: 600;
font-size: 28px;
font-size: 20px;
}

.signup-form {
Expand All @@ -45,8 +47,9 @@ body {
}

.form-group {
margin-bottom: 20px;
margin-bottom: 200px;
text-align: left;

}

.form-group label {
Expand All @@ -56,8 +59,8 @@ body {
}

.form-group input {
padding: 12px;
width: 100%;
padding: 20px;
width: 200%;
font-size: 16px;
border: 1px solid #cbd5e0;
border-radius: 8px;
Expand All @@ -74,7 +77,7 @@ body {
}

.signup-btn {
padding: 14px;
/* padding: 14px 100px; */
background-color: #3182ce;
color: #ffffff;
border: none;
Expand All @@ -83,13 +86,163 @@ body {
font-size: 16px;
font-weight: 600;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
width: 100%;
}

.signup-btn:hover {
background-color: #2b6cb0;
box-shadow: 0 6px 12px rgba(49, 130, 206, 0.3);
}


#google-login {
width: 100%;
height: 45px;
border-radius: 15px;
border: 1px solid #cacaca;
margin: 1px; /*Margin added so that they do not overlap*/
background-color: #aa6a6a;

font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions for hover and active states */


color: black;
font-family:var(--ff-poppins);
background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=); background-repeat: no-repeat;
background-position: 5% 50%;
background-size: 30px;
}

#google-login a{
text-decoration: none;
color: #232836
}

#google-login:hover {
background-color: #ac7070; /* Darker shade on hover */
transform: translateY(-3px); /* Lift effect on hover */
}


#google-login:active {
transform: translateY(1px); /* Slight press effect */
}

#google-login {
background-color: #fff; /* Google red color */
}

#google-login:hover {
background-color: #FFF; /* Darker Google color on hover */
}




#facbook-login {
width: 100%;
height: 45px;
border-radius: 15px;
border: none;
margin: 1px; /*Margin added so that they do not overlap*/
background-color:#aa6a6a;;
color: rgb(190, 135, 135);
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions for hover and active states */

color: black;
font-family:var(--ff-poppins);
background-image: url(https://upload.wikimedia.org/wikipedia/commons/1/1b/Facebook_icon.svg);
background-repeat: no-repeat;
background-position: 3% 50%;
background-size: 30px;
}




#facbook-login:hover {
background-color: #ac7070; /* Darker shade on hover */
transform: translateY(-3px); /* Lift effect on hover */
}


#facbook-login:active {
transform: translateY(1px); /* Slight press effect */
}

#facbook-login {
background-color: #3b5998;/* Google red color */

}

#facbook-login:hover {
background-color: #3b5998; /* Darker Google color on hover */
}

#facbook-login a{
text-decoration: none;
color: #fff;

}





#x-login {
width: 100%;
height: 45px;
border-radius: 15px;
border: none;
margin: 1px; /*Margin added so that they do not overlap*/
background-color:#aa6a6a;;
color: rgb(190, 135, 135);
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions for hover and active states */
color: black;
font-family:var(--ff-poppins);
background-image: url(https://img.freepik.com/free-vector/twitter-new-2023-x-logo-white-background-vector_1017-45422.jpg?t=st=1729705399~exp=1729708999~hmac=86164ca5278d72d1e806212a9399b9f1d09e5db1559733d42425370dbca91851&w=826); background-repeat: no-repeat;
background-position: 5% 50%;
background-size: 30px;
}




#x-login:hover {
background-color: #ac7070; /* Darker shade on hover */
transform: translateY(-3px); /* Lift effect on hover */
}

#x-login:active {
transform: translateY(1px); /* Slight press effect */
}

#x-login {
background-color:#000000;/* Google red color */
}

#x-login:hover {
background-color: #141313; /* Darker Google color on hover */
}

#x-login a{
text-decoration: none;
color: #fff;

}







.error-msg {
color: #e53e3e;
font-size: 12px;
Expand Down
5 changes: 5 additions & 0 deletions paras/src/Signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ const Signup = () => {
</div>

<button type="submit" className="signup-btn">Sign Up</button>
<button id="google-login" ><a href="https://accounts.google.com/v3/signin/identifier?authuser=0&continue=https%3A%2F%2Fmyaccount.google.com%2F%3Futm_source%3Dsign_in_no_continue%26pli%3D1%26nlr%3D1&ec=GAlAwAE&hl=en_GB&service=accountsettings&flowName=GlifWebSignIn&flowEntry=AddSession&dsh=S1211316509%3A1729920929255114&ddm=0">Login with Google</a></button>
<button id="facbook-login"><a href="https://www.facebook.com/login/">Login with facebook</a></button>
<button id="x-login"><a href="https://x.com/i/flow/login">Login with X</a></button>


</form>
<p className="redirect-text">
Already have an account?{" "}
Expand Down