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

Master #13

Open
wants to merge 3 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
Binary file added background image 4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 82 additions & 3 deletions public/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
color: #fff;
}
.main_container {
color: white;
text-align: center;
align-items: center;
justify-content: center;
/* align-items: center;
justify-content: center; */
height: 100vh;
}
#sign_up,
Expand Down Expand Up @@ -64,9 +65,15 @@ input[type="password"]:required:valid {
}
#sign_up > .left_part {
padding-left: 40px;
border-top-left-radius: inherit;
border-bottom-left-radius:inherit;
background-color: rgb(177, 192, 149) ;
}
#sign_in > .right_part {
padding-right: 40px;
border-top-right-radius:inherit;
border-bottom-right-radius:inherit;
background-color: rgb(177, 192, 149) ;
}
#sign_up > .right_part {
border-top-right-radius: inherit;
Expand All @@ -83,9 +90,10 @@ input[type="password"]:required:valid {
width: 500px;
}
h1 {
color: #ffffff;
color: black;
text-shadow: 2px 7px 5px rgba(0, 0, 0, 0.3),
0px -4px 10px rgba(255, 255, 255, 0.3);
font-weight: 700;
}
.input-group{
margin-left: -5px;
Expand Down Expand Up @@ -121,3 +129,74 @@ li{
transform: translateX(-70%);
max-width: 200px;
}
@media(max-width:1048px){
#sign_up,
#sign_in{
width : 600px;
}
#sign_up{
align-items : center;
}
#sign_in{
padding-left : 4px;
}
.input-group,.inputg{
width : 200px;

}
#sign_up > .right_part > img{
width: 300px;
object-fit: fill;
}
#sign_in > .left_part > img{
width: 300px;
object-fit: fill;
}

@media(max-width:884px){
#sign_up,
#sign_in{
width : 400px;
}
#sign_up{
align-items : center;
padding-left: 5px;
}
#sign_in{
padding-left : 1px;
}
.input-group,.inputg{
width : 150px;

}
.left_part,
.right_part {
width:400px;
}


#sign_up > .right_part > img{
width: 250px;
object-fit: fill;
}
#sign_in > .left_part > img{
width: 250px;
object-fit: fill;
}
.main_container{
padding-right: 50px;
}
.main_container > .center-block{
width: 400 px;
display: block;
height: 500px;
}
#sign_up > .left_part
{
padding-left: 7px;
}
#sign_up > .right_part
{
padding-right: 7px;
}
}
12 changes: 8 additions & 4 deletions public/css/partial.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
font-family: 'Lexend', sans-serif;
}
body{
background-color: rgb(0, 0, 0);
color:#fff;
/* background-color: rgb(0, 0, 0); */
color:white(236,225,225);
background-size: 300%;
background-position: -400px 0px;
align-items: center;
background-image: url(/background\ image\ 4.jpg);
}

html{
Expand All @@ -33,12 +37,12 @@ header{
}
.heading{
font-size: 3.5rem;
color: rgb(32, 32, 32);
color: white (32, 32, 32);
font-weight: 800;
text-align: center;
}
.heading span{
color: rgb(115, 3, 167);
color: black;
}
header .logo{
font-size: 1.9rem;
Expand Down
24 changes: 12 additions & 12 deletions views/home/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@
href="https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap"
rel="stylesheet"
/>
<link href="/css/partial.css" rel="stylesheet" />
<link rel="stylesheet" href="/css/login.css" />
<link href="/public/css/partial.css" rel="stylesheet" />
<link rel="stylesheet" href="/public/css/login.css" />
</head>
<body>
<div class="main_container">
<br />
<h1>CP GRIND</h1>
<h1 style="color: white;font-size: xx-large;font-style: inherit;"><span style="font-weight: bold;">CP-GRIND</span></h1>
<br />
<!-- <p>{{.Message }}</p> -->
<p>Welcome to CP-GRIND</p>
<p><span style="font-weight: bold;font-size: x-large;">Welcome to CP-GRIND</span> </p>
<div id="sign_up" class="center-block">
<div class="left_part">
<br />
<h2>Sign Up</h2>
<h2 style="color: black;font-style: unset;font-weight: bold;">Sign Up</h2>
<br />
<form
action="/signup"
Expand Down Expand Up @@ -206,22 +206,22 @@ <h2>Sign Up</h2>
Sign Up
</button>
</form>
Already registered?
<button type="button" class="btn dark_mode" onclick="toggleit();">
Already registered?
<button style="color: black;font-weight:500;" type="button" class="btn dark_mode" onclick="toggleit();">
Sign In
</button>
</div>
<div class="right_part">
<img src="/assets/img1.png" alt="" srcset="" />
<img src="/public/assets/img1.png" alt="" srcset="" />
</div>
</div>
<div id="sign_in" class="center-block">
<div class="left_part">
<img src="/assets/img2.png" alt="" srcset="" />
<img src="/public/assets/img2.png" alt="" srcset="" />
</div>
<div class="right_part">
<br />
<h2>Sign In</h2>
<h2 style="color: black ;font-style:inherit;font-weight: 500;">Sign In</h2>
<br />
<form action="/login" class="text-center" method="POST">
<div class="inputg">
Expand Down Expand Up @@ -258,12 +258,12 @@ <h2>Sign In</h2>
</form>
<br /><br />
Not registered yet?
<button type="button" class="btn dark_mode" onclick="toggleit();">
<button style="color: black;" type="button" class="btn dark_mode" onclick="toggleit();">
Sign Up
</button>
</div>
</div>
</div>
<script src="/js/login.js"></script>
<script src="/public/js/login.js"></script>
</body>
</html>