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

网站更新升级常州微信网站建设方案

网站更新升级,常州微信网站建设方案,asp故障解答网站模板,我找别人做的网站现在不管了怎么办项目地址 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.sczhlp.com/news/123390/

相关文章:

  • 便宜高端网站设计推荐在线教学视频网站建设
  • 上海浦东建设管理有限公司网站网络服务公司名字
  • 银川建立网站济南中京网站建设公司
  • 山西做网站运营的公司hexo添加wordpress评论
  • 福建省住房和城乡建设厅的网站wordpress news list
  • 网站提交入口链接辽阳专业网站建设品牌
  • 如何提升网站的转化率华企网站建设
  • 网站备案登记表网站什么时候做等保
  • 河源网站制作新开传奇网站服
  • 手机企业网站推广新农村建设 网站
  • 佛山个性化网站开发网页是网站的什么颜色好看
  • 有像考试佳园一样做资料的网站吗wordpress 4.7.2 php
  • 宜春制作网站公司哪家好wordpress可以用火车头采集
  • 自适应网站建设哪家便宜做贺卡的网站
  • 国外那些视频网站做的不错深圳搜索优化排名
  • 名医工作室 网站建设石家庄高端网站制作
  • PHP网站开发常用函数手机建站源码
  • 我有一个域名怎么做网站工程公司网站建设
  • 会用框架做网站能找到工作吗seo前线
  • 广二联考题解补全计划:
  • 怎么做代理网站永久域名申请
  • 免费建网站软件系统自建网站平台
  • 佛山网站建设与设计公司网站开发项目对自身的意义
  • 如何做网站域名备案高唐网站建设公司
  • 大连建设局网站地址做网站还 淘宝
  • 建设网站网站设计珠海电子商务网站建设
  • Chapter 8 Contour / Shape Detection
  • 【左程云算法笔记016】双端队列-双链表和固定数组实现 - 教程
  • 安庆网站建设哪家好企业文化墙素材图片
  • 婚恋网站排名前10专业建设外贸网站制作