Skip to content
Snippets Groups Projects
Funcionalities.js 3.88 KiB
Newer Older
/*Copyright (C) 2019 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana

This file is part of Plataforma Integrada MEC.

Plataforma Integrada MEC is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Plataforma Integrada MEC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Plataforma Integrada MEC.  If not, see <http://www.gnu.org/licenses/>.*/

lfr20's avatar
lfr20 committed
import React, { useContext } from 'react';
import { Row, Col, Container } from 'react-grid-system';
import { acessar } from "ImportImages.js";
import { baixar } from "ImportImages.js";
import { compartilhar } from "ImportImages.js";
import { relatar } from "ImportImages.js";
import { seguir } from "ImportImages.js";
import { guardar } from "ImportImages.js";
lfr20's avatar
lfr20 committed
import { Store } from '../Store';
smr17's avatar
smr17 committed

lfr20's avatar
lfr20 committed
const imgRow = {
smr17's avatar
smr17 committed
  textAlign: "center",
  padding: "1%",
  fontFamily: "Roboto, sans-serif"
};

lfr20's avatar
lfr20 committed
const title = {
smr17's avatar
smr17 committed
  display: "block",
  fontSize: "1.1em",
  fontWeight: "Bold",
  fontFamily: "Roboto, sans-serif",
lfr20's avatar
lfr20 committed
  textAlign: "center"
smr17's avatar
smr17 committed
};
lfr20's avatar
lfr20 committed
const caption = {
smr17's avatar
smr17 committed
  fontSize: "1.07em",
  fontWeight: "lighter",
};
lfr20's avatar
lfr20 committed

export default function Funcionalities() {
  const { state } = useContext(Store)

  return (
    <div className={`${state.contrast}BackColor`}>
      <Container style={{ textAlign: "center", paddingTop: "40px", paddingBottom: "40px", color: state.contrast === "" ? "#666" : "white" }}>
        <h2 style={{ margin: 0, paddingBottom: 40 }}>Aqui na Plataforma você pode:</h2>
smr17's avatar
smr17 committed
        <Row style={imgRow}>
          <Col sm={4} md={4}>
lfr20's avatar
lfr20 committed
            <img src={compartilhar} height="150px" alt="compartilhar recursos" />
smr17's avatar
smr17 committed
            <span>
              <span style={title}>
                Compartilhar
              </span>
              <span style={caption}>
lfr20's avatar
lfr20 committed
                com os colegas
smr17's avatar
smr17 committed
              </span>
            </span>
          </Col>
          <Col sm={4} md={4}>
lfr20's avatar
lfr20 committed
            <img src={relatar} height="150px" alt="relatar experiências" />
smr17's avatar
smr17 committed
            <span>
              <span style={title}>
                Relatar experiências,
              </span>
              <span>
lfr20's avatar
lfr20 committed
                curtir e avaliar
smr17's avatar
smr17 committed
              </span>
            </span>
          </Col>
          <Col sm={4} md={4}>
lfr20's avatar
lfr20 committed
            <img src={guardar} height="150px" alt="guardar recursos" />
smr17's avatar
smr17 committed
            <span>
              <span style={title}>
                Guardar recursos
              </span>
              <span>
lfr20's avatar
lfr20 committed
                em coleções
smr17's avatar
smr17 committed
              </span>
            </span>
          </Col>

          <Col sm={4} md={4}>
lfr20's avatar
lfr20 committed
            <img src={seguir} height="150px" alt="seguir usuários" />
smr17's avatar
smr17 committed
            <span>
              <span style={title}>
                Seguir usuários
              </span>
              <span>
lfr20's avatar
lfr20 committed
                e suas coleções
smr17's avatar
smr17 committed
              </span>
            </span>
          </Col>
          <Col sm={4} md={4}>
lfr20's avatar
lfr20 committed
            <img src={baixar} height="150px" alt="baixar recursos" />
smr17's avatar
smr17 committed
            <span>
              <span style={title}>
                Baixar
              </span>
              <span>
lfr20's avatar
lfr20 committed
                recursos
smr17's avatar
smr17 committed
              </span>
            </span>
          </Col>
          <Col sm={4} md={4}>
lfr20's avatar
lfr20 committed
            <img src={acessar} height="150px" alt="acessar materiais" />
smr17's avatar
smr17 committed
            <span>
              <span style={title}>
                Acessar materiais
              </span>
              <span>
lfr20's avatar
lfr20 committed
                de formação
smr17's avatar
smr17 committed
              </span>
            </span>
          </Col>
        </Row>
      </Container>
lfr20's avatar
lfr20 committed
    </div>
  )
smr17's avatar
smr17 committed
}