Skip to content

Commit

Permalink
/posts/page/x page
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Jan 31, 2024
1 parent b0e417b commit cea3e67
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/v4/card/SmallCard/MediumPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import gumletLoader from "@/components/new-index/gumletLoader";

const MediumPost = ({link, title, image, tags, date, avatar, author }) => {
return (
<div className="flex mt-3 mb-6 sm:mt-0 flex-col hover:bg-white transition transition-all duration-300 p-1 rounded-2xl font-inter w-full">
<div className="flex h-full sm:mt-0 flex-col hover:bg-white transition transition-all duration-300 p-4 bg-white shadow-md rounded-2xl font-inter w-full">
{image ? (
<div className="w-full shrink-0 h-[180px] max-w-full sm:max-w-[190px] md:h-[240px] md:max-w-full relative rounded-2xl overflow-hidden border border-gray-100">
<Link href={link??''}>
Expand Down
2 changes: 1 addition & 1 deletion components/v4/layout/PostsGroup3Cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const dummyAvatar = 'https://s3-us-west-1.amazonaws.com/tinify-bucket/%2Fprototy
const PostsGroup3Cards = ({posts}) =>{

return(
<div className="grid grid-cols-3 gap-6 w-full">
<div className="grid grid-cols-3 gap-8 w-full">
{/* <SingleFancyCard/> */}
{/* <PrototyprNetworkCTA2 /> */}
{posts?.length ? (
Expand Down
2 changes: 1 addition & 1 deletion components/v4/section/PostsSectionHero.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const PostsSectionHero = ({user, heroCardPost, viewablePosts, jobsSidebar,title,
</>

}
<div className="w-full shadow-md h-full grid grid-cols-12 flex justify-center bg-white rounded-3xl p-6 lg:p-6">
<div className="w-full h-full grid grid-cols-12 flex justify-center">
<div className={`w-full max-w-full flex flex-col gap-2 col-span-12 `}>
<div className="flex justify-between">
<RSSTitle title={'All posts'}/>
Expand Down
2 changes: 1 addition & 1 deletion pages/posts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { getPostsByPageForPostsPage } from "@/lib/api";
import TagsNavRow from "@/components/v4/section/TagsNavRow";
import PostsSectionHero from "@/components/v4/section/PostsSectionHero";
// import Head from "next/head";
const PAGE_SIZE = 12;
const PAGE_SIZE = 9;
export default function PostsPage({ allPosts = [], preview, pagination = {} }) {
let heroPost;
let morePosts = [];
Expand Down
2 changes: 1 addition & 1 deletion pages/posts/page/[pageNo].js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import useUser from "@/lib/iron-session/useUser";
import { getAllPostsForPostsPage, getPostsByPageForPostsPage } from '@/lib/api'
import PostTitle from "@/components/post-title";
// import Head from 'next/head'
const PAGE_SIZE = 12;
const PAGE_SIZE = 9;
export default function PostsPage({allPosts = [], preview, pagination = {}}) {
let heroPost;
let morePosts = [];
Expand Down

0 comments on commit cea3e67

Please sign in to comment.