Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.48.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : FeatureCard.js
import React from 'react'
import styled from 'styled-components'
import {Flex, Image, Text} from 'rebass'

const Card = styled(Flex)`
  background-color: #f2f2f2ab;
  box-shadow: 5px 5px 1px 1px ${(props) => props.theme.colors.red};
  border-radius: 2px;
`

const Desc = styled.p`
  padding: 5px 0; 
  font-size: 16px;
`

const Title = styled(Text)`
  font-size: 24px;
  font-weight: 500;
  text-shadow: 1px 2px 2px #f061df6e;
`

const Icon = styled(Image)`
  width: 110px;
  flex-shrink: 0;
`

const FeatureCard = ({icon, text, title}) => {
  return (
    <Card alignItems='center' flexDirection={['column', 'row']} p={5} m={4}>
      <Icon src={icon} />
      <Flex flexDirection='column' pl={[0, 4]} pt={2}>
        <Title textAlign={['center', 'left']}>{title}</Title>
        <Desc>{text}</Desc>
      </Flex>
    </Card>
  )
}

export default FeatureCard
© 2025 XylotrechusZ