mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 16:24:29 +00:00
Update DiscoverComponent
This commit is contained in:
parent
716b46da85
commit
a5ce06f8b6
1 changed files with 34 additions and 6 deletions
|
@ -4,10 +4,10 @@
|
||||||
<img src="/img/pixelfed-icon-grey.svg">
|
<img src="/img/pixelfed-icon-grey.svg">
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div class="d-block d-md-none px-0 border-top-0 mx-n3">
|
<!-- <div class="d-block d-md-none px-0 border-top-0 mx-n3">
|
||||||
<input class="form-control rounded-0" placeholder="Search" v-model="searchTerm" v-on:keyup.enter="searchSubmit">
|
<input class="form-control rounded-0" placeholder="Search" v-model="searchTerm" v-on:keyup.enter="searchSubmit">
|
||||||
</div>
|
</div> -->
|
||||||
<section class="d-none d-md-flex mb-md-2 pt-5 discover-bar" style="width:auto; overflow: auto hidden;" v-if="categories.length > 0">
|
<!-- <section class="d-none d-md-flex mb-md-2 pt-5 discover-bar" style="width:auto; overflow: auto hidden;" v-if="categories.length > 0">
|
||||||
<a v-if="config.ab.loops == true" class="text-decoration-none bg-transparent border border-success rounded d-inline-flex align-items-center justify-content-center mr-3 card-disc" href="/discover/loops">
|
<a v-if="config.ab.loops == true" class="text-decoration-none bg-transparent border border-success rounded d-inline-flex align-items-center justify-content-center mr-3 card-disc" href="/discover/loops">
|
||||||
<p class="text-success lead font-weight-bold mb-0">Loops</p>
|
<p class="text-success lead font-weight-bold mb-0">Loops</p>
|
||||||
</a>
|
</a>
|
||||||
|
@ -15,11 +15,39 @@
|
||||||
<p class="text-white font-weight-bold" style="text-shadow: 3px 3px 16px #272634;">{{category.name}}</p>
|
<p class="text-white font-weight-bold" style="text-shadow: 3px 3px 16px #272634;">{{category.name}}</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</section>
|
</section> -->
|
||||||
<section class="mb-5 section-explore">
|
<section class="mb-5 section-explore">
|
||||||
<div class="profile-timeline">
|
<div class="profile-timeline">
|
||||||
<div class="row p-0">
|
<div class="row p-0 mt-5">
|
||||||
<div class="col-4 p-1 p-sm-2 p-md-3" v-for="post in posts">
|
<div class="col-12 col-md-6">
|
||||||
|
<div class="">
|
||||||
|
<a class="card info-overlay card-md-border-0" :href="posts[0].url">
|
||||||
|
<div class="square">
|
||||||
|
<span v-if="posts[0].type == 'photo:album'" class="float-right mr-3 post-icon"><i class="fas fa-images fa-2x"></i></span>
|
||||||
|
<span v-if="posts[0].type == 'video'" class="float-right mr-3 post-icon"><i class="fas fa-video fa-2x"></i></span>
|
||||||
|
<span v-if="posts[0].type == 'video:album'" class="float-right mr-3 post-icon"><i class="fas fa-film fa-2x"></i></span>
|
||||||
|
<div class="square-content" v-bind:style="{ 'background-image': 'url(' + posts[0].thumb + ')' }">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 col-md-6 row p-0 m-0">
|
||||||
|
<div v-for="(post, index) in posts.slice(1,5)" class="col-6" style="margin-bottom:1.8rem;">
|
||||||
|
<a class="card info-overlay card-md-border-0" :href="post.url">
|
||||||
|
<div class="square">
|
||||||
|
<span v-if="post.type == 'photo:album'" class="float-right mr-3 post-icon"><i class="fas fa-images fa-2x"></i></span>
|
||||||
|
<span v-if="post.type == 'video'" class="float-right mr-3 post-icon"><i class="fas fa-video fa-2x"></i></span>
|
||||||
|
<span v-if="post.type == 'video:album'" class="float-right mr-3 post-icon"><i class="fas fa-film fa-2x"></i></span>
|
||||||
|
<div class="square-content" v-bind:style="{ 'background-image': 'url(' + post.thumb + ')' }">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row p-0" style="display: flex;">
|
||||||
|
<div v-for="(post, index) in posts.slice(5)" class="col-3 p-1 p-sm-2 p-md-3">
|
||||||
<a class="card info-overlay card-md-border-0" :href="post.url">
|
<a class="card info-overlay card-md-border-0" :href="post.url">
|
||||||
<div class="square">
|
<div class="square">
|
||||||
<span v-if="post.type == 'photo:album'" class="float-right mr-3 post-icon"><i class="fas fa-images fa-2x"></i></span>
|
<span v-if="post.type == 'photo:album'" class="float-right mr-3 post-icon"><i class="fas fa-images fa-2x"></i></span>
|
||||||
|
|
Loading…
Reference in a new issue