Skip to content

Commit

Permalink
#35 새탭 열기
Browse files Browse the repository at this point in the history
  • Loading branch information
stories2 committed Jun 19, 2021
1 parent ea4dcb3 commit c53009d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
13 changes: 13 additions & 0 deletions public/assets/css/conne-top.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#microphone {
min-width: 400px;
width: 100%;
max-width: 460px;
position: absolute;
left: -100px;
animation: upDown 1.5s alternate infinite ease-in-out;
pointer-events: none;
}

#attack-on-conne-chan-container {
pointer-events: none;
}
2 changes: 1 addition & 1 deletion public/assets/css/section.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ div.concert-info-block-position {
@media (min-width: 1200px) {
div.concert-info-block-position {
top: -250px;
z-index: -1;
/* z-index: -1; */
}
}
@media (min-width: 1400px) {
Expand Down
14 changes: 7 additions & 7 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<link rel="stylesheet" href="assets/css/ticketing-info.css">
<link rel="stylesheet" href="assets/css/sns.css">
<link rel="stylesheet" href="assets/css/section.css">
<link rel="stylesheet" href="assets/css/conne-top.css">

<meta property="og:title" content="우타코네"/>
<meta property="og:type" content="article"/>
Expand Down Expand Up @@ -58,7 +59,7 @@
</div>
</div>
<!-- Only screen size -->
<div class="container d-none d-xl-block">
<div class="container d-none d-xl-block" id="attack-on-conne-chan-container">
<div class="row justify-content-center title-ribbon">
<div class="col-12 col-md-10 col-lg-10 col-xl-9">
<img src="assets/img/title_ribbon.png">
Expand All @@ -84,9 +85,7 @@
<div class="row">
<div class="col-xl-3 col-lg-6">
<img
src="assets/img/microphone.png"
style="min-width: 400px;width:100%;max-width: 460px; position: absolute;
left: -100px; animation: upDown 1.5s alternate infinite ease-in-out;">
src="assets/img/microphone.png" id="microphone">
</div>
</div>
</div>
Expand All @@ -101,9 +100,9 @@
</div>
<div class="row sns-icon-row">
<div class="col-12">
<img src="assets/img/twitter.png" alt="">
<img src="assets/img/facebook.png" alt="">
<img src="assets/img/instagram.png" alt="">
<img src="assets/img/twitter.png" alt="" onclick="openPageInNewTab(`https://google.com`, 'twitter')" id="sns-twitter">
<img src="assets/img/facebook.png" alt="" onclick="openPageInNewTab(`https://google.com`, 'facebook')">
<img src="assets/img/instagram.png" alt="" onclick="openPageInNewTab(`https://google.com`, 'instagram')">
</div>
</div>
</div>
Expand Down Expand Up @@ -364,5 +363,6 @@ <h2 id="name" class="artist-title"></h2>
<script src="src/ticketing-info.js"></script>
<script src="src/artist.js"></script>
<script src="src/firebase-script.js"></script>
<script src="src/sns.js"></script>
</body>
</html>
6 changes: 6 additions & 0 deletions public/src/sns.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function openPageInNewTab(url, type) {
analytics.logEvent('sns-page-open', {
type
});
window.open(url, '_blank');
}

0 comments on commit c53009d

Please sign in to comment.