Home.js 1.78 KB
Newer Older
1
2
import React, { useState, useEffect } from 'react'
import { Container, Row, Col, Button } from 'react-bootstrap';
Spark's avatar
layout    
Spark committed
3
4
5
6
7
8
9
import MainLayer from '../components/MainLayer';
import TimeNow from './../components/TimeNow';
import '../App.css'
import EueSuggest from '../components/EueSuggest';
import ChartLine from '../components/ChartLine';
import ChartDoughnut from '../components/ChartDoughnut';
import Footer from './../components/Footer';
Spark's avatar
Spark committed
10
11
import { isOauth } from './../utils/Auth';

Spark's avatar
layout    
Spark committed
12
13


Spark's avatar
Spark committed
14
function Home() {
Spark's avatar
layout    
Spark committed
15
16
17
18
19
20
21
22
23
24
    const constyled = {
        display: 'flex',
        justifyContent: 'space-evenly',
        width: '100%',
        position: 'relative'
    }

    const col1sty = {
        display: 'flex',
        justifyContent: 'start',
Spark's avatar
Spark committed
25
        alignItems: 'center'
Spark's avatar
layout    
Spark committed
26
    }
Spark's avatar
Spark committed
27

Spark's avatar
layout    
Spark committed
28
29
30
31
32
33
34
35
    const col2sty = {
        display: 'flex',
        justifyContent: 'center',
        alignItems: 'center',
        flexDirection: 'column',
        padding: '0'
    }

Spark's avatar
Spark committed
36
37


38
39


Spark's avatar
layout    
Spark committed
40
    return (
Spark's avatar
Spark committed
41
42
43
        <Container fluid className='m-auto d-flex justify-content-center position-relative'>
            <Row style={constyled} className='m-auto'>
                <Col xs={12} md={6} className='d-flex justify-content-center' id='stickyy'>
Spark's avatar
layout    
Spark committed
44
45
46
47
                    <Row style={col1sty} className='m-auto'>
                        <MainLayer />
                    </Row>
                </Col>
48

Spark's avatar
layout    
Spark committed
49
                <Col md={6} style={col2sty}>
50

Spark's avatar
layout    
Spark committed
51
                    <Row style={constyled} className='d-flex mb-2 w-100'>
Spark's avatar
Spark committed
52

53
                        {/* <KakaoLogin/> */}
54

Spark's avatar
Spark committed
55
                        {/* <TimeNow /> */}
56
57
58
59
                        <EueSuggest />
                        <ChartLine />
                        <ChartDoughnut />
                        <Footer />
Spark's avatar
layout    
Spark committed
60
61
62
63
64
65
66
67
                    </Row>
                </Col>
            </Row>
        </Container>

    );
}

Spark's avatar
Spark committed
68
export default Home;