add embed
This commit is contained in:
parent
264d1fd815
commit
4309344d8a
@ -15,6 +15,7 @@
|
|||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script src="chunk-vendors.js"></script>
|
<script src="chunk-vendors.js"></script>
|
||||||
<script src="app.js"></script>
|
<script src="app.js"></script>
|
||||||
|
<script async src="https://embed.bsky.app/static/embed.js" charset="utf-8"></script>
|
||||||
</body>
|
</body>
|
||||||
<footer>© syui</footer>
|
<footer>© syui</footer>
|
||||||
</html>
|
</html>
|
||||||
|
32
src/App.vue
32
src/App.vue
@ -58,26 +58,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="comment" v-if="loc === ''">
|
<div class="comment" v-if="loc === ''">
|
||||||
<div class="bsky_comment" v-if="comment_open == false">
|
<div class="bsky_comment_embed">
|
||||||
|
<blockquote class="bluesky-embed" data-bluesky-uri="at://did:plc:4hqjfn7m6n5hno3doamuhgef/app.bsky.feed.post/3kp5qn72s232q" data-bluesky-cid="bafyreiewdfyh6rywpkdzpmf5markqa6tavc5smc32q7cw2wpwbqik5hnfm"><p lang="ja">comment</p>— ai (<a href="https://bsky.app/profile/did:plc:4hqjfn7m6n5hno3doamuhgef?ref_src=embed">@yui.syui.ai</a>) <a href="https://bsky.app/profile/did:plc:4hqjfn7m6n5hno3doamuhgef/post/3kp5qn72s232q?ref_src=embed">Apr 2, 2024 at 23:09</a></blockquote>
|
||||||
<span class="comment">
|
|
||||||
<p class="comment-body" v-if="comment_first">
|
|
||||||
<img :src="'/icon/' + comment_first.did.replace('did:plc:', '') + '.jpg'" v-if="comment_first.avatar" class="comment"/> <span class="comment-time" v-if="comment_first.updated_at"><a :href="comment_first.bsky_url" v-if="comment_first.bsky_url">{{ moment(comment_first.updated_at) }}</a></span> <span class="comment-handle" v-if="comment_first.handle"><a :href="'https://' + comment_first.bsky_url.split('/').slice(2,5).join('/')" v-if="comment_first.bsky_url">@{{ comment_first.handle }}</a></span>
|
|
||||||
<span class="comment-text" v-if="comment_first.text">{{ comment_first.text }}</span>
|
|
||||||
</p>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<div class="comment_open" v-if="comment_first">
|
|
||||||
<p>
|
|
||||||
<a :href="comment_first.bsky_url" target="_blank" v-if="comment_first.bsky_url">post</a>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<button class="comment_open" v-on:click="comment_open = !comment_open"><i class="fa-solid fa-chevron-down"></i></button>
|
<button class="comment_open" v-on:click="comment_open = !comment_open"><i class="fa-solid fa-chevron-down"></i></button>
|
||||||
</p>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="comment" v-if="loc === ''">
|
||||||
|
<div class="bsky_comment" v-if="comment_open == false">
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="bsky_comment" v-else-if="api_json">
|
<div class="bsky_comment" v-else-if="api_json">
|
||||||
<span v-for="i in api_json.data" class="comment">
|
<span v-for="i in api_json.data" class="comment">
|
||||||
<p class="comment-body" v-if="i">
|
<p class="comment-body" v-if="i">
|
||||||
@ -382,6 +372,13 @@ button.comment_open:hover {
|
|||||||
border: solid 1px #eee;
|
border: solid 1px #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bsky_comment_embed {
|
||||||
|
background-color: #fff;
|
||||||
|
width: 600px;
|
||||||
|
margin: 0px auto;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
@ -393,6 +390,9 @@ button.comment_open:hover {
|
|||||||
.bsky_comment {
|
.bsky_comment {
|
||||||
width:auto;
|
width:auto;
|
||||||
}
|
}
|
||||||
|
.bsky_comment_embed {
|
||||||
|
width:auto;
|
||||||
|
}
|
||||||
.page_title a img {
|
.page_title a img {
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user