Skip to content

Commit

Permalink
#54 하이 알코올 페이지 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
alreadynyeong committed Jan 24, 2022
1 parent 7f0070e commit b43f813
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 28 deletions.
15 changes: 9 additions & 6 deletions public/css/test_result.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,19 @@ main {
border-radius: 10px;
}

.share {
margin-top: 30px;
margin-bottom: 30px;
font-size: 15px;
color: white;
}
.share img {
width: 50px;
}

.share button{
background-color: #242424;
border: #242424;
color: white;
font-size: 15px;
margin-top: 30px;
margin-bottom: 30px;
}

.copy button{
color: white;
font-size: 17px;
Expand Down
32 changes: 10 additions & 22 deletions template/mbti_result.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,6 @@ module.exports = {
},
HOME: function(data, des) {
return `
<script>
// 카카오 공유를 위한 임시코드
Kakao.init('b305a1173710e4ff765e09b5a62e314c');
function link_kakao() {
var sh_title = "나와 어울리는 칵테일은?";
var sh_desc = "당신에게 어울리는 칵테일을 찾아보세요.\nHi Alcohol";
Kakao.Link.sendDefault({
objectType: 'feed',
content: {
title: sh_title, description: sh_desc,
imageUrl: "../img/cocktail.png",
link: { mobileWebUrl: "모바일 링크 url",
webUrl: "PC 링크 url"
}
},
});
}
</script>
<body>
<div class="result">
<a>당신에게 어울리는 술은</a><br>
Expand Down Expand Up @@ -58,9 +37,15 @@ module.exports = {
<div class="button"><button id="restart" class="btn" onClick="location.href='../mbti' "> 처음으로</button></div><br>
<div class="copy"><button id="copy" class="btn">링크 복사</button></div>
<div class="share"><img src="/public/img/bt_kakao.png"><br>공유하기</div>
<div class="share"><button id = "share" class="btn"><img src="/public/img/bt_kakao.png"><br>공유하기</button></div>
<input type="text" value="복사될 URL 경로" id="link" style="display:none;">
<div class="site">
<span style= "color:white;">더 많은 술을 추천받고싶다면?<br>술 조합 추천 웹사이트</span>
<a href="/" style="font-family: 'Pattaya', sans-serif; font-size:30px;color: #0bf3bc">Hi Alcohol</a>
</div>
</main>
Expand All @@ -77,6 +62,9 @@ module.exports = {
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="/public/js/share.js" type="text/javascript"></script>
<script>
Kakao.init('b305a1173710e4ff765e09b5a62e314c');
</script>
</head>
Expand Down

0 comments on commit b43f813

Please sign in to comment.