Skip to content

Commit

Permalink
chore: fix mobile header
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagebakers committed Oct 9, 2024
1 parent 40b7adc commit 3eef184
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const GlobalSearch = (props: Omit<CommandBarProps, 'children'>) => {
} else if (action) {
action()
}
onClose()
onClose?.()
}}
>
{title}
Expand Down
11 changes: 7 additions & 4 deletions apps/website/src/components/motion/fall-in-place.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Box } from '@chakra-ui/react'
import MotionBox, { MotionBoxProps } from './box'
import { motion } from 'framer-motion'
import React from 'react'
import { useInView, IntersectionOptions } from 'react-intersection-observer'

Expand All @@ -8,6 +10,7 @@ export const FallInPlace = ({
translateY = '20px',
initialInView,
threshold,
transition,
onChange,
...rest
}: MotionBoxProps & {
Expand All @@ -25,7 +28,7 @@ export const FallInPlace = ({
})

return (
<MotionBox
<motion.div
ref={ref}
initial={{ scale: 1, opacity: 0, translateY }}
animate={inView && { scale: 1, opacity: 1, translateY: 0 }}
Expand All @@ -34,10 +37,10 @@ export const FallInPlace = ({
ease: 'easeOut',
duration: 2,
delay: initialInView ? delay : 0,
...transition,
}}
{...rest}
>
{children}
</MotionBox>
<Box {...rest}>{children}</Box>
</motion.div>
)
}
11 changes: 3 additions & 8 deletions apps/website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,11 @@ const Home = () => {
fontWeight="medium"
textAlign="center"
color="gray.600"
width="3xl"
maxW="3xl"
_dark={{ color: 'gray.400' }}
fontSize={{ base: 'md', md: 'xl', lg: '2xl' }}
initialInView
>
{/* Saas UI is a <Em>React component library</Em> and{' '}
<Em>starter kit</Em>
<Br display={{ base: 'none', md: 'inline' }} /> that
doesn&apos;t get in your way and helps you{' '}
<Br display={{ base: 'none', md: 'inline' }} /> build
intuitive SaaS products with speed. */}
Saas UI is a purpose-built toolkit for building high-quality
apps. Start with our free component library and build
fullstack apps with production-ready templates and starter
Expand Down Expand Up @@ -429,9 +423,10 @@ const Founder = () => {
fontWeight="semibold"
fontSize={['2xl', null, '4xl']}
lineHeight="lg"
color={useColorModeValue('black', 'white')}
color="black"
width={{ base: 'full', lg: '50%' }}
mb="8"
_dark={{ color: 'white' }}
>
Building SaaS products requires you to be a generalist on many fronts.
However many developers aren&apos;t very design savvy and vice versa.
Expand Down

0 comments on commit 3eef184

Please sign in to comment.