Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

ProductLanding.tsx 2.2 KB

You have to be logged in to leave a comment. Sign In
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
  1. import { DefaultLayout } from 'components/DefaultLayout'
  2. import { useProductLandingContext } from 'components/context/ProductLandingContext'
  3. import { LandingHero } from 'components/landing/LandingHero'
  4. import { FeaturedArticles } from 'components/landing/FeaturedArticles'
  5. import { GuideCards } from 'components/landing/GuideCards'
  6. import { SponsorsExamples } from 'components/landing/SponsorsExamples'
  7. import { CommunityExamples } from 'components/landing/CommunityExamples'
  8. import { CodeExamples } from 'components/landing/CodeExamples'
  9. import { LandingSection } from 'components/landing/LandingSection'
  10. import { useTranslation } from 'components/hooks/useTranslation'
  11. import { ProductArticlesList } from 'components/landing/ProductArticlesList'
  12. export const ProductLanding = () => {
  13. const {
  14. shortTitle,
  15. guideCards,
  16. productUserExamples,
  17. productCommunityExamples,
  18. productCodeExamples,
  19. } = useProductLandingContext()
  20. const { t } = useTranslation('product_landing')
  21. return (
  22. <DefaultLayout>
  23. <LandingSection className="pt-3">
  24. <LandingHero />
  25. </LandingSection>
  26. <LandingSection>
  27. <FeaturedArticles />
  28. </LandingSection>
  29. {productCodeExamples.length > 0 && (
  30. <LandingSection title={t('code_examples')} className="my-6">
  31. <CodeExamples />
  32. </LandingSection>
  33. )}
  34. {productCommunityExamples.length > 0 && (
  35. <LandingSection title={t('communities_using_discussions')} className="my-6">
  36. <CommunityExamples />
  37. </LandingSection>
  38. )}
  39. {productUserExamples.length > 0 && (
  40. <LandingSection title={t('sponsor_community')} className="my-6">
  41. <SponsorsExamples />
  42. </LandingSection>
  43. )}
  44. {/* {% if currentVersion contains 'enterprise-server' and currentProduct == 'admin' %}
  45. {% include product-releases %}
  46. {% endif %} */}
  47. {guideCards.length > 0 && (
  48. <div className="color-bg-tertiary py-6 my-8">
  49. <LandingSection title={t('guides')} className="my-6">
  50. <GuideCards />
  51. </LandingSection>
  52. </div>
  53. )}
  54. <LandingSection sectionLink="all-docs" title={`All ${shortTitle} Docs`}>
  55. <ProductArticlesList />
  56. </LandingSection>
  57. </DefaultLayout>
  58. )
  59. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...