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 sihnup/login page #4254

Closed
wants to merge 2 commits into from
Closed
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
Binary file modified assets/images/pixel_painter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 41 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,47 @@
height: 200px;
width: 200px;
border-radius: 1000px;
}
.login-button {
background-color: #ff9800;
/* Orange background */
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.3s ease;
margin-right: 200px; /* Add margin to the right */
}
.login-button:hover {
background-color: #e68a00;
transform: scale(1.1);
/* Darker orange on hover */
}

/* Styling for the theme switch and login button container */
#themeToggleWrapper {
display: flex;
align-items: center;
justify-content: center;
}
.theme-toggle-wrapper {
position: fixed;
top: 30px;
right: 30px;
z-index: 100;
display: flex;
align-items: center;
border: none;
background-color: transparent;
}
</style>
</head>
<!-- Light-Dark theme SWITCH -->

<label id="themeToggleWrapper" class="theme-toggle" for="themeToggle" style="position: fixed; top: 30px; right: 30px; z-index: 100; display: flex; align-items: center; border: none; background-color: transparent;">
<button id="loginButton" class="login-button">Login</button>
<input type="checkbox" id="themeToggle" onclick="toggleTheme()" checked aria-label="Switch theme mode">
<span class="slider" style="width: 40px; height: 20px;"></span>
</label>
Expand Down Expand Up @@ -150,7 +185,7 @@
<div class="heading fromTop">
<span>🕹️&nbsp;</span><span>G</span><span>A</span><span>M</span><span>E</span><span>Z</span><span>O</span><span>N</span><span>E</span>
</div>

<!-- About section -->

<div class="zoomIn" id="about">
Expand Down Expand Up @@ -384,6 +419,11 @@ <h2 id="total-contributors" style="text-align: center; font-family: 'Agency FB',
<!-- <div id="progress">
<span id="progress-value">&#x1F815;</span>
</div> -->
<script>
document.getElementById("loginButton").addEventListener("click", function() {
window.location.href = "signup.html";
});
</script>

</body>

Expand Down
268 changes: 268 additions & 0 deletions signup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
padding: 0px;
margin: 0px;
box-sizing: border-box;
}
:root {
--linear-grad: linear-gradient(to right, #141E30, #243B55);
--grad-clr1: #141E30;
--grad-clr2: #243B55;
}

body {
height: 100vh;
background: #f6f5f7;
display: grid;
place-content: center;
font-family: 'Poppins', sans-serif;
}
.container{
position: relative;
width: 850px;
height: 500px;
background-color: #FFF;
box-shadow: 25px 30px 55px #5557;
border-radius: 13px;
overflow: hidden;
}
.form-container {
position: absolute;
width: 60%;
height: 100%;
padding: 0px 40px;
transition: all 0.6s ease-in-out;

}
.sign-up-container{
opacity: 0;
z-index: 1;

}
.sign-in-container{

z-index: 2;

}
form{
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0px 50px;
}

h1{

color: var(-grad-clr1);

}
H
.social-container{
margin: 20px 0px;
}
.social-container a {
border: 1px solid #DDD;
border-radius: 50%;
display: inline-flex;
justify-content: center;
align-items: center;
margin: 0px 5px;
height: 40px;
width: 40px;

}
span{
font-size: 12px;
}
.infield{
position: relative;
margin: 8px 0px;
width: 100%;
}
input{
width: 100%;
padding: 12px 15px;
background-color: #f3f3f3;
border: none;
outline: none;

}
label{
position: absolute;
left: 50%;
top: 100%;
transform: translate(-50%);
width: 0%;
height: 2px;
background: var(--linear-grad);
transition: 0.3s;
}
input:focus ~ label {
width: 100%;

}
a{
color: #333;
font-size: 14px;
text-decoration: none;
margin: 15px 0px;
}
a.forgot{
padding-bottom: 3px;
border-bottom: 2px solid #EEE;
}
button{
border-radius: 20px;
border: 1px solid var(--grad-clr1);
background: var(--grad-clr2);
color: #FFF;
font-size: 12px;
font-weight: bold;
padding: 12px 45px;
letter-spacing: 1px;
text-transform: uppercase;

}
.form-container button {
margin-top: 17px;
transition: 80ms ease-in;

}
.form-container button:hover {
background: #FFF;
color: var(--grad-clr1);

}
.overlay-container {
position: absolute;
top: 0;
left: 60%;
width: 40%;
height: 100%;
overflow: hidden;
transition: tranform 0.6s ease-in-out;
z-index: 9;
}
#overlayBtn {
cursor: pointer;
position: absolute;
left: 50%;
top: 304px;
transform: translateX(-50%);
width: 143.67px;
height: 40px;
border: 1px solid #FFF;
background: transparent;
border-radius: 20px;

}
.overlay {
position: relative;
background: var(--linear-grad);
color: #FFF;
left: -150%;
height: 100%;
width: 250%;
transition: tranform 0.6s ease-in-out;

}
.overlay-panel{
position: absolute;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 0px 40px;
text-align: center;
height: 100%;
width: 340px;
transition: 0.6s ease-in-out;

}
.overlay-left {
right: 60%;
transform: translateX(-12%);
}
.overlay-right {
right: 0;
transform: translateX(0%);
}
.overlay-panel h1 {
color: #FFF;
}
p{
font-size: 14px;
font-weight: 300;
line-height: 20px;
letter-spacing: 0.5px;
margin: 25px 0px 35px;
}
.overlay-left button{
border: none;
background-color: transparent;
}
.right-panel-active .overlay-container {
transform: translateX(-150%);
}
.right-panel-active .overlay {
transform: translateX(50%);
}
.right-panel-active .overlay-left {
transform: translateX(25%);
}
.right-panel-active .overlay-right {
transform: translateX(35%);
}
.right-panel-active .sign-in-container {
transform: translateX(20%);
opacity: 0;
}
.right-panel-active .sign-up-container {
transform: translateX(66.7%);
opacity: 1;
z-index: 5;
animation: show 0.6s ;
}
@keyframes show {
0%, 50% {
opacity: 0;
z-index: 1;
}
50.1%, 100% {
opacity: 0;
z-index: 5;
}
}
.btnScaled {
animation: scaleBtn 0.6s;
}
@keyframes scaleBtn {
0% {
width: 143.67px;
}
50% {
width: 250px;
}
100% {
width: 143.67px;
}
}
footer {
position: absolute;
left: 50%;
bottom: 30px;
transform: translateX(-50%);
}
footer mark {
padding: 8px 30px;
border-radius: 7px;
}
footer a {
text-decoration: none;
font-size: 18px;
font-weight: bold;
color: #003;
}
Loading
Loading