@@ -7,13 +7,12 @@ import ArticleLoading from "@/components/ArticlePreview/ArticleLoading";
77import  {  useInView  }  from  "react-intersection-observer" ; 
88import  {  useSearchParams ,  useRouter  }  from  "next/navigation" ; 
99import  Link  from  "next/link" ; 
10- import  Image  from  "next/image" ; 
11- import  challenge  from  "@/public/images/announcements/challenge.png" ; 
1210import  {  api  }  from  "@/server/trpc/react" ; 
1311import  SideBarSavedPosts  from  "@/components/SideBar/SideBarSavedPosts" ; 
1412import  {  useSession  }  from  "next-auth/react" ; 
1513import  {  getCamelCaseFromLower  }  from  "@/utils/utils" ; 
1614import  PopularTagsLoading  from  "@/components/PopularTags/PopularTagsLoading" ; 
15+ import  CoduChallenge  from  "@/components/CoduChallenge/CoduChallenge" ; 
1716
1817const  ArticlesPage  =  ( )  =>  { 
1918  const  searchParams  =  useSearchParams ( ) ; 
@@ -97,8 +96,8 @@ const ArticlesPage = () => {
9796            </ select > 
9897          </ div > 
9998        </ div > 
100-         < div  className = "mx-auto grid-cols-12 gap-8  sm:max-w-2xl lg:grid lg:max-w-5xl" > 
101-           < div  className = "relative md:col-span-8 " > 
99+         < div  className = "mx-auto grid-cols-12 gap-6  sm:max-w-2xl lg:grid lg:max-w-5xl" > 
100+           < div  className = "relative md:col-span-7 " > 
102101            < section > 
103102              { status  ===  "error"  &&  ( 
104103                < div  className = "mt-8" > 
@@ -157,29 +156,8 @@ const ArticlesPage = () => {
157156              </ span > 
158157            </ section > 
159158          </ div > 
160-           < section  className = "col-span-4 hidden lg:block" > 
161-             < div  className = "mb-8 mt-2 rounded border border-neutral-300 bg-white text-neutral-900 dark:border-neutral-600 dark:bg-neutral-900 dark:text-neutral-50" > 
162-               < Link  href = "/articles/join-our-6-week-writing-challenge-quohtgqb" > 
163-                 < Image 
164-                   className = "w-full rounded-t" 
165-                   src = { challenge } 
166-                   alt = { `"Codú Writing Challenge" text on white background` } 
167-                 /> 
168-               </ Link > 
169-               < div  className = "my-3 break-words px-4 py-2 text-sm tracking-wide" > 
170-                 < Link 
171-                   className = "block text-lg font-semibold leading-6 underline" 
172-                   href = "/articles/join-our-6-week-writing-challenge-quohtgqb" 
173-                 > 
174-                   Join the Codú writing challenge!
175-                 </ Link > 
176-                 < p  className = "my-3" > 
177-                   Join our first Codú challenge! Write 6 articles in 6 weeks and
178-                   earn a swag bag.
179-                 </ p > 
180-                 < p > Click the link to find out more.</ p > 
181-               </ div > 
182-             </ div > 
159+           < section  className = "col-span-5 hidden lg:block" > 
160+             < CoduChallenge  /> 
183161            < h3  className = "mb-4 mt-4 text-2xl font-semibold leading-6 tracking-wide" > 
184162              Popular topics
185163            </ h3 > 
@@ -189,7 +167,6 @@ const ArticlesPage = () => {
189167                tagsData . data . map ( ( {  title } )  =>  ( 
190168                  < Link 
191169                    key = { title } 
192-                     // only reason this is toLowerCase is to make url look nicer. Not needed for functionality 
193170                    href = { `/articles?tag=${ title . toLowerCase ( ) }  } 
194171                    className = "rounded border border-neutral-300 bg-white px-6 py-2 text-neutral-900 dark:border-neutral-600 dark:bg-neutral-900 dark:text-neutral-50" 
195172                  > 
0 commit comments