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

[202302387 송영주] 4주차 미션을 제출합니다. #6

Open
wants to merge 1 commit into
base: master
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
45 changes: 44 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,51 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
</head>
<body>
<div id="container">
<section id="Left">
<h1>Learn to code by <br> watching others</h1>
<P>Wee how experienced developers solve problems in real-time.
<br>Watching scripted tutorials is great, but understanding how
<br>developers think is invaluable.</P>
</section>

<main id="Right">
<div id="info">
<p><span style="font-weight: 600;">Try it free 7 days</span> then $20/mo. thereafter</p>
</div>

<div id="RightContainer">
<div class="User">
<input type="text" placeholder="Name" id="Name">
</div>

<div class="User">
<input type="text" placeholder="Last Name" id="LastName">
</div>

<div class="User">
<input type="email" placeholder="Email Address" id="Email">
</div>

<div class="User">
<input type="password" placeholder="Password" id="Password">
</div>

<div class="User">
<input type="submit" value="CLAIM YOUR FREE TRIAL" id="btn">
</div>

<p>By clicking the button. you are agreeing to our <span style="color: hsl(0, 100%, 74%);">Terms and Services</span></p>

</div>
</main>
</div>
<script src="index.js"></script>
</body>
</html>
20 changes: 20 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
let Name = ""; //let Name;
let LastName = "";
let Email = "";
let Password = "";

function userInfo() {
Name = document.getElementById("Name").value;
LastName = document.getElementById("LastName").value;
Email = document.getElementById("Email").value;
Password = document.getElementById("Password").value;
}

let btn = document.getElementById("btn");
btn.addEventListener('click', function(){
userInfo(); // 함수 실행시켜줘야 함.
console.log(`Name: ${Name}`);
console.log(`Last Name: ${LastName}`);
console.log(`Email: ${Email}`);
console.log(`Password: ${Password}`);
});
90 changes: 90 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
* {
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
}

body {
background-image: url('../images/bg-intro-desktop.png');
background-color: hsl(0, 100%, 74%) ;
font-size: 700;
}

#container {
/* 가운데 정렬 */
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

#Left h1 {
color: white;
font-weight: 700;
font-size: 45px;
}

#Left p {
margin-top: 20px;
color: white;
}

#info {
background-color:hsl(248, 32%, 49%) ;
border-radius: 5px;
color: white;
height: 55px;
display: flex;
justify-content: center;
align-items: center;
font-size: 15px;
box-shadow: 0 7px 1px hsla(0, 1%, 25%, 0.386);
}

#Right {
margin-left: 70px;
width: 35%;
}

#RightContainer {
background-color: white;
border-radius: 5px;
margin-top: 20px;
height: 450px;
display: flex;
flex-direction: column;
justify-content: center;
justify-items: center;
box-shadow: 0 7px 1px hsla(0, 1%, 25%, 0.386);
}

.User {
border-radius: 5px;
margin-left: 7%;
margin-bottom: 20px;
}

input {
width: 93%;
height: 55px;
border-radius: 5px;
border-color: hsl(246, 25%, 77%);
border-style: solid;
border-width: 1px;
font-weight: 700;
}

#btn {
background-color: hsl(154, 59%, 51%);
color: white;
font-weight: 500;
font-size: 15px;
cursor: pointer;
}

#RightContainer p {
font-size: 11px;
font-weight: 600;
color: hsl(246, 25%, 77%);
text-align: center;
}