Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import publicLogo from "@/public/public_logo.png";
import styles from "./styles.module.scss";
import cName from "classnames";
import {isEmpty} from "lodash";
import logoText from "@/public/logo-text.svg";
import QRCode from "@/public/code.jpg";
import logoIcon from "@/public/logo-icon.svg";
interface ILink {
label: string;
link?: string;
Expand All @@ -26,7 +28,7 @@ const Footer: FC<IFooterProps> = ({}) => {
const data = {
"title": "IoTSharp",
"qr_code": "",
"copy_right": "Copyright © 2023 The IoTSharp Authors",
"copy_right": "© 2018 - 2023 The IoTSharp Authors. All rights reserved.",
"site_number": "",
"public_number": "冀ICP备18039206号",
"qr_code_image": {
Expand Down Expand Up @@ -120,7 +122,10 @@ const Footer: FC<IFooterProps> = ({}) => {
return (
<div className={styles.footer}>
<div className={styles.topArea}>
<h1 className={styles.footerTitle}>{title}</h1>
<h1 className={styles.footerTitle}>
<Image src={logoIcon} alt="" width={35} height={35}/>
<Image src={logoText} alt="" width={135} height={40}/>
</h1>
<div className={styles.linkListArea}>
{footerData?.linkList?.map((item, index) => {
return (
Expand Down
9 changes: 5 additions & 4 deletions components/footer/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
flex-wrap: wrap;

.footerTitle {
font-weight: 500;
font-size: 2.25rem;
line-height: 2.25rem;
color: #ffffff;
margin: 0;
display: flex;

img:nth-of-type(1) {
margin-right: 10px;
}
}

.linkListArea {
Expand Down
10 changes: 5 additions & 5 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export default function Document() {
<Html>
<Head/>
<body>
<Main/>
<NextScript/>
<Script id="theme-script" strategy="beforeInteractive">
{`const item = localStorage.getItem('theme') || 'light';
<Main/>
<NextScript/>
<Script id="theme-script" strategy="beforeInteractive">
{`const item = localStorage.getItem('theme') || 'light';
localStorage.setItem('theme', item);
document.getElementsByTagName('html')[0].dataset.theme = item;`}
</Script>
</Script>
</body>
</Html>
);
Expand Down
5 changes: 3 additions & 2 deletions pages/components/banner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {Col, Row} from '@douyinfe/semi-ui';
import cName from "classnames";
import {ThemeContext} from "@/stores/theme";

export interface IBannerProps {}
export interface IBannerProps {
}

const Banner: FC<IBannerProps> = ({}) => {
const mainRef = useRef<HTMLDivElement>(null);
Expand Down Expand Up @@ -34,7 +35,7 @@ const Banner: FC<IBannerProps> = ({}) => {
</Col>
<Col xs={24} sm={24} md={24} lg={14} xl={14} offset={2}>
<div className={styles.bannerImage}>
<div className={styles.background} />
<div className={styles.background}/>
<div className={styles.icon}/>
</div>
</Col>
Expand Down
9 changes: 8 additions & 1 deletion pages/components/banner/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,23 @@
padding: 10rem 8rem;
overflow: hidden;
border-bottom: 1px solid var(--semi-color-border);

:global {
.semi-row-flex {
height: 100%;
}
}

.icon {
width: 920px;
position: relative;
border-radius: 8px;
height: 32.5rem!important;
height: 32.5rem !important;
border-bottom: 1px solid var(--semi-color-border);
background-image: var(--banner-icon);
background-size: 100% 100%;
}

.container {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -179,12 +182,14 @@
margin-top: 4rem;
}
}

.bannerImage {
position: relative;
width: 100%;
padding-top: 20px;
padding-left: 50px;
}

.background {
position: absolute;
width: 640px;
Expand All @@ -194,6 +199,7 @@
-webkit-filter: blur(120px);
filter: blur(120px);
opacity: .6;

&:before {
content: "";
position: absolute;
Expand All @@ -203,6 +209,7 @@
top: 132px;
background-color: rgb(var(--semi-purple-5));
}

&:after {
content: "";
position: absolute;
Expand Down
231 changes: 62 additions & 169 deletions pages/components/contributors/index.tsx
Original file line number Diff line number Diff line change
@@ -1,187 +1,80 @@
import {FC} from "react";
import {Row, Col, Descriptions, Card, Avatar, Space, Button, Typography} from '@douyinfe/semi-ui';
import {Avatar, Card, Col, Descriptions, Row, Space} from '@douyinfe/semi-ui';
import styles from "./styles.module.scss";

export interface IContributorsProps {
}

const Contributors: FC<IContributorsProps> = ({}) => {
const { Meta } = Card;
const { Text } = Typography;
const {Meta} = Card;
const Comments = [{
avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg',
name: 'Mengzhou',
content: '接入简单易上手;API 丰富全面。'
}, {
avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg',
name: 'Mengzhou',
content: '有很多公司内的其他业务使用,有比较多的样例参考,参考其他业务平台的设计方案,统一平台的交付标准。',
}, {
avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg',
name: 'Mengzhou',
content: '接入简单易上手;API 丰富全面。'
}, {
avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg',
name: 'Mengzhou',
content: '接入简单易上手;API 丰富全面。'
}, {
avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg',
name: 'Mengzhou',
content: 'API 丰富全面。',
style: { marginTop: '40px'},
}, {
avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg',
name: 'Mengzhou',
content: '接入简单易上手;API 丰富全面。'
}]
return (
<div className={styles.contributorsContainer}>
<p className={styles.title}>与用户共同成长</p>
<p className={styles.subTitle}>IoTSharp 重视我们的用户,加入并助力我们不断完善</p>
<Descriptions align="center" size="large" row>
<Descriptions.Item itemKey="Stars">795+</Descriptions.Item>
<Descriptions.Item itemKey="Fork">1100+</Descriptions.Item>
<Descriptions.Item itemKey="Download">1000+</Descriptions.Item>
<Descriptions.Item itemKey="Contributors">30+</Descriptions.Item>
<Descriptions.Item itemKey="Stars">1800++</Descriptions.Item>
<Descriptions.Item itemKey="Fork">600+</Descriptions.Item>
<Descriptions.Item itemKey="Download">3400+</Descriptions.Item>
<Descriptions.Item itemKey="Contributors">15+</Descriptions.Item>
</Descriptions>
<div className={styles.imageBox}>
<Row gutter={32} type="flex" align="top">
<Col span={8}>
<Card
footerLine={false}
headerLine={false}
title={
<Meta
title=""
description=""
avatar={
<Avatar
alt='Card meta img'
size="default"
src='https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg'
/>
}
/>
}
footerStyle={{ display: 'flex', justifyContent: 'flex-end' }}
footer={
<Space>
<div>@Mengzhou</div>
</Space>
}
>
接入简单易上手;API 丰富全面。
</Card>
</Col>
<Col span={8}>
<Card
footerLine={false}
headerLine={false}
title={
<Meta
title=""
description=""
avatar={
<Avatar
alt='Card meta img'
size="default"
src='https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg'
/>
}
/>
}
footerStyle={{ display: 'flex', justifyContent: 'flex-end' }}
footer={
<Space>
<div>@Mengzhou</div>
</Space>
}
>
有很多公司内的其他业务使用,有比较多的样例参考,参考其他业务平台的设计方案,统一平台的交付标准。
</Card>
</Col>
<Col span={8}>
<Card
footerLine={false}
headerLine={false}
title={
<Meta
title=""
description=""
avatar={
<Avatar
alt='Card meta img'
size="default"
src='https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg'
/>
}
/>
}
footerStyle={{ display: 'flex', justifyContent: 'flex-end' }}
footer={
<Space>
<div>@Mengzhou</div>
</Space>
}
>
接入简单易上手;API 丰富全面。
</Card>
</Col>
<Col span={8}>
<Card
footerLine={false}
headerLine={false}
title={
<Meta
title=""
description=""
avatar={
<Avatar
alt='Card meta img'
size="default"
src='https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg'
/>
}
/>
}
footerStyle={{ display: 'flex', justifyContent: 'flex-end' }}
footer={
<Space>
<div>@Mengzhou</div>
</Space>
}
>
接入简单易上手;API 丰富全面。
</Card>
</Col>
<Col span={8} style={{marginTop: '40px'}}>
<Card
footerLine={false}
headerLine={false}
title={
<Meta
title=""
description=""
avatar={
<Avatar
alt='Card meta img'
size="default"
src='https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg'
/>
}
/>
}
footerStyle={{ display: 'flex', justifyContent: 'flex-end' }}
footer={
<Space>
<div>@Mengzhou</div>
</Space>
}
>
接入简单易上手。
</Card>
</Col>
<Col span={8}>
<Card
footerLine={false}
headerLine={false}
title={
<Meta
title=""
description=""
avatar={
<Avatar
alt='Card meta img'
size="default"
src='https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg'
/>
}
/>
}
footerStyle={{ display: 'flex', justifyContent: 'flex-end' }}
footer={
<Space>
<div>@Mengzhou</div>
</Space>
}
>
接入简单易上手;API 丰富全面。
</Card>
</Col>
{
Comments?.map((comment, index) => {
return (
<Col span={8} style={{...comment?.style}}>
<Card
footerLine={false}
headerLine={false}
title={
<Meta
avatar={
<Avatar
alt=""
size="default"
src={comment?.avatar}
/>
}
/>
}
footerStyle={{display: 'flex', justifyContent: 'flex-end'}}
footer={
<Space>
<div>{comment?.name}</div>
</Space>
}
>
{comment?.content}
</Card>
</Col>
)
})
</Row>
</div>
</div>
Expand Down
Loading