new and improved wider layout

pull/46/head
Akhil Gupta 4 years ago
parent 593acfad4b
commit c2cc7cdea1

3
.gitignore vendored

@ -16,4 +16,5 @@
# vendor/ # vendor/
assets/* assets/*
keys/* keys/*
backups/* backups/*
nodemon.json

@ -40,9 +40,16 @@
</style> </style>
<style> <style>
.container { @media (min-width: 1400px){
max-width: 800px; .container {
} max-width: 1320px;
}
}
@media (min-width: 1200px){
.container {
max-width: 1140px;
}
}
.header { .header {
margin-top: 6rem; margin-top: 6rem;
text-align: center; text-align: center;

@ -26,7 +26,8 @@
} }
.grid .imageContainer{ .grid .imageContainer{
height: 250px; max-height: 160px;
margin-bottom: 10px;
} }
.grid .contentContainer, .grid .titleContainer{ .grid .contentContainer, .grid .titleContainer{
@ -97,7 +98,7 @@
<div :key="podcast.ID" class="podcasts" :title="podcast.Title" v-bind:class="{row:layout=='list', four:layout=='grid', columns:layout=='grid'}" v-bind:id="'podcast-'+podcast.ID" > <div :key="podcast.ID" class="podcasts" :title="podcast.Title" v-bind:class="{row:layout=='list', two:layout=='grid', columns:layout=='grid'}" v-bind:id="'podcast-'+podcast.ID" >
<div class="columns imageContainer" v-bind:class="{two:layout=='list', twelve:layout=='grid'}"> <div class="columns imageContainer" v-bind:class="{two:layout=='list', twelve:layout=='grid'}">
<a style="text-decoration: none" :href="'/podcasts/'+podcast.ID+'/view'"> <a style="text-decoration: none" :href="'/podcasts/'+podcast.ID+'/view'">
<img <img
@ -121,7 +122,7 @@
<div class="row"> <div class="row">
<div class="columns" v-bind:class="{four:layout=='list', twelve:layout=='grid'}"> <div class="columns" v-bind:class="{four:layout=='list', twelve:layout=='grid'}">
<template v-if="podcast.LastEpisode">Last Ep : ${getFormattedLastEpisodeDate(podcast)}</template> <span v-if="podcast.LastEpisode" :title="'Last Episode aired on '+getFormattedLastEpisodeDate(podcast)">${getFormattedLastEpisodeDate(podcast)}</span>
</div> </div>
<div <div
@ -216,7 +217,7 @@
el: "#app", el: "#app",
computed:{ computed:{
podcastGroups(){ podcastGroups(){
var i,j,temparray,chunk = 3; var i,j,temparray,chunk = 6;
var toReturn=[]; var toReturn=[];
for (i=0,j=this.podcasts.length; i<j; i+=chunk) { for (i=0,j=this.podcasts.length; i<j; i+=chunk) {
toReturn.push(this.podcasts.slice(i,i+chunk)); toReturn.push(this.podcasts.slice(i,i+chunk));

Loading…
Cancel
Save