Skip to content

Commit

Permalink
melhorias de telas e rotas
Browse files Browse the repository at this point in the history
  • Loading branch information
Algusto-RC committed Nov 23, 2023
1 parent ecf5c3f commit a8c9eae
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 15 deletions.
8 changes: 6 additions & 2 deletions frontend/src/components/Footer/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import React from "react";
import * as C from "./styles";
import { Box, Center, Text } from '@chakra-ui/react';

const Footer = () => {
return (
<></>
<Box as="footer" py="8" bg="gray.800" color="white" backgroundColor={'#243A69'}>
<Center padding={'1vh'} justify="space-between" >
<Text fontSize="sm" >Copyright © 2023 Centro de Ensino Médio de Taguatinga Norte. Todos os direitos reservados.</Text>
</Center>
</Box>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from "@chakra-ui/react"
;

const ElectivesList = () => {
const ExclusionEletivas = () => {
const [eletivas, setEletivas] = useState([]);
const [eletivasSelecionadas, setEletivasSelecionadas] = useState([]);

Expand Down Expand Up @@ -109,4 +109,4 @@ const ElectivesList = () => {
);
};

export default ElectivesList;
export default ExclusionEletivas;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from "@chakra-ui/react"
;

const TrilhasList = () => {
const ExclusionTrilhas = () => {
const [trilhas, setTrilhas] = useState([]);
const [trilhasSelecionadas, setTrilhasSelecionadas] = useState([]);

Expand Down Expand Up @@ -114,4 +114,4 @@ const TrilhasList = () => {
);
};

export default TrilhasList;
export default ExclusionTrilhas;
File renamed without changes.
23 changes: 19 additions & 4 deletions frontend/src/pages/Home/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
import React from "react";
import Header from '../../components/Header/index.js'
import { Container, Flex, Stack, Box, Wrap, WrapItem, Button, Center } from "@chakra-ui/react";
import Header from "../../components/Header/index.js";
import Footer from "../../components/Footer/index.js";
import { Link } from "react-router-dom";

const Home = () => {

return (
<Header></Header>
return (
<Flex direction="column" minH="100vh">
<Header />
<Container flex="2">
<Center>
<Link to='/criar-trilhas'>Vasco</Link>
<Link to='/criar-eletivas'>Vasco</Link>
</Center>
<Center>
<Link to='/trilhas'>Vasco</Link>
<Link to='/eletivas'>Vasco</Link>
</Center>
</Container>
<Footer />
</Flex>
);
};

Expand Down
10 changes: 6 additions & 4 deletions frontend/src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import useAuth from "../hooks/useAuth";
import Home from "../pages/Home";
import Signin from "../pages/Signin";
import Signup from "../pages/Signup";
import TrilhasList from "../pages/PathExclusion";
import ElectivesList from "../pages/ElectivesExclusion"
import TrilhasList from "../pages/ExclusionTrilhas";
import ElectivesList from "../pages/ExclusionEletivas"
import CreateEletivas from "../pages/CreateEletivas";
import CreateTrilhas from "../pages/CreateTrilhas";
import ExclusionTrilhas from "../pages/ExclusionTrilhas";
import ExclusionEletivas from "../pages/ExclusionEletivas";

const Private = ({ Item }) => {
const { signed } = useAuth();
Expand All @@ -24,8 +26,8 @@ const RoutesApp = () => {
<Route path="/" element={<Signin />} />
<Route exact path="/signup" element={<Signup />} />
<Route path="*" element={<Signin />} />
<Route path="/trilhas" element={<TrilhasList />} />
<Route path="/eletivas" element={<ElectivesList />} />
<Route path="/eletivas" element={<ExclusionEletivas />} />
<Route path="/trilhas" element={<ExclusionTrilhas />} />
<Route exact path="/criar-eletiva" element={<CreateEletivas />} />
<Route exact path="/criar-trilha" element={<CreateTrilhas />} />
</Routes>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/styles/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const GlobalStyle = createGlobalStyle`
margin: 0;
padding: 0;
box-sizing: border-box;
//border: 1px solid hotpink;
//border: 1px solid hotpink;
}
body {
Expand Down

0 comments on commit a8c9eae

Please sign in to comment.