-
Notifications
You must be signed in to change notification settings - Fork 887
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
Channel community page #1568
Channel community page #1568
Changes from 28 commits
1df9f73
034fc4c
736fca5
bce1b5b
d452ceb
13ad637
134159b
ebfe1c8
fc747c5
5ab0a84
9d6ba3b
59903db
089b450
157db72
f7cb1de
d28af79
1b012b1
5bfec73
5d1485d
2b65ffa
63af918
3b62b75
e8b2d83
f7b8075
f64d225
7275896
fa0430c
be4130b
2cca684
6d49c34
4bb3d7b
b474a9f
f5d78a8
9177412
e722529
1402439
878efc1
06b79ee
9dcf8d1
cdc4512
6fa4811
40bdaf1
408bcac
491d24d
8db0d75
480e243
2ba1711
1f6a196
f7120b1
bce01d4
c840763
340b95c
c7824a1
404d07e
a8e3daf
77c9411
16222b1
7a9a1ca
486ae51
e3f2379
aef9ef1
ca80c2f
6a53191
fa3a962
942cfeb
60ebbf0
b1fbc64
067fdef
692bd8f
1012e6d
b2e82f1
fa55d8e
e4af04b
cd155a1
20b7efa
7fde6e6
fe90d99
2afdcdf
539cebd
9b97007
d4ac558
e55dac1
302031b
bf207be
174d13b
70e8bb2
267c1b9
484334b
f64678d
bb1dbf0
f6f45b4
480613f
b4f3f53
f5d5795
8263864
17603ab
955a336
6126208
125b233
3af757f
9ad7d64
279080c
f30a817
baf282a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
@use "../../sass-partials/_ft-list-item" | ||
.circle | ||
height: 10px | ||
width: 10px | ||
background-color: transparent | ||
border-radius: 50% | ||
border-style: solid | ||
border-width: 2px | ||
/*outline: #E0E0E0 solid*/ | ||
display: inline-block | ||
float: left | ||
top: 8px | ||
position: relative | ||
left: 5px | ||
|
||
.poll-text | ||
border-radius: 5px | ||
border-style: solid | ||
border-width: 2px | ||
padding: 5px 25px 5px | ||
|
||
.poll-option | ||
padding-bottom: 10px | ||
|
||
.communityImage | ||
width: 100% | ||
height: 100% | ||
|
||
.communityThumbnail | ||
-webkit-border-radius: 50% | ||
border-radius: 50% | ||
height: 55px | ||
width: 55px | ||
margin-right: 5px | ||
.author-div | ||
display: flex | ||
#authorName | ||
margin: 5px 6px 0px 5px | ||
font-size: 15px | ||
alignment: left | ||
font-weight: bold | ||
#publishedText | ||
/* margin: 20px 6px 0px 5px*/ | ||
margin: 5px 6px 0px 5px | ||
font-size: 15px | ||
|
||
.bottomSection | ||
margin-top: 4px | ||
font-size: 14px | ||
color: var(--tertiary-text-color) | ||
display: block | ||
flex-direction: column | ||
text-align: left | ||
max-width: 210px | ||
|
||
@media screen and (max-width: 680px) | ||
margin-left: 0 | ||
text-align: left | ||
|
||
.likeBar | ||
height: 8px | ||
border-radius: 4px | ||
margin-bottom: 4px | ||
|
||
#thumbs-down-icon | ||
transform: scaleX(-1) | ||
-moz-transform: scaleX(-1) | ||
-webkit-transform: scaleX(-1) | ||
-ms-transform: scaleX(-1) | ||
|
||
.likeCount | ||
margin-left: 5px | ||
margin-right: 6px | ||
|
||
.dislikeCount | ||
margin-right: 10px | ||
|
||
.playlistWrapper | ||
display: flex | ||
.videoThumbnail | ||
width: 50% | ||
display: flex | ||
position: relative | ||
margin-top: auto | ||
margin-bottom: auto | ||
.thumbnailImage | ||
width: auto | ||
height: auto | ||
display: block | ||
max-width: 100% | ||
|
||
|
||
.playlistText | ||
word-wrap: break-word | ||
width: 50% | ||
margin-left: 10px | ||
.playlistAuthor | ||
font-size: small | ||
.playlistVideoCount | ||
font-size: smaller | ||
|
||
.playlistTitle | ||
color: var(--primary-text-color) | ||
|
||
.playlistPreviewVideos | ||
font-size: small | ||
width: 100% | ||
display: flex | ||
color: var(--primary-text-color) | ||
padding-top: 10px | ||
text-decoration-line: none | ||
|
||
.playlistPreviewVideoTitle | ||
width: 100% | ||
display: block | ||
overflow: hidden | ||
white-space: nowrap | ||
text-overflow: ellipsis | ||
|
||
|
||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
<template> | ||
<div | ||
v-if="!isLoading" | ||
class="outside" | ||
> | ||
<div | ||
class="author-div" | ||
> | ||
<img | ||
:src="'https://'+authorThumbnails[Math.max(0, authorThumbnails.length-1)].url" | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
class="communityThumbnail" | ||
> | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<p | ||
id="authorName" | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
> | ||
{{ author }} | ||
</p> | ||
<p | ||
id="publishedText" | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
> | ||
{{ publishedText }} | ||
</p> | ||
</div> | ||
<p v-html="postText" /> | ||
<div | ||
v-if="type === 'image'" | ||
> | ||
<img | ||
:src="postContent.content[Math.max(0, postContent.content.length-1)].url" | ||
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. This isn't fully working. Check NBC News' post one month ago about Bill Cosby. The picture fails to load on FT but loads on YT. 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. Oddly the images load if you copy the source url and paste them in a browser. I'm curious as to if this is an issue that'd only appear in dev mode |
||
class="communityImage" | ||
> | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</div> | ||
<div | ||
v-if="type === 'video'" | ||
> | ||
<ft-list-video | ||
:data="data.postContent.content" | ||
appearance="" | ||
/> | ||
</div> | ||
<div | ||
v-if="type === 'poll'" | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
> | ||
<div | ||
class="poll-count" | ||
> | ||
{{ postContent.content.totalVotes }} | ||
</div> | ||
<div | ||
v-for="(poll, index) in postContent.content.choices" | ||
:key="index" | ||
> | ||
<div | ||
class="poll-option" | ||
> | ||
<span | ||
class="circle" | ||
/> | ||
<div | ||
class="poll-text" | ||
> | ||
{{ poll }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
v-if="type === 'playlist'" | ||
class="playlistWrapper" | ||
> | ||
<router-link | ||
class="videoThumbnail" | ||
:to="`/playlist/${postContent.content.playlistId}`" | ||
> | ||
<div | ||
class="imageWrapper" | ||
> | ||
<img | ||
:src="postContent.content.thumbnails[0].thumbnails[0].url" | ||
class="thumbnailImage" | ||
> | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</div> | ||
</router-link> | ||
<div | ||
class="playlistText" | ||
> | ||
<router-link | ||
class="playlistTitle" | ||
:to="`/playlist/${playlistId}`" | ||
> | ||
{{ postContent.content.title }} | ||
</router-link> | ||
<br> | ||
<span | ||
class="playlistAuthor" | ||
> | ||
{{ postContent.content.author }} | ||
- | ||
<span | ||
class="playlistVideoCount" | ||
> | ||
{{ postContent.content.videoCountText.text }} | ||
Videos | ||
</span> | ||
<br> | ||
</span> | ||
<router-link | ||
v-for="video in postContent.content.playlistVideoRenderer " | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
:key="video.videoId" | ||
class="playlistPreviewVideos" | ||
:to="`/watch/${video.videoId}`" | ||
> | ||
<span | ||
class="playlistPreviewVideoTitle" | ||
> | ||
{{ video.title }} | ||
</span> | ||
<span> | ||
· | ||
</span> | ||
<span | ||
class="playlistPreviewVideoLength" | ||
> | ||
{{ video.lengthText }} | ||
</span> | ||
<br> | ||
</router-link> | ||
</div> | ||
</div> | ||
<div | ||
class="bottomSection" | ||
> | ||
<span class="likeCount"><font-awesome-icon icon="thumbs-up" /> {{ voteCount }}</span> | ||
<span class="dislikeCount"><font-awesome-icon | ||
id="thumbs-down-icon" | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
icon="thumbs-down" | ||
/></span> | ||
<span class="commentCount"><font-awesome-icon | ||
id="comment-count-icon" | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
icon="comment" | ||
/> {{ commentCount }}</span> | ||
ChunkyProgrammer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</div> | ||
</div> | ||
</template> | ||
|
||
<script src="./ft-community-post.js" /> | ||
<style scoped src="./ft-community-post.sass" lang="sass" /> |
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.
This is aesthetically unpleasing in practice (I would guess that it is borrowing from some other part of the code base like the watch-video-comments styling). The author and timestamp are oddly elevated above the thumbnail.
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.
I'm pretty sure that this styling is the same as comments