11import { FC , useContext , useEffect , useRef } from "react" ;
22import styles from "./styles.module.scss" ;
33import { Col , Row } from '@douyinfe/semi-ui' ;
4- import Image from "next/image" ;
54import cName from "classnames" ;
6- import bannerIcon from "@/public/banner.svg" ;
7- import IoTIcon from "@/public/iot.svg" ;
8- import logoText from "@/public/logo-text.svg" ;
95import { ThemeContext } from "@/stores/theme" ;
106
117export interface IBannerProps { }
128
139const Banner : FC < IBannerProps > = ( { } ) => {
1410 const mainRef = useRef < HTMLDivElement > ( null ) ;
1511 const { theme} = useContext ( ThemeContext ) ;
16-
1712 useEffect ( ( ) => {
1813 mainRef . current ?. classList . remove ( styles . withAnimation ) ;
1914 window . requestAnimationFrame ( ( ) => {
@@ -23,12 +18,10 @@ const Banner: FC<IBannerProps> = ({}) => {
2318 return (
2419 < div className = { cName ( [ styles . banner , styles . withAnimation ] ) } ref = { mainRef } >
2520 < Row type = "flex" align = "middle" >
26- < Col xs = { 24 } sm = { 24 } md = { 24 } lg = { 14 } xl = { 14 } >
21+ < Col xs = { 24 } sm = { 24 } md = { 24 } lg = { 8 } xl = { 8 } >
2722 < div className = { styles . container } >
28- < div className = { styles . subTitle } > < Image src = { IoTIcon } alt = "" width = { 30 } height = { 30 } /> Internet of Things</ div >
29- < div className = { styles . title } > < Image src = { logoText } alt = "" width = { 260 } height = { 60 } /> </ div >
30- < div className = { styles . label } > 基于.Net 6.0、C# 的开源IoT平台</ div >
31- < div className = { styles . description } > 设备管理与数据收集、处理、可视化的解决方案</ div >
23+ < div className = { styles . title } > 连接物理设备与数字世界</ div >
24+ < div className = { styles . description } > 基于.Net 6.0 使用C#开发的数据采集、数据清洗、数据可视化与设备资产管理的开源物联网(IoT)基础服务平台。</ div >
3225 < div className = { styles . button } onClick = { ( ) : void => {
3326 window . open (
3427 "https://docs.iotsharp.net/" ,
@@ -39,8 +32,11 @@ const Banner: FC<IBannerProps> = ({}) => {
3932 </ div >
4033 </ div >
4134 </ Col >
42- < Col xs = { 24 } sm = { 24 } md = { 24 } lg = { 10 } xl = { 10 } >
43- < Image src = { bannerIcon } alt = "" width = { 400 } height = { 400 } className = { styles . icon } />
35+ < Col xs = { 24 } sm = { 24 } md = { 24 } lg = { 14 } xl = { 14 } offset = { 2 } >
36+ < div className = { styles . bannerImage } >
37+ < div className = { styles . background } />
38+ < div className = { styles . icon } />
39+ </ div >
4440 </ Col >
4541 </ Row >
4642 </ div >
0 commit comments