diff --git a/src/components/landing-page-components/context-providers/mobile-context-provider.jsx b/src/components/landing-page-components/context-providers/mobile-context-provider.jsx index d3a7c59e1..5a64d8c1a 100644 --- a/src/components/landing-page-components/context-providers/mobile-context-provider.jsx +++ b/src/components/landing-page-components/context-providers/mobile-context-provider.jsx @@ -4,10 +4,13 @@ const MobileContext = createContext(true); export const MobileContextProvider = ({ children }) => { const [isMobile, setIsMobile] = useState(true); + const [isTablet, setIsTablet] = useState(false); useEffect(() => { + if (!window) return; const handleResize = () => { setIsMobile(window.innerWidth < 896); + setIsTablet(window.innerWidth < 1024); }; handleResize(); window.addEventListener('resize', handleResize); @@ -18,7 +21,7 @@ export const MobileContextProvider = ({ children }) => { }, []); return ( - + {children} ); diff --git a/src/components/landing-page-components/parts/landing-page-card.jsx b/src/components/landing-page-components/parts/landing-page-card.jsx index c11f019f1..97f177eac 100644 --- a/src/components/landing-page-components/parts/landing-page-card.jsx +++ b/src/components/landing-page-components/parts/landing-page-card.jsx @@ -5,7 +5,7 @@ const LandingPageCard = ({ className = '', children, }) => { - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return (
{ - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); const [isExpanded, setIsExpanded] = useState(false); const toggleExpand = () => { diff --git a/src/components/landing-page-components/parts/landing-page-feature-card.jsx b/src/components/landing-page-components/parts/landing-page-feature-card.jsx index e86f0ca1c..379016a47 100644 --- a/src/components/landing-page-components/parts/landing-page-feature-card.jsx +++ b/src/components/landing-page-components/parts/landing-page-feature-card.jsx @@ -7,7 +7,7 @@ const LandingPageFeatureCard = ({ title, description, }) => { - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return ( { const cardRef = useRef(null); const [carWidth, setCardWidth] = useState(0); - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); useEffect(() => { const handleResize = () => { diff --git a/src/components/landing-page-components/parts/pricing-card.jsx b/src/components/landing-page-components/parts/pricing-card.jsx index da5091ef9..8ed9c62db 100644 --- a/src/components/landing-page-components/parts/pricing-card.jsx +++ b/src/components/landing-page-components/parts/pricing-card.jsx @@ -11,7 +11,7 @@ const PricingCard = ({ buttonTitle, href }) => { - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return (
{ const history = useHistory(); - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return (
{ - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return (
{ - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return ( diff --git a/src/components/landing-page-components/sections/landing-page-end.jsx b/src/components/landing-page-components/sections/landing-page-end.jsx index b1547765f..eb8845bee 100644 --- a/src/components/landing-page-components/sections/landing-page-end.jsx +++ b/src/components/landing-page-components/sections/landing-page-end.jsx @@ -11,7 +11,7 @@ const BACKER_LOGOS_SRC = [ ]; const LandingPageEnd = () => { - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return (
{ >
{ - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return ( diff --git a/src/components/landing-page-components/sections/landing-page-features-card.jsx b/src/components/landing-page-components/sections/landing-page-features-card.jsx index 88c6faaee..fb3616ecb 100644 --- a/src/components/landing-page-components/sections/landing-page-features-card.jsx +++ b/src/components/landing-page-components/sections/landing-page-features-card.jsx @@ -41,7 +41,7 @@ const FEATURES = [ ]; const LandingPageFeaturesCard = () => { - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); const history = useHistory(); return ( { - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return (
{ > Privacy policy - +
{ - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return (
{ const history = useHistory(); - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); const [isMenuOpen, setIsMenuOpen] = useState(false); diff --git a/src/components/landing-page-components/sections/landing-page-initial.jsx b/src/components/landing-page-components/sections/landing-page-initial.jsx index 7e0d679e4..2c1b51009 100644 --- a/src/components/landing-page-components/sections/landing-page-initial.jsx +++ b/src/components/landing-page-components/sections/landing-page-initial.jsx @@ -16,7 +16,7 @@ const BULLETS = [ const LandingPageInitial = () => { const history = useHistory(); - const isMobile = useIsMobile(); + const { isTablet } = useIsMobile(); return (
{
{
- Use AI to effortlessly generate context-aware, minimum viable documentation in .md from your codebase and existing docs. With Dev-Docs, ensure your documentation and content stay accurate and up to date. -
+
+
+ Use AI to effortlessly generate context-aware, minimum viable documentation in .md from your codebase and existing docs. With Dev-Docs, ensure your documentation and content stay accurate and up to date. +
-
- {BULLETS.map((bullet, index) => (
- - {bullet} + {BULLETS.map((bullet, index) => ( +
+ + {bullet} +
+ ))}
- ))} -
-
- history.push(LINK_GET_STARTED)} - > - Get started for free - +
+ history.push(LINK_GET_STARTED)} + > + Get started for free + - window.open(LINK_BOOK_MEETING, '_blank')} + > + Chat with us + +
+
+ +
window.open(LINK_BOOK_MEETING, '_blank')} > - Chat with us - + +
+
+
); }; diff --git a/src/components/landing-page-components/sections/landing-page-integrations-card.jsx b/src/components/landing-page-components/sections/landing-page-integrations-card.jsx index 1796cbff9..644254c0c 100644 --- a/src/components/landing-page-components/sections/landing-page-integrations-card.jsx +++ b/src/components/landing-page-components/sections/landing-page-integrations-card.jsx @@ -27,7 +27,7 @@ const INTEGRATIONS = [ ]; const LandingPageIntegrationsCard = () => { - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); const [selectedIndex, setSelectedIndex] = React.useState(0); diff --git a/src/components/landing-page-components/sections/landing-page-quotes.jsx b/src/components/landing-page-components/sections/landing-page-quotes.jsx index e9396681c..ceae7020d 100644 --- a/src/components/landing-page-components/sections/landing-page-quotes.jsx +++ b/src/components/landing-page-components/sections/landing-page-quotes.jsx @@ -56,7 +56,7 @@ const QUOTES = [ ]; const LandingPageQuotes = () => { - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return (
{ {/*
{ - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return ( diff --git a/src/pages/pricing/index.jsx b/src/pages/pricing/index.jsx index 4d9e11b45..9fd0a2eff 100644 --- a/src/pages/pricing/index.jsx +++ b/src/pages/pricing/index.jsx @@ -11,7 +11,7 @@ import PricingCards from '@site/src/components/landing-page-components/sections/ const PricingPage = () => { - const isMobile = useIsMobile(); + const { isMobile } = useIsMobile(); return ( diff --git a/static/landing-page/footer-img.png b/static/landing-page/footer-img.png index 6124861c5..44a57a70b 100644 Binary files a/static/landing-page/footer-img.png and b/static/landing-page/footer-img.png differ