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

LandingSection.tsx 518 B

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
  1. import cx from 'classnames'
  2. type Props = {
  3. title?: React.ReactNode
  4. sectionLink?: string
  5. children?: React.ReactNode
  6. className?: string
  7. }
  8. export const LandingSection = ({ title, children, className, sectionLink }: Props) => {
  9. return (
  10. <div className={cx('container-xl px-3 px-md-6', className)} id={sectionLink}>
  11. {title && (
  12. <h2 className="font-mktg h1 mb-4">
  13. {sectionLink ? <a href={`#${sectionLink}`}>{title}</a> : title}
  14. </h2>
  15. )}
  16. {children}
  17. </div>
  18. )
  19. }
Tip!

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

Comments

Loading...