File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
lib/components/adopted-projects Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1010 export let githubUrl: string ;
1111 export let websiteUrl: string ;
1212 export let twitterUrl: string ;
13+ export let index: number = 0 ;
1314 </script >
1415
1516<section
16- class =" border-t border-gray-200 bg-gray-200 py-6 dark:border-gray-700 dark:bg-gray-800 sm:py-10"
17+ class ={` border-t border-gray-200 py-6 sm:py-10
18+ ${index % 2 === 0 ? ' bg-background dark:bg-gray-800' : ' bg-gray-200 dark:bg-gray-800' }
19+ ${index % 2 === 0 ? ' dark:border-gray-700' : ' border-gray-200 dark:border-gray-700' } ` }
1720>
1821 <div class =" mx-auto max-w-7xl px-4 sm:px-6 lg:px-8" >
1922 <div class =" mb-4 mt-4 flex h-24 items-center" >
4851 {/each }
4952 </div >
5053
51- <a href ={githubUrl } class =" text-sm tracking-wide text-gray-300" >
54+ <a href ={githubUrl } class =" text-sm tracking-wide text-gray-600 dark:text-gray- 300" >
5255 View all projects on GitHub
5356 </a >
5457 </div >
Original file line number Diff line number Diff line change 116116 </div >
117117</section >
118118
119- <section class =" bg-background dark:bg-gray-900" >
120- {#each sections as section }
121- <ProjectSection {...section } />
122- {/each }
123- </section >
119+ <ProjectSection {...sections [0]} index ={0 } />
120+ <ProjectSection {...sections [1]} index ={1 } />
You can’t perform that action at this time.
0 commit comments