Skip to content

ChamuMutezva/maker-pre-launch-landing-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maker-pre-launch Landing-page

This is a Frontend Mentor challenge that i completed using React. I am using these Frontend challenges to improve my programming skills.

Technology used

IntersectionImage - Intersection Observer Api

An api to use for lazy loading images for react applications. For more information see the following link react-intersection-image

  • to install it - npm install react-intersection-image --save
  • usage - Simply swap an img component for IntersectionImage to load images when they enter the viewport:
  • 
          export default () => (
              <IntersectionImage src="path/to/image" />
          );
    
    • adding a transition <IntersectionImage src="path/to/image" style={{ transition: 'opacity 500ms linear' }} />

What i learnt

Setting styles on components using props of boolean type. Assign a class to the component when the value of the prop is either true or false. Used this method as i had more than 1 component in a parent and wanted to style them differently. eg: see the card.js file , which is the child.

  • the prop was retrieved with this code let className = props.limebg ? 'limebg' : ''
  • the parent is found in the pricing.js - see how the class limebg is assigned
                    description="Ready for the big time? Our paid plan will help you take your business to the next level."
                    subtitle="$25.00" subtitle2=" /month" item1="Custom domain" item2="Advanced analytics and reports"
                    item3="High marketplace visibility" item4=" 5% fee per transaction"
                />

Using the Website

You can run the app using the live preview link below:

Mobile design preview

Mobile preview of finished project