Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
balintking committed Feb 22, 2024
0 parents commit 74f98f3
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style_pimp.css">
</head>
<body>

<div class="panel">
<h1>Log In</h1>
<p>Enter your credentials</p>
<form>
<label for="username">Username</label>
<input id="username" name="username" type="text"/>
<label for="password">Password</label>
<input id="password" name="password" type="password"/>
<a href="#">Forgot Password?</a>
<input id="submit" type="submit" value="Log In">
</form>
</div>
</body>
</html>
71 changes: 71 additions & 0 deletions style_pimp.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@

* {
box-sizing: border-box;
}

body {
background-image: url("https://images.pexels.com/photos/547114/pexels-photo-547114.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2");
background-size: cover;
background-position: center;
margin: 0;
height: 100vh;
font-family: Helvetica, serif;
color: #1b3de5;
}

.panel {
position: absolute;
top: 20%;
left: calc(50% - 200px);
background: rgba(255, 255, 255, 0.8);
border-radius: 20px;
text-align: center;
padding: 20px 50px 30px 50px;
width: 400px;
}

form {
display: flex;
flex-direction: column;
gap: 12px;
padding: 15px 0;
}

label {
font-size: 0.85rem;
align-self: start;
position: relative;
top: 5px;
left: 15px;
}

input {
font-size: 1rem;
padding: 12px 20px;
border: 2px #1b3de5 solid;
border-radius: 10px;
}

a:any-link {
font-size: .85rem;
text-decoration: none;
color: #1b3de5;
text-align: right;
}

#submit {
border: none;
cursor: pointer;
width: 100%;
margin-top: 20px;
padding: 10px 22px;
font-size: 22px;
font-weight: 400;
color: white;
background: linear-gradient(90deg,#1b3de5 0,#0074e4 100%);
border-radius: 50px;
}

#submit:hover{
background: linear-gradient(-90deg,#1b3de5 0,#0074e4 100%);
}
57 changes: 57 additions & 0 deletions style_wishes.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
* {
box-sizing: border-box;
}

body {
background-color: dodgerblue;
height: 100vh;
margin: 0;
font-family: Helvetica;
color: royalblue;
}

.panel {
background-color: white;
position: absolute;
width: 400px;
top: 20%;
left: calc(50% - 200px);
padding: 40px;
border-radius: 20px;
text-align: center;
}

form {
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
padding: 20px 0;
}

input {
padding: 12px 20px;
border-radius: 10px;
width: 100%;
}

label {
align-self: start;
position: relative;
top: 5px
}

a {
font-size: .85rem;
align-self: end;
}

#submit {
margin-top: 20px;
border-radius: 50px;
background-color: mediumseagreen;
}

#submit:hover {
background-color: darkseagreen;
}

0 comments on commit 74f98f3

Please sign in to comment.