Skip to content

Commit

Permalink
feat: add showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm committed Dec 1, 2023
1 parent 56db4e7 commit 92a30e1
Show file tree
Hide file tree
Showing 15 changed files with 170 additions and 4 deletions.
2 changes: 1 addition & 1 deletion site/components/home/Banner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Banner(props) {
</p>
<div className="button-wrapper">
<Link href="/docs/getting-started">
<Button style={{ margin: "0 16px" }} type="primary" ghost>
<Button size="large" className="mr-4" type="primary" ghost>
立即免费体验
</Button>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion site/components/home/Page1.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class Page1 extends React.Component {
</Parallax>
)}
<h2>
为什么选择 <span>Pushy</span>
为什么选择 <span>Pushy</span>
</h2>
<div className="title-line-wrapper page1-line">
<div className="title-line" />
Expand Down
64 changes: 64 additions & 0 deletions site/components/home/Showcase.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import { Button } from "antd";
import Link from "next/link";

// import BannerSVGAnim from './BannerSVGAnim';
// import logo from "../../public/images/logo.svg";
// import hero from "../../public/images/home_hero.svg";
import Image from "next/image";
import wyyx from "../../public/images/showcase/wyyx.svg";
import lyl from "../../public/images/showcase/lyl.svg";
import hzsfdx from "../../public/images/showcase/hzsfdx.svg";
import jljr from "../../public/images/showcase/jljr.svg";
import pabdc from "../../public/images/showcase/pabdc.svg";
import yckj from "../../public/images/showcase/yckj.svg";
import najj from "../../public/images/showcase/najj.svg";
import rjwl from "../../public/images/showcase/rjwl.svg";
import htxx from "../../public/images/showcase/htxx.svg";
import tjgj from "../../public/images/showcase/tjgj.svg";

function Showcase({ isMobile }: { isMobile: boolean }) {
return (
<div className="max-w-[1250px] mx-auto home-page !mb-32">
<h2>
他们选择了 <span>Pushy</span>
</h2>
<div className="title-line-wrapper page1-line !mb-10">
<div className="title-line" />
</div>
<div className="grid grid-cols-2 xl:grid-cols-5 gap-y-5">
<div className="h-20 flex justify-center items-center">
<Image src={wyyx} alt="网易游戏" height={60} />
</div>
<div className="h-20 flex justify-center items-center">
<Image src={lyl} alt="蓝月亮" height={50} />
</div>
<div className="h-20 flex justify-center items-center">
<Image src={hzsfdx} alt="华中师范大学" height={75} />
</div>
<div className="h-20 flex justify-center items-center">
<Image src={jljr} alt="娇兰佳人" height={70} />
</div>
<div className="h-20 flex justify-center items-center">
<Image src={pabdc} alt="平安不动产" height={60} />
</div>
<div className="h-20 flex justify-center items-center">
<Image src={yckj} alt="友车科技" height={55} />
</div>
<div className="h-20 flex justify-center items-center">
<Image src={najj} alt="诺安基金" height={70} />
</div>
<div className="h-20 flex justify-center items-center">
<Image src={rjwl} alt="锐捷网络" height={35} />
</div>
<div className="h-20 flex justify-center items-center">
<Image src={htxx} alt="航天信息" height={42} />
</div>
<div className="h-20 flex justify-center items-center">
<Image src={tjgj} alt="天津公交" height={48} />
</div>
</div>
</div>
);
}

export default Showcase;
4 changes: 2 additions & 2 deletions site/components/home/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
position: relative;
width: 100%;
max-width: 1500px;
height: 526px;
height: 480px;
margin: auto;
.banner-title-wrapper {
position: absolute;
Expand Down Expand Up @@ -53,7 +53,7 @@
.button-wrapper {
display: flex;
align-items: center;
margin-top: 64px;
margin-top: 24px;
line-height: 40px;
.github-btn {
display: inline-block;
Expand Down
2 changes: 2 additions & 0 deletions site/components/home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import Banner from "./Banner";
import Page1 from "./Page1";
import Page2 from "./Page2";
import Showcase from "./Showcase";

function Home(props: any) {
return (
<div className="home-wrapper">
<Banner {...props} />
<Showcase {...props} />
<Page1 {...props} />
<Page2 {...props} />
</div>
Expand Down
9 changes: 9 additions & 0 deletions site/public/images/showcase/htxx.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions site/public/images/showcase/hzsfdx.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions site/public/images/showcase/jljr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions site/public/images/showcase/lyl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions site/public/images/showcase/najj.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions site/public/images/showcase/pabdc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions site/public/images/showcase/rjwl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions site/public/images/showcase/tjgj.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions site/public/images/showcase/wyyx.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 92a30e1

Please sign in to comment.