-
Notifications
You must be signed in to change notification settings - Fork 44
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
[권주현] Week2 #18
The head ref may contain hidden characters: "part1-\uAD8C\uC8FC\uD604-week1"
[권주현] Week2 #18
Changes from all commits
56573dd
70cc5be
6a77895
872b743
4697150
935ac9b
f61b524
35de417
eedd6c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
:root { | ||
--primary: #6d5afe; | ||
--red: #ff5b56; | ||
--black: #111322; | ||
--white: #ffffff; | ||
--primary-gradient: linear-gradient(to right, var(--primary), #6ae3fe); | ||
--gray-darker: #3e3e43; | ||
--gray-dark: #9fa6b2; | ||
--gray: #ccd5e3; | ||
--gray-light: #e7effb; | ||
--gray-lighter: #f0f6ff; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,285 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | ||
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
color: var(--black); | ||
} | ||
|
||
header { | ||
width: 100%; | ||
background-color: var(--gray-lighter); | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
footer { | ||
width: 100%; | ||
display: grid; | ||
grid-template: auto / 1fr 1fr 1fr; | ||
padding: 40px; | ||
margin-top: 70px; | ||
background-color: var(--black); | ||
} | ||
|
||
nav { | ||
width: 100%; | ||
max-width: 1920px; | ||
position: fixed; | ||
top: 0; | ||
height: 110px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
z-index: 1; | ||
} | ||
Comment on lines
+15
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. header와 footer, 그리고 Nav가 여러 페이지에서 다양한 콤포넌트에서 활용될 수 있을텐데요 |
||
|
||
@media (max-width: 1920px) { | ||
nav { | ||
width: 100%; | ||
padding: 0 200px; | ||
} | ||
|
||
footer { | ||
width: 100%; | ||
padding: 40px 104px; | ||
} | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
color: var(--white); | ||
padding: 10px 30px; | ||
} | ||
Comment on lines
+56
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. a태그는 인라인 요소지요 |
||
|
||
/* 메인 홈페이지 스타일 */ | ||
/*-----------------------------------------------*/ | ||
|
||
.sign__button { | ||
background: var(--primary-gradient); | ||
border-radius: 8px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 22px; | ||
font-weight: 600; | ||
} | ||
|
||
.sign__button, | ||
.home__button :hover { | ||
cursor: pointer; | ||
} | ||
Comment on lines
+75
to
+78
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
.header__content { | ||
width: 1920px; | ||
margin-top: 140px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
overflow: hidden; | ||
} | ||
|
||
.header__content h1 { | ||
font-size: 65px; | ||
text-align: center; | ||
} | ||
|
||
.header__content span { | ||
background: linear-gradient(to right, var(--primary), #ff9f9f); | ||
background-clip: text; | ||
color: transparent; | ||
} | ||
|
||
.header__content img { | ||
position: relative; | ||
top: 10px; | ||
} | ||
|
||
.header__content a { | ||
margin-bottom: 20px; | ||
background: var(--primary-gradient); | ||
border-radius: 8px; | ||
font-size: 20px; | ||
font-weight: 600; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
Comment on lines
+80
to
+114
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 여기서 Header가 무엇일까요? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
.main__card { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
margin: 60px auto; | ||
gap: 160px; | ||
} | ||
|
||
.main__card:nth-child(even) { | ||
flex-direction: row-reverse; | ||
} | ||
Comment on lines
+124
to
+126
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 엄청 기발한데요!! ㅋㅋ 좋습니다 |
||
|
||
.main__card--text { | ||
width: 280px; | ||
} | ||
|
||
.main__card--text h2 { | ||
font-size: 50px; | ||
} | ||
|
||
.main__card--text p { | ||
color: var(--gray-darker); | ||
} | ||
|
||
.main__card img { | ||
width: 500px; | ||
height: 400px; | ||
} | ||
Comment on lines
+116
to
+143
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
#special-text-first { | ||
background: linear-gradient(to right, #fe8a8a, #a4ceff); | ||
background-clip: text; | ||
color: transparent; | ||
} | ||
|
||
#special-text-second { | ||
background: linear-gradient(to right, #6fbaff, #ffd88b); | ||
background-clip: text; | ||
color: transparent; | ||
} | ||
|
||
#special-text-third { | ||
background: linear-gradient(to right, #6d7ccd, #528885); | ||
background-clip: text; | ||
color: transparent; | ||
} | ||
|
||
#special-text-fourth { | ||
background: linear-gradient(to right, #a4ceff, #fe8a8a); | ||
background-clip: text; | ||
color: transparent; | ||
} | ||
Comment on lines
+145
to
+167
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
.company-name { | ||
color: var(--gray-dark); | ||
} | ||
|
||
.for-customer { | ||
text-align: center; | ||
} | ||
|
||
.social-media { | ||
text-align: end; | ||
} | ||
|
||
.social-media a { | ||
padding: 10px; | ||
} | ||
|
||
/* 로그인/회원가입 페이지 스타일 */ | ||
/*-----------------------------------------------*/ | ||
|
||
Comment on lines
+185
to
+187
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kuum97
위와 같은 구조로요! |
||
.sign__container { | ||
width: 100vw; | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: var(--gray-lighter); | ||
} | ||
|
||
.sign__container .logo { | ||
width: 220px; | ||
} | ||
|
||
.sign__container--header { | ||
margin-bottom: 30px; | ||
} | ||
Comment on lines
+188
to
+204
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이거에 맞춰서 구조를 나눠보면 좋겠습니다!
|
||
|
||
.goto__sign { | ||
margin-left: 30px; | ||
color: var(--primary); | ||
padding: 0; | ||
font-weight: 600; | ||
} | ||
|
||
.form__container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 30px; | ||
} | ||
|
||
form { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 15px; | ||
} | ||
|
||
input { | ||
width: 400px; | ||
height: 60px; | ||
border-radius: 8px; | ||
border: 1px solid var(--gray); | ||
padding-left: 10px; | ||
} | ||
Comment on lines
+220
to
+232
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. global하게 html element에 대한 스타일링을 피하는게 좋아보여요! |
||
|
||
#email :focus, | ||
#password :focus { | ||
border-color: var(--primary); | ||
} | ||
|
||
#submit { | ||
color: var(--white); | ||
} | ||
Comment on lines
+234
to
+241
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. id가 선언될 필요는 없어보입니다! 요 링크를 참고해 한번 해보면 어떨까요? |
||
|
||
.social-login__container { | ||
width: 400px; | ||
height: 60px; | ||
background-color: var(--gray-light); | ||
border: 1px solid var(--gray); | ||
border-radius: 8px; | ||
padding: 0 10px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.social-login { | ||
display: flex; | ||
} | ||
|
||
.social-login__button { | ||
padding: 5px; | ||
border-radius: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-right: 5px; | ||
box-shadow: 1px 2px 2px var(--gray); | ||
} | ||
|
||
.google { | ||
background-color: var(--white); | ||
} | ||
|
||
.kakao { | ||
background-color: #f5e14b; | ||
} | ||
Comment on lines
+255
to
+275
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 로그인 폼 구조도 이런식으로 활용해보면 어떨까요? /* Block */
.login-button {
...
}
/* pseudo-classes */
.login-button:hover {
...
}
.login-button:disabled {
...
} |
||
|
||
.password__box { | ||
position: relative; | ||
} | ||
|
||
.password_eye { | ||
position: absolute; | ||
right: 20px; | ||
top: 23px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kuum97
~~er 형태의 스타일 variant도 좋지만
디자이너가 갑자기 darker와 dark사이에 색 하나 더 추가할게요~ 하면 이거 네이밍 뭐라할지 골떄리잖아요 ㅋㅋ
그래서 실무에서는
gray-###
와 같이 숫자를 적용하는 형태를 많이 활용해요한번 그렇게 변경해보는건 어떨까요?