You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
862 B
37 lines
862 B
1 year ago
|
import { Anchor, Col, Row } from 'antd';
|
||
|
import React from 'react';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Row>
|
||
|
<Col span={16}>
|
||
|
<div id="part-1" style={{ height: '100vh', background: 'rgba(255,0,0,0.02)' }} />
|
||
|
<div id="part-2" style={{ height: '100vh', background: 'rgba(0,255,0,0.02)' }} />
|
||
|
<div id="part-3" style={{ height: '100vh', background: 'rgba(0,0,255,0.02)' }} />
|
||
|
</Col>
|
||
|
<Col span={8}>
|
||
|
<Anchor
|
||
|
replace
|
||
|
items={[
|
||
|
{
|
||
|
key: 'part-1',
|
||
|
href: '#part-1',
|
||
|
title: 'Part 1',
|
||
|
},
|
||
|
{
|
||
|
key: 'part-2',
|
||
|
href: '#part-2',
|
||
|
title: 'Part 2',
|
||
|
},
|
||
|
{
|
||
|
key: 'part-3',
|
||
|
href: '#part-3',
|
||
|
title: 'Part 3',
|
||
|
},
|
||
|
]}
|
||
|
/>
|
||
|
</Col>
|
||
|
</Row>
|
||
|
);
|
||
|
|
||
|
export default App;
|