Skip to content
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
27 changes: 27 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<p>Join the Academy!</p>



<div class="bothCentered">
<label for="LandingEmail">Type Your Email Here</label><br><input type="text" id="LandingEmail" placeholder="E-Mail">
<br> <br>
<a href="#" class="join">Join</a>

</div>

</div>



<script src="script.js"></script>
</body>
</html>
24 changes: 24 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const send = document.querySelector(".join");
const input = document.querySelector("input");
const tab = [];

send.addEventListener("click", (e) => {
if (input.value.length > 1) {
tab.push(input.value);
console.log(tab);
input.value = "";
}






})
window.addEventListener("keydown", (e) => {
if (e.keyCode == 13 && input.value.length > 0) {
tab.push(input.value);
console.log(tab);
input.value = "";
}
})
69 changes: 69 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
body{
background: linear-gradient(45deg, rgba(92,222,255,1) 0%, rgba(0,128,128,1) 100%);
background-attachment: fixed;
margin: 0px;
font-size: 20px;

}
.container{
margin: 0px auto;
text-align: center;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
background-color: rgb(49,118,135);
border-radius: 10px;
width: 400px;
height: 600px;
box-shadow: 0px 0px 112px -4px rgba(30,80,75,0.75);
}
p,label{
font-style: italic;
font-size: 1.9rem;

color: lightblue;


}
.bothCentered{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
width: 400px;
}
label{
padding-bottom: 20px;
}
input[type=text]{
margin-top: 20px;
background: transparent;
border: 0px;
font-size: 1.5rem;
border-bottom: 2px solid lightblue;
color: lightblue;
outline: none;
}
::-webkit-input-placeholder {
text-align: center;
color: lightblue;
font-size: 0.9rem;
}
.join{
display: block;
text-align: center;
margin: 0px auto;
text-decoration: none;
color: lightblue;
transition: all 0.4s;
font-size: 2rem;
width: 80px;
padding: 3px 0px;
border: 2px solid lightblue;

}
.join:hover{
color:mediumaquamarine;
border-color: mediumaquamarine;
}