File tree Expand file tree Collapse file tree 6 files changed +9
-124
lines changed
Expand file tree Collapse file tree 6 files changed +9
-124
lines changed Original file line number Diff line number Diff line change 3535 export let extraImageAlt = " " ;
3636 export let extraImageLink = " " ;
3737 export let innerColumns = false ;
38+ export let extraVerticalPadding = false ;
3839
3940 let style = " " ;
4041 let mobile = false ;
171172 {caption }
172173 {tabs }
173174 {innerColumns }
175+ {extraVerticalPadding }
174176 />
175177 {/if }
176178 </div >
Original file line number Diff line number Diff line change 99 </script >
1010
1111<div
12- class ="text-red-berry-900 dark:text-neutral-300 flex flex-col items-center justify-center text-center {aspect }"
12+ class ="text-red-berry-900 dark:text-neutral-300 flex flex-col items-center justify-center text-center p-8 {aspect }"
1313>
1414 {#if innerColumn .icon }
1515 <DynamicIcon icon ={innerColumn .icon } {size } />
Original file line number Diff line number Diff line change 1919 export let tabs = undefined ;
2020 export let innerColumns = false ;
2121 export let aspectRatio = " 4:3" ;
22+ export let extraVerticalPadding = false ;
2223
2324 // Reactive variables for translations
2425 let reactiveTabs = tabs;
2526 let reactiveCaption = caption;
2627 let reactiveImgAlt = imgAlt;
28+ let innerColumnClasses = ` max-w-screen-md mx-auto flex flex-col gap-8 md:gap-16 mt-2 md:mt-0 md:grid md:grid-cols-2 ${ extraVerticalPadding ? " py-16" : " " } ` ;
2729
2830 // Helper function to check if an object or array is empty
2931 function isEmpty (value ) {
9193 {:else if reactiveTabs }
9294 <Tabs tabs ={reactiveTabs } />
9395 {:else if innerColumns }
94- <div
95- class =" max-w-2xl mx-auto flex flex-col gap-8 md:gap-16 mt-2 md:mt-0 md:grid md:grid-cols-2"
96- >
96+ <div class ={innerColumnClasses }>
9797 {#each innerColumns as innerColumn }
9898 {#if innerColumn .link }
9999 <a
Original file line number Diff line number Diff line change 7474 boxed : true
7575 background : /assets/media/bg_more.svg
7676 backgroundDark : /assets/media/bg_more_dark.svg
77+ extraVerticalPadding : true
7778 innerColumns :
7879 - icon : BsYoutube
7980 link : https://www.youtube.com/c/spyderide
You can’t perform that action at this time.
0 commit comments