|
1
|
export const revalidate = 3600 |
|
2
|
|
|
3
|
import clsx from "clsx" |
|
4
|
import { AiAssistantChatWindow, MainNav, RootProviders } from "docs-ui" |
|
5
|
import Providers from "../providers" |
|
6
|
import HomepageTopSection from "../components/Homepage/TopSection" |
|
7
|
import HomepageSectionsSeparator from "../components/Homepage/SectionsSeparator" |
|
8
|
import HomepageBloom from "../components/Homepage/Bloom" |
|
9
|
import HomepageLinksSection from "../components/Homepage/LinksSection" |
|
10
|
import HomepageFrameworkSection from "../components/Homepage/FrameworkSection" |
|
11
|
import HomepageCodeTabs from "../components/Homepage/CodeTabs" |
|
12
|
import HomepageRecipesSection from "../components/Homepage/RecipesSection" |
|
13
|
import HomepageCommerceModulesSection from "../components/Homepage/CommerceModulesSection" |
|
14
|
import HomepageFooter from "../components/Homepage/Footer" |
|
15
|
import HomepageStartPrompt from "../components/Homepage/StartPrompt" |
|
16
|
import HomepageWhatsNewSection from "../components/Homepage/WhatsNewSection" |
|
17
|
|
|
18
|
const Homepage = () => { |
|
19
|
return ( |
|
20
|
<body |
|
21
|
className={clsx( |
|
22
|
"font-base text-medium w-full", |
|
23
|
"text-medusa-fg-base", |
|
24
|
"h-screen overflow-hidden" |
|
25
|
)} |
|
26
|
> |
|
27
|
<RootProviders |
|
28
|
layoutProviderProps={{ |
|
29
|
disableResizeObserver: true, |
|
30
|
}} |
|
31
|
> |
|
32
|
<Providers |
|
33
|
aiAssistantProps={{ |
|
34
|
chatType: "popover", |
|
35
|
}} |
|
36
|
> |
|
37
|
<div |
|
38
|
className={clsx( |
|
39
|
"bg-medusa-bg-base", |
|
40
|
"shadow-elevation-card-rest dark:shadow-elevation-card-rest-dark", |
|
41
|
"h-full w-full", |
|
42
|
"overflow-y-scroll overflow-x-hidden" |
|
43
|
)} |
|
44
|
id="main" |
|
45
|
> |
|
46
|
<MainNav className="border-b border-medusa-border-base bg-medusa-bg-component" /> |
|
47
|
<div |
|
48
|
className={clsx( |
|
49
|
"xl:mx-auto xl:max-w-[1026px] w-full", |
|
50
|
"flex flex-col justify-center items-start", |
|
51
|
"xl:border-x xl:border-medusa-border-base" |
|
52
|
)} |
|
53
|
> |
|
54
|
<HomepageSectionsSeparator /> |
|
55
|
<HomepageTopSection /> |
|
56
|
<HomepageStartPrompt /> |
|
57
|
<HomepageSectionsSeparator /> |
|
58
|
<HomepageBloom /> |
|
59
|
<HomepageSectionsSeparator /> |
|
60
|
<HomepageWhatsNewSection /> |
|
61
|
<HomepageSectionsSeparator /> |
|
62
|
<HomepageLinksSection /> |
|
63
|
<HomepageSectionsSeparator /> |
|
64
|
<HomepageFrameworkSection /> |
|
65
|
<HomepageCodeTabs /> |
|
66
|
<HomepageSectionsSeparator /> |
|
67
|
<HomepageRecipesSection /> |
|
68
|
<HomepageSectionsSeparator /> |
|
69
|
<HomepageCommerceModulesSection /> |
|
70
|
<HomepageSectionsSeparator /> |
|
71
|
<HomepageFooter /> |
|
72
|
</div> |
|
73
|
</div> |
|
74
|
<AiAssistantChatWindow /> |
|
75
|
</Providers> |
|
76
|
</RootProviders> |
|
77
|
</body> |
|
78
|
) |
|
79
|
} |
|
80
|
|
|
81
|
export default Homepage |