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

조민영 과제 제출합니다 #3

Open
wants to merge 8 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 조민영/logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions 조민영/success.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!doctype html>
<html>
<head> </head>
<body>
<h1>ㅊㅋㅊㅋ</h1>
</body>
</html>
51 changes: 51 additions & 0 deletions 조민영/test1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!doctype html>
<html>
<head>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200"
/>

<link rel="stylesheet" type="text/css" href="test1Css.css" />
</head>
<body>
<div class="container">
<div class="top">
<img src="./logo.jpeg" />
</div>
<div class="mid">
<div class="input1">
<span class="material-symbols-outlined"> person </span>
<input class="id" type="text" id="idField" placeholder="아이디" />
</div>
<div class="input2">
<span class="material-symbols-outlined"> lock </span>
<input
class="pw"
type="password"
id="pwField"
placeholder="비밀번호"
/>
</div>
</div>
<div class="bottom">
<button type="submit" onclick="login()">로그인</button>
</div>
</div>
</body>
<script>
let link = "success.html";

function login() {
let id = document.getElementById("idField").value;
let pw = document.getElementById("pwField").value;
if (id === "" || pw === "") {
alert("아이디와 비밀번호를 입력해주세요");
} else if (id === " " || pw === " ") {
alert("아이디와 비밀번호를 입력해주세요");
} else {
location.href = link;
}
}
</script>
</html>
70 changes: 70 additions & 0 deletions 조민영/test1Css.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
html,body{
display: flex;
justify-content: center;
align-items: center;
height: 100%;
background-color: #585858;
}

.container{
width:400px;
height:500px;
background-color: white;

}

img{
width:400px;
height:180px;
}

.top{
border-bottom: 1px solid #aba8a8;
margin-bottom: 30px;
}

.mid{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-bottom: 60px;
}

.bottom{
display: flex;
justify-content: center;
align-items: center;

}

input{
border: 1px solid #aba8a8;
height:35px;
width:280px;
margin-bottom: 10px;
padding-left: 30px;
}

button{
background-color: #03c75a;
border: 1px solid #03c75a;
border-radius: 5px;
height:45px;
width:290px;
color:white;
}

.input2 span{
position: absolute;
top: 53%;
left:40%;


}

.input1 span{
position:absolute;
top:46%;
left:40%;
}
66 changes: 66 additions & 0 deletions 조민영/test2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!doctype html>
<html>
<head>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&icon_names=person"
/>
<link rel="stylesheet" type="text/css" href="test2Css.css" />
</head>
<body>
<div class="container">
<div class="top">
<img src="./logo.jpeg" />
</div>
<div class="mid">
<lable for="rule1">
<input type="checkbox" id="rule1" onclick="check()" />
<span><span class="notice">[필수]</span>가입약관</span>
</lable>
<div class="pContainer">
<p class="termsAndC">
GDG 서비스를 이용하시거나 서비스 회원으로 가입하실 경우 여러분은 본
약관 및 관련 운영 정책을 확인하거나 동의하게 되므로, 잠시 시간을
내시어 주의 깊게 살펴봐 주시기 바랍니다.
</p>
</div>
<div class="checkbox2">
<lable for="rule2">
<input type="checkbox" id="rule2" onclick="check()" />
<span><span class="notice">[필수]</span>가입약관</span>
</lable>
<div class="pContainer2">
<p class="termsAndC">
실명 인증된 아이디로 가입, 위치 기반 서비스 이용약관, 이벤트 혜택
정보 수신 동의를 포함합니다.
</p>
</div>
</div>
</div>
<div class="bottom">
<button type="submit" id="button" onclick="login()">로그인</button>
</div>
</div>
</body>
<script>
let rule1 = document.getElementById("rule1");
let rule2 = document.getElementById("rule2");
let bt = document.getElementById("button");

bt.disabled = true;

let link = "success.html";

function check() {
if (rule1.checked && rule2.checked) {
bt.style.cssText =
"color:white; background-color:#03c75a; border-color:#03c75a;";
bt.disabled = false;
}
}

function login() {
location.href = link;
}
</script>
</html>
77 changes: 77 additions & 0 deletions 조민영/test2Css.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
html,
body {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
background-color: #585858;
}

.container {
width: 400px;
height: 500px;
background-color: #585858;
border: 1px solid white;
}

img {
width: 400px;
height: 180px;
}

.mid {
margin-bottom: 40px;
}

.bottom {
display: flex;
justify-content: center;
align-items: center;
}

.checkbox2 {
margin-top: 20px;
}

.pContainer {
margin-left: auto;
margin-right: auto;
border: 3px solid #8d8d8d;
border-radius: 7px;
width: 370px;
padding-left: 5px;
padding-right: 5px;
}

.pContainer2 {
margin-left: auto;
margin-right: auto;
border: 3px solid #8d8d8d;
border-radius: 7px;
width: 370px;
padding-left: 5px;
padding-right: 5px;
}

button {
background-color: #959695;
border: 1px solid #959695;
border-radius: 5px;
height: 45px;
width: 350px;
color: rgb(53, 53, 53);
}

.termsAndC {
color: white;
font-size: small;
}

span {
font-weight: bold;
color: white;
}

.notice {
color: #03c75a;
}
Loading