Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
let d = this.date;
if(date.isValid(this.date, SERVER_DATE_FORMAT)){
d = date.format(date.parse(this.date, SERVER_DATE_FORMAT), 'YYYY');
}
return html`
<style>
:host{
text-align: left;
}
.card{
display: inline-block;
width: ${ this.width || '230px'};
height: 0;
margin: 8px;
position: relative;
cursor: pointer;
text-decoration: none;</style>
render() {
var d = this.date;
if(date.isValid(this.date, SERVER_DATE_FORMAT)){
d = date.format(date.parse(this.date, SERVER_DATE_FORMAT), 'YYYY');
}
return html`
<style>
h3{
margin: 5px 0;
font-size: 18px;
}
#date{
float: right;
font-size: 13px;
margin-top: 8px;
}
p{
color: #333;</style>
render() {
let d = this.date;
if(date.isValid(this.date, SERVER_DATE_FORMAT)){
d = date.format(date.parse(this.date, SERVER_DATE_FORMAT), 'MMMM DD, YYYY');
}
let authors = this.authors
if(typeof(authors) == "string"){
authors = JSON.parse(authors);
}
return html`
<style>
.byline{
margin-right: -10px;
margin-top: -20px;
color:#9A9A9A;
min-height: 50px;
}</style>