File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed
packages/web/docs/src/app/case-studies Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,16 @@ import { LookingToUseHiveUpsellBlock } from '../looking-to-use-hive-upsell-block
9
9
// because the class responsible for dark mode gets transformed
10
10
// so `dark:` prefixes don't work.
11
11
const ONE_OFF_CLASS_CASE_STUDIES = 'case-studies' ;
12
+ const MAIN_CONTENT = 'main-content' ;
12
13
13
14
export default function CaseStudiesLayout ( { children } : { children : React . ReactNode } ) {
14
15
return (
15
16
< div className = { cn ( ONE_OFF_CLASS_CASE_STUDIES , 'mx-auto box-content max-w-[90rem]' ) } >
16
17
< CaseStudiesHeader className = "mx-auto max-w-[--nextra-content-width] pl-6 sm:my-12 md:pl-12 lg:my-24" />
17
- < aside className = "sticky top-[92px] mx-auto max-w-[--nextra-content-width]" >
18
- < LookingToUseHiveUpsellBlock className = "absolute right-2 top-4 max-lg:hidden lg:w-[320px] xl:w-[400px]" />
19
- </ aside >
20
- { children }
18
+ < div className = { cn ( MAIN_CONTENT , ' mx-auto flex' ) } >
19
+ { children }
20
+ < LookingToUseHiveUpsellBlock className = "sticky right-2 top-[108px] mb-16 h-min max-lg:hidden lg:w-[320px] xl:w-[400px]" / >
21
+ </ div >
21
22
< MoreStoriesSection />
22
23
< GetYourAPIGameWhite className = "sm:my-24" />
23
24
</ div >
Original file line number Diff line number Diff line change 2
2
--nextra-content-width : 1208px ;
3
3
--article-max-width : 640px ;
4
4
5
- /* hide leftmost column to left-align the case study */
6
- & > div : first-of-type > : first-child {
7
- @apply hidden;
8
- }
5
+ & > .main-content {
6
+ width : var (--nextra-content-width );
7
+
8
+ /* hide leftmost column to left-align the case study */
9
+ & > div : first-of-type > : first-child {
10
+ @apply hidden;
11
+ }
9
12
10
- & > div > article {
11
- box-sizing : content-box;
12
- max-width : var (--article-max-width );
13
+ & > div > article {
14
+ box-sizing : content-box;
15
+ max-width : var (--article-max-width );
16
+ }
13
17
}
14
18
15
19
@apply text-green-1000 dark:text-white;
You can’t perform that action at this time.
0 commit comments