Server IP : 66.29.132.122 / Your IP : 13.59.227.41 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/alt/alt-nodejs12/root/lib/node_modules/npm/docs/src/components/home/ |
Upload File : |
import React from 'react' import styled from 'styled-components' import FeatureCard from './FeatureCard' import { FeatureLink } from '../links' import { Flex } from 'rebass' import rectangles from '../../images/background-rectangles.svg' import terminalIcon from '../../images/terminal-icon.svg' import networkIcon from '../../images/network-icon.svg' import npmIcon from '../../images/npm-icon.png' import managerIcon from '../../images/manager-icon.svg' const ContainerInner = styled(Flex)` background: linear-gradient(84deg, #fb881799, #ff4b0199, #c1212799, #e02aff99); ` const Container = styled.div` background: top / cover no-repeat url(${rectangles}); ` const ContentWrapper = styled(Flex)` max-width: 640px; ` const featureTexts = { textOne: 'Download, install, and configure.', textTwo: 'All available npm commands.', textThree: 'How npm things work.', textFour: 'Publish your own public or private packages to the registry with a free or paid account on npmjs.com from npm, Inc.' } const featureTitles = { titleOne: 'Getting Started', titleTwo: 'Command Reference', titleThree: 'Using npm', titleFour: 'Publishing' } const aStyle = { color: '#231f20', textDecoration: 'none' } const productsLink = `https://www.npmjs.com/products` const Features = () => { return ( <Container> <ContainerInner> <ContentWrapper m='auto' py={5} flexDirection='column'> <FeatureLink to={'/configuring-npm/install'}> <FeatureCard icon={terminalIcon} title={featureTitles.titleOne} text={featureTexts.textOne} /> </FeatureLink> <FeatureLink to={'/cli-commands/npm'}> <FeatureCard icon={managerIcon} title={featureTitles.titleTwo} text={featureTexts.textTwo} /> </FeatureLink> <FeatureLink to={'/using-npm/developers'}> <FeatureCard icon={networkIcon} title={featureTitles.titleThree} text={featureTexts.textThree} /> </FeatureLink> <a href={productsLink} style={aStyle} target={'_blank'}> <FeatureCard icon={npmIcon} title={featureTitles.titleFour} text={featureTexts.textFour} /> </a> </ContentWrapper> </ContainerInner> </Container> ) } export default Features