feat: init profile page layout
This commit is contained in:
parent
c8faca652d
commit
ed278b61fc
|
@ -1,24 +1,48 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import {PageHeader} from "antd";
|
import {Button, Card, Col, Input, Row} from "antd";
|
||||||
|
import {BreadcumbComponent} from "../../component/BreadcumbComponent";
|
||||||
|
import {FilterOutlined, PlusSquareOutlined} from "@ant-design/icons";
|
||||||
|
import {LINKS} from "../../routes/app";
|
||||||
|
|
||||||
|
const {Search} = Input;
|
||||||
|
|
||||||
export const Profile = () => {
|
export const Profile = () => {
|
||||||
|
const routeData = [
|
||||||
|
{
|
||||||
|
route: LINKS.HOME,
|
||||||
|
name: "Home",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
route: LINKS.PROFILE,
|
||||||
|
name: <span style={{fontWeight: 'bold'}}>Profile</span>,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={["ppob-container"].join(" ")}>
|
<div className={["ppob-container"].join(" ")}>
|
||||||
<PageHeader
|
<BreadcumbComponent data={routeData}/>
|
||||||
style={{
|
<Card>
|
||||||
padding: 0,
|
<Row style={{marginBottom: 20}}>
|
||||||
margin: 0,
|
<Col span={12}>
|
||||||
height: 40,
|
<Button>
|
||||||
backgroundColor: "transparent",
|
<FilterOutlined/>
|
||||||
}}
|
Filter
|
||||||
title={"Profile"}
|
</Button>
|
||||||
>
|
</Col>
|
||||||
</PageHeader>
|
<Col span={12} style={{textAlign: "right"}}>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aut recusandae velit! Consequatur
|
<Search
|
||||||
corporis,
|
placeholder="input search text"
|
||||||
eum fuga, harum incidunt laboriosam minus necessitatibus neque non nostrum pariatur tempore. Dignissimos
|
style={{width: 200, marginRight: 10}}
|
||||||
impedit
|
/>
|
||||||
rem tempora!
|
<Button onClick={() => {
|
||||||
|
}}>
|
||||||
|
<PlusSquareOutlined/> New
|
||||||
|
</Button>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
<div></div>
|
||||||
|
</Card>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,6 +4,7 @@ import {About} from "../pages/About/About";
|
||||||
import {Membership} from "../pages/Membership/Membership";
|
import {Membership} from "../pages/Membership/Membership";
|
||||||
import {Product} from "../pages/Product/Product";
|
import {Product} from "../pages/Product/Product";
|
||||||
import {Transaction} from "../pages/Transaction/Transaction";
|
import {Transaction} from "../pages/Transaction/Transaction";
|
||||||
|
import {Profile} from "../pages/Profile/Profile";
|
||||||
|
|
||||||
export const LINKS = {
|
export const LINKS = {
|
||||||
HOME: "/app/home",
|
HOME: "/app/home",
|
||||||
|
@ -32,7 +33,7 @@ export const AppRoute = () => {
|
||||||
<About/>
|
<About/>
|
||||||
</Route>
|
</Route>
|
||||||
<Route path={LINKS.PROFILE}>
|
<Route path={LINKS.PROFILE}>
|
||||||
<About/>
|
<Profile/>
|
||||||
</Route>
|
</Route>
|
||||||
<Route path="/app" exact>
|
<Route path="/app" exact>
|
||||||
<Redirect to={LINKS.HOME}/>
|
<Redirect to={LINKS.HOME}/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user