Header.tsx 1.18 KB
Newer Older
1
2
3
import React from 'react';
import { Link } from 'react-router-dom';
import { Stack, StackItem, CommandBarButton } from '@fluentui/react';
4
5
6
import { RevToggleKey } from '../fluent/Icon';
import { NNILOGO } from '../nav/slideNav/NNItabs';
import { gap15, stackStyle } from '../fluent/ChildrenGap';
7
8
9
10
11
12
13
14
15
16

export const Hearder = (): any => (
    <div className='header'>
        <div className='headerCon'>
            <Stack className='nav' horizontal>
                <StackItem grow={30} styles={{ root: { minWidth: 300, display: 'flex', verticalAlign: 'center' } }}>
                    <span className='desktop-logo'>{NNILOGO}</span>
                    <span className='logoTitle'>Neural Network Intelligence</span>
                </StackItem>
                <StackItem grow={70} className='navOptions'>
17
                    <Stack horizontal horizontalAlign='end' tokens={gap15} styles={stackStyle}>
18
19
20
21
22
23
24
25
26
                        <Link to='/oview' className='experiment'>
                            <CommandBarButton iconProps={RevToggleKey} text='Back to the experiment' />
                        </Link>
                    </Stack>
                </StackItem>
            </Stack>
        </div>
    </div>
);