-
Notifications
You must be signed in to change notification settings - Fork 66.3k
Expand file tree
/
Copy pathDiscoveryLanding.tsx
More file actions
36 lines (34 loc) · 1.11 KB
/
DiscoveryLanding.tsx
File metadata and controls
36 lines (34 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { DefaultLayout } from '@/frame/components/DefaultLayout'
import { useLandingContext } from '@/landings/context/LandingContext'
import { LandingHero } from '@/landings/components/shared/LandingHero'
import { ArticleGrid } from '@/landings/components/shared/LandingArticleGridWithFilter'
import { LandingCarousel } from '@/landings/components/shared/LandingCarousel'
import { UtmPreserver } from '@/frame/components/UtmPreserver'
export const DiscoveryLanding = () => {
const {
title,
intro,
heroImage,
introLinks,
tocItems,
recommended,
includedCategories,
landingType,
} = useLandingContext()
return (
<DefaultLayout>
<UtmPreserver />
<div>
<LandingHero title={title} intro={intro} heroImage={heroImage} introLinks={introLinks} />
<div className="container-xl px-3 px-md-6 mt-6 mb-4">
<LandingCarousel recommended={recommended} />
<ArticleGrid
tocItems={tocItems}
includedCategories={includedCategories}
landingType={landingType}
/>
</div>
</div>
</DefaultLayout>
)
}