Redo..People, Project pages

This commit is contained in:
samaradel
2020-11-29 16:12:45 +02:00
parent d98eb99411
commit 96ce74ee6f
4 changed files with 40 additions and 70 deletions

View File

@@ -103,26 +103,25 @@ button:focus {
} }
@media (min-width: 768px) { @media (min-width: 768px) {
// .with-large>.flex-post:nth-child(5n), .with-large>.flex-post:nth-child(5n),
.with-large>.flex-post:nth-child(6n + 1) { .with-large>.flex-post:nth-child(5n-1) {
@apply flex-100; // @apply flex-100;
@apply flex-row; flex: 1 1 50%;
@apply flex-col;
.post-card-image-link { .post-card-image-link {
// @apply flex-auto;
flex: 1 1 100%;
@apply relative; @apply relative;
min-height: 380px; min-height: 400px;
@apply mr-6;
} }
.post-card-image { .post-card-image {
@apply absolute; @apply absolute;
@apply h-auto; @apply h-full;
@apply w-full; @apply w-full;
@apply object-cover; @apply object-cover;
@apply rounded-lg; @apply rounded-lg;
} }
.post-card-content { .post-card-content {
@apply flex-post-large-content; // @apply flex-post-large-content;
flex: 0 1 auto;
@apply self-center; @apply self-center;
} }
.post-card-title { .post-card-title {
@@ -132,33 +131,15 @@ button:focus {
@apply text-xl; @apply text-xl;
} }
} }
// .with-large>.flex-overview:nth-child(6n + 1) { .projects>.flex-post:nth-child(5n),
// @apply flex-100; .projects>.flex-post:nth-child(5n-1) {
// @apply flex-row; .post-card-image-link {
// .post-card-image-link { min-height: 300px;
// @apply flex-auto; }
// @apply relative; .post-card-image {
// min-height: 380px; @apply h-auto;
// @apply mr-6; }
// } }
// .post-card-image {
// @apply absolute;
// @apply h-full;
// @apply w-full;
// @apply object-cover;
// @apply rounded-lg;
// }
// .post-card-content {
// @apply flex-post-large-content;
// @apply self-center;
// }
// .post-card-title {
// @apply text-4xl;
// }
// .post-card-excerpt {
// @apply text-xl;
// }
// }
} }
body[data-theme="dark"] { body[data-theme="dark"] {

View File

@@ -1,6 +1,9 @@
<template> <template>
<Layout> <Layout>
<div class="container sm:pxi-0 mx-auto"> <div
class="container sm:pxi-0 mx-auto"
:style="{ 'min-height': contentHeight + 'px' }"
>
<div class="flex flex-wrap with-large pt-8 pb-8 mx-4 sm:-mx-4"> <div class="flex flex-wrap with-large pt-8 pb-8 mx-4 sm:-mx-4">
<PostListItem <PostListItem
v-for="edge in $page.entries.edges" v-for="edge in $page.entries.edges"
@@ -68,6 +71,11 @@ export default {
baseurl: function () { baseurl: function () {
return ""; return "";
}, },
contentHeight() {
if (process.isClient) {
return window.innerHeight - 100;
}
},
}, },
}; };
</script> </script>

View File

@@ -5,12 +5,10 @@
:style="{ 'min-height': contentHeight + 'px' }" :style="{ 'min-height': contentHeight + 'px' }"
> >
<div class="flex flex-wrap with-large pt-8 pb-8 mx-4 sm:-mx-4"> <div class="flex flex-wrap with-large pt-8 pb-8 mx-4 sm:-mx-4">
<Team <PostListItem
title="THREEFOLD PEOPLE" v-for="edge in $page.entries.edges"
description="The heartbeat behind the ThreeFold Movement" :key="edge.node.id"
:objects="$page.entries.edges" :record="edge.node"
:tags="$page.memberships.edges"
tagsField="memberships"
/> />
</div> </div>
</div> </div>
@@ -24,15 +22,9 @@ query ($private: Int){
edges { edges {
node { node {
path path
excerpt
content content
name name
rank rank
memberships{
id
title
path
}
bio bio
linkedin linkedin
websites websites
@@ -59,14 +51,14 @@ query ($private: Int){
<script> <script>
import Pagination from "~/components/Pagination.vue"; import Pagination from "~/components/Pagination.vue";
import Team from "~/components/Team.vue"; import PostListItem from "~/components/PostListItem.vue";
export default { export default {
metaInfo: { metaInfo: {
title: "People", title: "People",
}, },
components: { components: {
Team, PostListItem,
Pagination, Pagination,
}, },
computed: { computed: {

View File

@@ -4,13 +4,11 @@
class="container sm:pxi-0 mx-auto overflow-x-hidden" class="container sm:pxi-0 mx-auto overflow-x-hidden"
:style="{ 'min-height': contentHeight + 'px' }" :style="{ 'min-height': contentHeight + 'px' }"
> >
<div class="flex flex-wrap with-large pt-8 pb-8 mx-4 sm:-mx-4"> <div class="flex flex-wrap with-large projects pt-8 pb-8 mx-4 sm:-mx-4">
<Team <PostListItem
title="THREEFOLD PARTNERS" v-for="edge in $page.entries.edges"
description="The heartbeat behind the ThreeFold Movement" :key="edge.node.id"
:objects="$page.entries.edges" :record="edge.node"
:tags="$page.memberships.edges"
tagsField="tags"
/> />
</div> </div>
</div> </div>
@@ -32,17 +30,8 @@ query ($private: Int){
image(width:64, height:64, fit:inside) image(width:64, height:64, fit:inside)
path path
}, },
tags {
id
title
path
}
rank rank
linkedin linkedin
startDate : startdate(format:"MM YYYY")
humanTime : created(format:"DD MMMM YYYY")
datetime : created(format:"ddd MMM DD YYYY hh:mm:ss zZ")
status
excerpt excerpt
image(width:800) image(width:800)
path path
@@ -66,7 +55,7 @@ query ($private: Int){
</page-query> </page-query>
<script> <script>
import Team from "~/components/Team.vue"; import PostListItem from "~/components/PostListItem.vue";
import Pagination from "~/components/Pagination.vue"; import Pagination from "~/components/Pagination.vue";
export default { export default {
@@ -74,7 +63,7 @@ export default {
title: "Projects", title: "Projects",
}, },
components: { components: {
Team, PostListItem,
Pagination, Pagination,
}, },
computed: { computed: {