Skip to content

Commit

Permalink
[Feat] 매운맛 페이지에서 메인 페이지로 돌아가는 버튼 생성
Browse files Browse the repository at this point in the history
간략한 안내문도 한글로 변경
  • Loading branch information
kukucorn committed Sep 23, 2021
1 parent 0597db0 commit e0bccc3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
32 changes: 28 additions & 4 deletions public/stylesheets/cookie.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ body {
overflow: hidden;
}

.button-wrapper {
display: flex;
flex-direction: row;
}

button {
appearance: none;
background: none;
Expand Down Expand Up @@ -87,10 +92,13 @@ small, .small {
display: flex;
justify-content: center;
flex-direction: column;
height: 40vmin;
height: 140vmax;
position: relative;
width: 100%;

padding: 10px 0 10px 0;
}

#fortuneCookie:not(.open) {
transform-origin: 50% 0%;
animation-name: shake;
Expand All @@ -110,16 +118,32 @@ small, .small {
border-radius: 0.25rem;
color: white;
font-size: 1rem;
margin-top: 0.5rem;
padding: 0.25rem;
transition: 250ms;

margin: 0 1rem 0 1rem;
}

#new:hover {
background-color: white;
border-color: var(--main-color);
color: var(--main-color);
}

#return {
background-color: grey;
border: 1px solid transparent;
border-radius: 0.25rem;
color: white;
font-size: 1rem;
transition: 250ms;

margin: 0 1rem 0 1rem;
}

#return:hover {
background-color: white;
border-color: grey;
color: grey;
}

.cookie {
Expand All @@ -128,7 +152,7 @@ small, .small {
height: 40vmin;
width: 40vmin;
position: absolute;
top: 0;
top: 30px;
z-index: 5;
}

Expand Down
9 changes: 5 additions & 4 deletions views/hot.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends layout

block content
h1 매운맛 쿠키
small Tap on the cookie to open
small 쿠키를 클릭 해주세요
#fortuneCookie
button(type="button")#cookie
.cookie
Expand All @@ -12,9 +12,10 @@ block content
.fortune
.numbers
button(type="button")#flip.front.small
button#new(type="button") 새로 뽑기
form(action="/" method="get")
button#return(type="submit") 돌아가기
.button-wrapper
button#new(type="button") 새로 뽑기
form(action="/" method="get")
button#return(type="submit") 돌아가기

script(src='javascripts/cookie.js')

0 comments on commit e0bccc3

Please sign in to comment.