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

5주차 Assignment - 안준영 #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
107 changes: 107 additions & 0 deletions junyeong/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
#container {
width: 418px;
margin: 0 auto;
padding: 45px 0;
border: 1px solid #d3d3d3;
border-radius: 5px;
margin-top: 180px;
position: relative;
}
.footer {
width: 418px;
margin: 0 auto;
padding: 10px 0;
font-size: 12px;
color: #5f6368;
display: flex;
justify-content: space-between;
align-items: center;
}
.footer a {
color: gray;
text-decoration: none;
margin: 0 10px;
}
.etc {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

justify-content 및 align-items의 경우는 display: flex; 가 있어야 작동 가능합니다!! 단독으로는 사용할 수 없다는 점 참고해주세요!

justify-content: space-between;
align-items: center;
}
#container h1,
#container h2 {
text-align: center;
}
#container h1 {
margin-top: 10px;
}
#container h1:nth-child(2) {
margin-top: 20px;
font-size: 24px;
font-weight: 700;
}

#container h1 img {
width: 100px;
}
#container h2 {
margin: 20px 0;
}
#container #login_form fieldset ul li input[name="user_id"] {
border: 1px solid #666666;
width: 366px;
height: 56px;
padding: 15px 10px;
border-radius: 5px;
margin: 10px 30px 10px 30px;
}

#container #login_form fieldset ul {
margin-bottom: 20px;
}

#container #login_form fieldset ul li {
line-height: 1.3;
}

#container #login_form fieldset ul li:nth-child(2) {
margin-bottom: 50px;
}

#container #login_form fieldset ul li:nth-child(3) {
margin: 0 30px;
}

.sz {
font-size: 16px;
}

.user_id_1 {
color: #1a73e8;
margin: 0 38px;
}

.user_id_2 {
color: #1a73e8;
margin: 0;
}
#container #login_form fieldset .bottom {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
}
#container #login_form fieldset .bottom {
padding: 50px 0 30px 0;
}
.make {
margin: 0 0 0 30px;
color: #1a73e8;
}
#container #login_form fieldset .bottom .join {
color: #1a73e8;
}
#container #login_form fieldset .bottom #next_btn {
color: #fff;
padding: 10px 20px;
border-radius: 5px;
margin: 0px 30px 0 0;
}
61 changes: 61 additions & 0 deletions junyeong/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>로그인 Google 계정</title>
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="index.css">
</head>

<body>
<div id="container">
<h1><img src="static/Google.png" alt="Google_image"></h1>
<h1>로그인</h1>
<h2>Google 게정 사용</h2>
<form action="#" method="post" id="login_form">
<fieldset>
<legend>로그인양식</legend>
<ul>
<li>
<div class="se">
<input type="text" name="user_id" placeholder="이메일 또는 휴대전화">

</div>
</li>
<li><a href="#" class="user_id_1">이메일을 잊으셨나요?</a></li>
<li>
<div class="sz">내 컴퓨터가 아닌가요> 게스트 모드를 사용하여 비공개로 로그인하세요
<a href="#" class="user_id_2">자세히 알아보기</a>
</div>

</li>
</ul>
<div class="bottom">
<a href="#" class="make">계정 만들기</a>
<butto n type="button" id="next_btn" style="background: #1a73e8;" class="make_1">다음</button>
</div>

</fieldset>


</form>
</div>
<div class="footer">
<form>
<select>
<option value="ko">한국어</option>
<option value="en">English</option>
<option value="ja">日本語</option>
</select>
</form>
<div class="etc">
<a href="#">도움말</a>
<a href="#">개인정보처리방침</a>
<a href="#">약관</a>
</div>
</div>
</body>

</html>
60 changes: 60 additions & 0 deletions junyeong/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
* {
box-sizing: border-box;
}
html,
body,
div,
h1,
h2,
p,
form,
fieldset,
legend,
ul,
li,
input,
button,
a,
img,
select,
option,
footer {
margin: 0;
padding: 0;
font-size: 1rem;
font-weight: normal;
font-style: normal;
line-height: 1;
}

fieldset {
border: 0;
}

legend {
display: none;
}

a {
color: #000;
text-decoration: none;
}

button {
border: 0;
background: none;
cursor: pointer;
}

input {
border: 0;
}

select {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

피드백

image

이렇게 특정 아이템이 선택했을 때 border자체는 없지만, 파란색 줄 처럼 outline이 남아 있는 경우가 있어요! 이부분은 outline: none; 혹은 0으로 처리해주시면 좋을 것 같습니당

border: 0;
}

ul,
li {
list-style: none;
}
Binary file added junyeong/static/Google.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.