From 0186388b32432d9e403e4e027d1090cf5c6fe196 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 10 Dec 2022 07:47:02 +0000 Subject: [PATCH] community tabss!!! --- html/channel.ejs | 213 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 164 insertions(+), 49 deletions(-) diff --git a/html/channel.ejs b/html/channel.ejs index ef360007..48449251 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -89,6 +89,47 @@ color:#0ab7f0; } + .community { + display: flex; +flex-direction: column; +align-items: center; +border-radius: 30px; +padding: 10px; + padding-bottom: 10px; +width: fit-content; +margin-top: 12px; +margin-left: auto; +margin-right: auto; +padding-bottom: 32px; + } +.community-content { + margin-bottom: 1em; + margin-top: 1em; + padding: 13px; + text-align: left; + background: #111; + width:50.562em; + border-radius: 22px; +} + + .community-attachment-video { + + } + + .comments-author { + margin: 7px; + margin-top: -2px; + font-family: inter; + white-space: -moz-pre-wrap !important; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + white-space: pre-wrap; + word-wrap: anywhere; + white-space: -webkit-pre-wrap; + word-break: break-all; + white-space: normal; +} + .video-grid > .video { border-radius: 16px; background: black; @@ -148,6 +189,7 @@ <% } %> @@ -287,6 +332,7 @@ .tabs a.tab { position: relative; display: table-cell; + text-transform:uppercase; transition: all ease 0.3s; padding: 1em 1.6em; transform: translate3d(0, 0, 0); @@ -412,19 +458,40 @@ + - <% if (!isMobile) { %> + <% if (!isMobile) { %> -
+
<% if (!tab) { %> - Uploads - About - <% } %> - <% if (tab) { %> + Lastest Videos + <% if (Array.isArray( c.comments)) { %> - Uploads - About + Community + <% } %> + + + About + <% } %> + <% if (tab === "about") { %> + + Lastest Videos + <% if (Array.isArray( c.comments)) { %> + + Community + <% } %> + + About + <% } %> + + <% if (tab === "community") { %> + + Lastest Videos + + Community + + About <% } %>
@@ -432,6 +499,7 @@ <% } %> +
<% } %> <% if (isMobile) { %> @@ -523,7 +591,7 @@ width: fit-content;margin-left: 8.5em;
- <% if (!continuation) { %> + <% if (Array.isArray( tj)) { %> <% tj.forEach (x => { %> @@ -534,51 +602,98 @@ width: fit-content;margin-left: 8.5em;
<% }) %> - <% } %> + <% } %> + - <% if (continuation) { %> - - <% tj.forEach (x => { %> - -
<%- turntomins(x.lengthSeconds) %>
-
- <%- x.title %> - -
-
- <% }) %> + - <% if (!continuation) { %> - - <% if (tj.Channel.Contents.ItemSection.ItemSection.Continuation) { %> - - -
- Next Page - -
- - <% } %> - <% } %> - <% if (continuation) { %> - - <% if (tj.Channel.Contents.Continuation) { %> - - -
- Next Page - -
- - <% } %> - <% } %> - <% } %> - + + <% } %> + <% if (tab === "community") { %> + <% if (Array.isArray( c.comments)) { %> +
+ + <% c.comments.forEach (x => { %> +
+ +
+ + + + +
+ + +

+ <%=j.Channel.Metadata.Name%> + + + + +
<%- x.publishedText %> - + <%- convert(x.likeCount) %> likes + + +
+ + + + + + +

+ +
+

+ <%- x.contentHtml %> + +

+ + <% if (x.attachment) { %> + <% if (x.attachment.type === "video") { %> + +
+ + +
+ + + <% } %> + <% if (x.attachment.type === "image") { %> + + <% if (x.attachment.imageThumbnails[4] ) { %> + + + <% } %> <% } %> + + + <% } %> + + +
+ + + <% }) %> + + <% } %> <% } %> + + + <% if (tab === "about") { %>

About