Browse Source

react-landing/src: remove animation by default

pull/3/head
remorses 1 year ago
parent
commit
8f20c08a80
14 changed files with 15 additions and 15 deletions
  1. +1
    -1
      react-landing/src/Banner.tsx
  2. +1
    -1
      react-landing/src/Countdown.tsx
  3. +1
    -1
      react-landing/src/EmailForm.tsx
  4. +1
    -1
      react-landing/src/Faqs.tsx
  5. +1
    -1
      react-landing/src/Feature.tsx
  6. +1
    -1
      react-landing/src/FeaturesGrid.tsx
  7. +1
    -1
      react-landing/src/FeaturesList.tsx
  8. +1
    -1
      react-landing/src/Hero.tsx
  9. +2
    -2
      react-landing/src/HowItWorks.tsx
  10. +1
    -1
      react-landing/src/Pricing.tsx
  11. +1
    -1
      react-landing/src/SectionTitle.tsx
  12. +1
    -1
      react-landing/src/TestimonialsLogos.tsx
  13. +1
    -1
      react-landing/src/TestimonialsTweets.tsx
  14. +1
    -1
      react-landing/src/hooks.tsx

+ 1
- 1
react-landing/src/Banner.tsx View File

@ -12,7 +12,7 @@ export function Banner({
image = null as any,
flip = false,
fingerprint = '',
animate = true,
animate = undefined,
...props
}) {
const { bg = 'gray.100', background, backgroundColor, ...rest } = props

+ 1
- 1
react-landing/src/Countdown.tsx View File

@ -27,7 +27,7 @@ export function Countdown({
deadline,
bullet = '',
cta = '' as ReactNode,
animate = true,
animate = undefined,
...rest
}: SectionTitleProps) {
const [timeLeft, setTimeLeft] = useState(calculateTimeLeft({ deadline }))

+ 1
- 1
react-landing/src/EmailForm.tsx View File

@ -17,7 +17,7 @@ export type EmailFormProps = {
export function EmailForm({
cta = 'Notify me',
placeholder = 'Enter your email',
animate = true,
animate = undefined,
fingerprint = '',
value = '',
onChange = console.log,

+ 1
- 1
react-landing/src/Faqs.tsx View File

@ -17,7 +17,7 @@ export function Faqs({
heading = '',
subheading = '',
faqs,
animate = true,
animate = undefined,
...rest
}) {
const { Faded } = useFaded({ animate })

+ 1
- 1
react-landing/src/Feature.tsx View File

@ -11,7 +11,7 @@ export function Feature({
subheading,
image = null as any,
flip = false,
animate = true,
animate = undefined,
direction = 'row',
...rest
}) {

+ 1
- 1
react-landing/src/FeaturesGrid.tsx View File

@ -18,7 +18,7 @@ export function FeaturesGrid({
subheading = '',
features,
centerText = false,
animate = true,
animate = undefined,
...rest
}) {
const { Faded } = useFaded({ animate })

+ 1
- 1
react-landing/src/FeaturesList.tsx View File

@ -12,7 +12,7 @@ export function FeaturesList({
subheading = '',
features,
centerText = false,
animate = true,
animate = undefined,
...rest
}) {
const { Faded } = useFaded({ animate })

+ 1
- 1
react-landing/src/Hero.tsx View File

@ -17,7 +17,7 @@ export function Hero({
cta,
image,
bullet = '',
animate = true,
animate = undefined,
fingerprint = '',
...rest
}) {

+ 2
- 2
react-landing/src/HowItWorks.tsx View File

@ -11,7 +11,7 @@ export function HowItWorks({
heading,
subheading,
steps,
animate = true,
animate = undefined,
...rest
}) {
const { Faded } = useFaded({ animate })
@ -60,7 +60,7 @@ const Step = ({
number,
image,
flip = false,
animate = true,
animate = undefined,
...rest
}) => {
const dir = flip ? 'row-reverse' : 'row'

+ 1
- 1
react-landing/src/Pricing.tsx View File

@ -58,7 +58,7 @@ export function Pricing({
subheading = 'Real value for your work life',
features = [],
prices = [],
animate = true,
animate = undefined,
...rest
}: PageContainerProps & PricingProps) {
const belowPrice = '/ month'

+ 1
- 1
react-landing/src/SectionTitle.tsx View File

@ -20,7 +20,7 @@ export function SectionTitle({
subheading = '',
bullet = '',
cta = '' as ReactNode,
animate = true,
animate = undefined,
...rest
}: SectionTitleProps) {
const { Faded } = useFaded({ animate })

+ 1
- 1
react-landing/src/TestimonialsLogos.tsx View File

@ -10,7 +10,7 @@ export function TestimonialsLogos({
heading = '',
subheading = '',
testimonials,
animate = true,
animate = undefined,
...rest
}) {
const { Faded } = useFaded({ animate })

+ 1
- 1
react-landing/src/TestimonialsTweets.tsx View File

@ -20,7 +20,7 @@ export function TestimonialsTweets({
heading = '',
subheading = '',
tweets = [],
animate = true,
animate = undefined,
...rest
}) {
tweets = tweets.map(convertUrlToTweetId)

+ 1
- 1
react-landing/src/hooks.tsx View File

@ -9,7 +9,7 @@ import { useMemo } from 'react'
import { Fragment } from 'react'
export function useFaded({
animate = true,
animate = undefined,
triggerOnce = true,
...rest
}): { Faded: ElementType } {

Loading…
Cancel
Save