* Better video titles
* Clickable images in categories pages
This commit is contained in:
parent
46f9000358
commit
65ea393b7e
@ -12,6 +12,9 @@ html, body, div, tag {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-transform: capitalize;
|
||||||
|
}
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: whitesmoke;
|
color: whitesmoke;
|
||||||
@ -29,7 +32,7 @@ a {
|
|||||||
padding: 0 2em;
|
padding: 0 2em;
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
color: whitesmoke;
|
color: whitesmoke;
|
||||||
max-width: 1000px;
|
max-width: 80%;
|
||||||
}
|
}
|
||||||
.video-gallery {
|
.video-gallery {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -31,7 +31,7 @@ class VideoMeta {
|
|||||||
return container
|
return container
|
||||||
}
|
}
|
||||||
|
|
||||||
thumbnail_div() : HTMLImageElement {
|
thumbnail_div() : HTMLAnchorElement {
|
||||||
let nail = document.createElement('img')
|
let nail = document.createElement('img')
|
||||||
nail.className = 'pure-img'
|
nail.className = 'pure-img'
|
||||||
|
|
||||||
@ -41,8 +41,15 @@ class VideoMeta {
|
|||||||
} else{
|
} else{
|
||||||
nail.setAttribute('src', '/cantfindshit.gif')
|
nail.setAttribute('src', '/cantfindshit.gif')
|
||||||
}
|
}
|
||||||
|
let link = document.createElement('a')
|
||||||
|
if(this.name) {
|
||||||
|
link.href = `/category/${this.name}`
|
||||||
|
} else {
|
||||||
|
link.href = '#'
|
||||||
|
}
|
||||||
|
link.appendChild(nail)
|
||||||
|
|
||||||
return nail
|
return link
|
||||||
}
|
}
|
||||||
|
|
||||||
public as_div() {
|
public as_div() {
|
||||||
|
Loading…
Reference in New Issue
Block a user