Skip to content

Commit af88b8e

Browse files
authored
Merge pull request #19 from Jongyeol91/#18
[매장정보] #18 매장정보 페이지 초기 레이아웃
2 parents c9bc4e3 + c5addee commit af88b8e

File tree

5 files changed

+90
-15
lines changed

5 files changed

+90
-15
lines changed

package-lock.json

+34-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"dependencies": {
7+
"@ant-design/icons": "^4.3.0",
78
"antd": "^4.2.5",
89
"axios": "^0.19.2",
910
"next": "^9.4.4",

pages/location/index.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import React, { useState } from 'react';
2+
import { Row, Col } from 'antd';
3+
import LocationTap from './tab';
4+
import MapContent from './location';
5+
6+
const Location = () => {
7+
return (
8+
<>
9+
<Row>
10+
<div style={{ border: '1px solid black' }}>
11+
> 매장정보
12+
</div>
13+
</Row>
14+
<Row>
15+
<Col span={8}>
16+
<LocationTap />
17+
<div style={{ border: '1px solid black', height: '600px' }}>임시 정보</div>
18+
</Col>
19+
<Col span={10}>
20+
<MapContent />
21+
</Col>
22+
</Row>
23+
</>
24+
);
25+
};
26+
27+
export default Location;

pages/location.js pages/location/location.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class MapContent extends Component {
4545
}
4646

4747
render() {
48-
return <MapContents id="Mymap" style={{ width: '90vh', height: '50vh' }} />;
48+
return <MapContents id="Mymap" style={{ width: '60vh', height: '50vh' }} />;
4949
}
5050
}
5151
const MapContents = styled.div`

pages/location/tab.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import React, { useState } from 'react';
2+
import { Menu } from 'antd';
3+
import { MailOutlined, AppstoreOutlined, SettingOutlined } from '@ant-design/icons';
4+
5+
const { SubMenu } = Menu;
6+
7+
const LocationTap = () => {
8+
const [key, setKey] = useState('');
9+
10+
const handleClick = (e) => {
11+
console.log('click ', e);
12+
setKey(e.key);
13+
};
14+
15+
return (
16+
<Menu onClick={handleClick} selectedKeys={[key]} mode="horizontal">
17+
<Menu.Item key="searchLoc" icon={<MailOutlined />}>
18+
지역검색
19+
</Menu.Item>
20+
<Menu.Item key="storeInfo" icon={<MailOutlined />}>
21+
매장정보
22+
</Menu.Item>
23+
</Menu>
24+
);
25+
};
26+
27+
export default LocationTap;

0 commit comments

Comments
 (0)