Skip to content

Commit

Permalink
fix: spacing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel-Develops authored and adamjonas committed Oct 18, 2023
1 parent e07e671 commit 4bcf995
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions src/app/components/client/homepage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,24 @@ const Homepage = ({

return (
<main className=''>
<p className='text-2xl font-semibold md:mt-20 leading-normal'>Your daily summary</p>
<h2 className='font-inika my-8 md:mb-20 text-lg md:text-2xl text-gray-800'>{addSpaceAfterPeriods(data.header_summary)}</h2>
<div className='my-8'>
<div className="flex flex-col gap-6 md:gap-8 my-8 md:my-14">
<p className='text-2xl font-semibold leading-normal'>Your daily summary</p>
<h2 className='font-inika text-lg md:text-2xl text-gray-800'>{addSpaceAfterPeriods(data.header_summary)}</h2>
</div>
<div className='mb-14'>
<MailingListToggle selectedList={mailingListSelection} handleToggle={handleMailingListToggle} />
</div>
<div className='flex flex-col gap-12 break-words'>
<section>
<h2 className='text-xl md:text-4xl font-semibold pb-[60px]'>Active Discussions 🔥</h2>
<h2 className='text-xl md:text-4xl font-semibold pb-8'>Active Discussions 🔥</h2>
<div>
{homepageData.active_posts.map((entry) => (
<Post key={entry.id} entry={entry} isActivePost={true} />
))}
</div>
</section>
<div className=''>
<h2 className='text-xl md:text-4xl font-semibold pb-[60px]'>All Activity</h2>
<h2 className='text-xl md:text-4xl font-semibold pb-8'>All Activity</h2>
<div>
{memoizedBatches?.map((entry, idx) => (
<Post key={`${entry.id}_${idx}`} entry={entry} isActivePost={false} />
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/server/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Post = ({entry, isActivePost}: {entry: HomepageEntryData; isActivePost: bo
) : (
<p className='font-inter text-sm md:text-base font-bold'>Posted {publishedAtDateDisplay}</p>
)}
<div className="grid gap-8 grid-cols-2 text-sm">
<div className="grid grid-cols-2 text-sm">
<div className="flex basis-1/3 flex-col gap-1">
<p className='font-semibold'>Authored by</p>
<p className=''>
Expand Down
6 changes: 3 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export const metadata: Metadata = {

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang='en' className='h-full'>
<body className={`${inter.variable} ${inika.variable} font-inter h-full`}>
<div className='pt-[0px] md:pt-[76px] flex flex-col min-h-full w-full items-center'>
<html lang='en' className=''>
<body className={`${inter.variable} ${inika.variable} font-inter`}>
<div className='pt-2 md:pt-[56px] flex flex-col w-full items-center'>
<div className='relative w-full'>
<div className='sticky top-0 bg-white w-full h-[76px] flex items-center px-4 z-10'>
<Navbar />
Expand Down

0 comments on commit 4bcf995

Please sign in to comment.