Skip to content

Commit

Permalink
Criação da página de fluxogramas
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyLopess committed Nov 28, 2023
1 parent 2052a17 commit 47ad369
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 15 deletions.
2 changes: 2 additions & 0 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Perfil from "./pages/Perfil";
import Materias from "./pages/Materias";
import Grade from "./pages/Grade";
import FluxogramaAero from "./pages/FluxogramaAero"
import Fluxogramas from "./pages/Fluxograma"

function App() {
const { access_token } = useSelector(state => state.auth)
Expand All @@ -33,6 +34,7 @@ function App() {
<Route exact path="fluxogramaSoft" element={<FluxogramaSoft/>} />
<Route exact path="perfil" element={<Perfil/>} />
<Route exact path="Materias" element={<Materias/>} /> <Route exact path="fluxogramaAero" element={<FluxogramaAero/>} />
<Route exact path="Fluxogramas" element={<Fluxogramas/>} />


</Routes>
Expand Down
14 changes: 2 additions & 12 deletions frontend/src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,8 @@ const Navbar = () => {
<Button component={NavLink} to='/contact' style={({ isActive }) => { return { backgroundColor: isActive ? '#0f467e' : '' } }} sx={{ color: 'white', textTransform: 'none' }}>Contato</Button>

<Button component={NavLink} to='/Fluxogramas' style={({ isActive }) => { return { backgroundColor: isActive ? '#0f467e' : '' } }} sx={{ color: 'white', textTransform: 'none' }}>Fluxogramas</Button>
{access_token && (
<Button
component={NavLink}
to='/Materias'
style={({ isActive }) => {
return { backgroundColor: isActive ? '#0f467e' : '' };
}}
sx={{ color: 'white', textTransform: 'none' }}
>
Matérias
</Button>
)}

{access_token && ( <Button component={NavLink} to='/Materias' style={({ isActive }) => { return { backgroundColor: isActive ? '#0f467e' : '' };}} sx={{ color: 'white', textTransform: 'none' }}>Matérias </Button> )}

{access_token ? <Button component={NavLink} to='/dashboard' style={({ isActive }) => { return { backgroundColor: isActive ? '#0f467e' : '' } }} sx={{ color: 'white', textTransform: 'none' }}>Perfil</Button> : <Button component={NavLink} to='/login' style={({ isActive }) => { return { backgroundColor: isActive ? '#0f467e' : '' } }} sx={{ color: 'white', textTransform: 'none' }}>Entrar/Registrar</Button>}

Expand Down
Binary file added frontend/src/images/pic3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions frontend/src/pages/Fluxograma.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import React from "react";
import { Grid, Button } from "@mui/material";
import Pic3 from '../images/pic3.png';
import Navbar from "../components/Navbar";
import { Box } from "@mui/material";
import { Link } from "react-router-dom";

const Home = () => {
return (
<Box>
<Navbar />
<Grid container justifyContent="center">
<Grid item sm={10}>

<h1>Fluxogramas de Cursos</h1>

<br />
<hr />
<p style={{ textAlign: "justify" }}>
Bem-vindo à nossa seção de Fluxogramas de Cursos! Aqui, você encontrará informações detalhadas sobre a estrutura dos cursos da FGA. Os fluxogramas são mapas visuais que destacam a sequência de disciplinas e atividades ao longo do período do curso.
</p>
<p style={{ textAlign: "justify"}}>
Escolha o curso que deseja visualizar:
</p>
<Grid container spacing={2} justifyContent="center">
<Grid item>
<Button component={Link} to="/FluxogramaSoft" variant="contained" color="primary">
Software
</Button>
</Grid>
<Grid item>
<Button component={Link} to="/FluxogramaAero" variant="contained" color="primary">
Aeroespacial
</Button>
</Grid>
<Grid item>
<Button variant="contained" color="primary">
Eletrônica
</Button>
</Grid>
<Grid item>
<Button variant="contained" color="primary">
Energia
</Button>
</Grid>
<Grid item>
<Button variant="contained" color="primary">
Automotiva
</Button>
</Grid>
</Grid>

<img
src={Pic3}
alt="imagem"
style={{ width: "36%", maxWidth: "1000px", margin: "0 auto", display: "block" }}
/>

</Grid>
</Grid>
</Box>
);
};

export default Home;
6 changes: 3 additions & 3 deletions frontend/src/styleheets/FluxogramaSoft.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
.container {
width: 2450px;
height: 1080px;
background: #0b0b0b;
background: #ffffff;
position: relative;
}
.course-card {
width: 210px;
height: 120px;
position: absolute;
background: rgba(30, 30, 30, 0.51);
background: rgb(255, 255, 255);
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(13, 13, 13, 0.5);
box-shadow: 0px 0px 10px rgb(255, 255, 255)
}

.course-info {
Expand Down

0 comments on commit 47ad369

Please sign in to comment.