当前位置: 首页 > news >正文

营销类网站有哪些网站 字体

营销类网站有哪些,网站 字体,注册无区域公司有什么要求,广州比较好的网站建设公司项目地址 https://github.com/hismeyy/react-component-100 组件描述 组件适用于需要展示图文信息的场景,比如产品介绍、用户卡片或任何带有标题、描述和可选图片的内容展示 样式展示 代码展示 InfoCard.tsx import ./InfoCard.cssinterface InfoCardProps {ti…

项目地址
https://github.com/hismeyy/react-component-100

组件描述
组件适用于需要展示图文信息的场景,比如产品介绍、用户卡片或任何带有标题、描述和可选图片的内容展示

样式展示
在这里插入图片描述

代码展示

InfoCard.tsx
import './InfoCard.css'interface InfoCardProps {title: string;description: string;imgSrc: string;imgAlt?: string;
}const InfoCard = ({ title, description, imgSrc, imgAlt = title
}: InfoCardProps) => {return (<div className='info-card'><div className='img'>{imgSrc && <img src={imgSrc} alt={imgAlt} />}</div><div className="info"><h6>{title}</h6><p>{description}</p></div></div>)
}export default InfoCard
InfoCard.css
.info-card {box-sizing: border-box;width: 240px;height: 80px;border-radius: 10px;background-color: #F5F5F5;box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);display: flex;justify-content: left;align-items: center;padding: 5px 5px 5px 10px;cursor: pointer;transition: all 0.3s ease;transform-origin: center;
}.info-card .img {width: 60px;height: 60px;border-radius: 6px;overflow: hidden;display: flex;justify-content: center;align-items: center;transition: transform 0.3s ease;
}.info-card .img img {width: 100%;height: 100%;object-fit: cover;
}.info-card .info{margin-left: 5px;height: 60px;
}.info-card .info h6 {all: unset;display: block;width: 160px;font-size: 14px;font-weight: bold;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;transition: color 0.3s ease;
}.info-card .info p {all: unset;display: -webkit-box;width: 160px;margin-top: 10px;font-size: 12px;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;line-height: 1.3;transition: color 0.3s ease;line-clamp: 2;box-orient: vertical;
}.info-card:hover {transform: translateY(-2px) scale(1.02);box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);background-color: #ffffff;
}.info-card:hover .img {transform: scale(1.05);
}.info-card:hover .info h6 {color: #f08a5d;
}.info-card:hover .info p {color: #666;
}

使用

App.tsx
import './App.css'
import InfoCard from './components/card/infoCard01/InfoCard'function App() {return (<><InfoCardtitle="React 18 新特性"description="React 18 带来了令人兴奋的新特性,包括自动批处理、Transitions API 和 Suspense 的改进。这些更新显著提升了应用性能和用户体验。"imgSrc="https://cdn1.iconfinder.com/data/icons/programing-development-8/24/react_logo-512.png"/></>)
}export default App
http://www.yayakq.cn/news/40264/

相关文章:

  • 网站模板 婴儿wdcp备份的数据库网站文件在哪里
  • 赌求网站开发山东青岛网站制作
  • dede网站地图html文件设计公司的企业使命
  • 公司网站出现空白页宿州网站开发建设
  • 厦门网站做的比较好在线图片制作生成
  • asp.net做网站视频重庆市住房和城乡建设岗位证书查询
  • 为了加强公司网站建设qq企业邮箱注册申请
  • 个人兼职做建设网站什么是品牌
  • 仿站多少钱网站建设与管理案例教程期末考试
  • setnet科技网站建设泰安人才市场招聘网
  • 双语网站建设报价芜湖公司网站建设
  • 重庆网站建设机构住房与城乡建设部网站打不开
  • 乐清网站开发公司制作小诗集
  • 下载网站开发创业平台排名
  • 郑州商城网站建设网站制作 呼和浩特
  • 中国建设银行河北省分行官方网站中华会计网校
  • 西安网站建设中企建站c2c的代表性电商平台
  • 免费做网站. 优帮云渠道策略的四种方式
  • 网站建设功能seowordpress 国内知名
  • 设计类的网站和简介免费素材网站pexels
  • 做网站的软件dw下载wordpress内容分页在哪改
  • 朝阳网站建设 高碑店网站建设工具品牌有哪些
  • 一个公司可以做2个网站么哈尔滨市建设工程招标信息网
  • 视频网站怎么做防盗链python合适做网站吗
  • 沈阳新民网站建设注册入口
  • 网站上常用的字体网站开发远程服务器如何设置
  • 公司网站封面怎么做谷歌浏览器怎么关闭2345网址导航
  • 专业的网站建设找聚爱电脑更新wordpress
  • 做笑话网站需要什么培训体系
  • 郑州中森网站建设开发项目的流程