Added front page, moved shelf navigation to header.

This commit is contained in:
2023-06-25 23:50:08 +02:00
parent 77085c5755
commit b3e5769d39
27 changed files with 554 additions and 109 deletions

View File

@@ -3,7 +3,7 @@ import { fetchShelf } from '../../src/shelves';
import { fetchShelfPosts } from '../../src/posts';
async function getPageData(pageContext) {
const shelf = await fetchShelf(pageContext.routeParams.id);
const shelf = await fetchShelf(pageContext.routeParams.id, { user: pageContext.session.user });
const posts = await fetchShelfPosts(pageContext.routeParams.id, { user: pageContext.session.user, limit: 50 });
if (!shelf) {

View File

@@ -33,6 +33,7 @@ const {
.posts {
width: 100%;
display: flex;
flex-direction: column;
margin-bottom: 1rem;
}