Skip to content

Commit

Permalink
criando timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
itMatos committed Aug 14, 2024
1 parent 044a90a commit 30e9d3a
Show file tree
Hide file tree
Showing 8 changed files with 214 additions and 23 deletions.
Empty file added . prettierrc
Empty file.
8 changes: 0 additions & 8 deletions .prettierrc.js

This file was deleted.

9 changes: 9 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"semi": true,
"tabWidth": 4,
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all",
"jsxBracketSameLine": true,
"bracketSpacing": true
}
91 changes: 81 additions & 10 deletions components/projects-components/projectsv2/SondasAeroespaciais.jsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,93 @@
import { Button, Typography } from '@mui/material';
import Grid from '@mui/material/Unstable_Grid2';
import React, { useState } from 'react';
import { Button, Paper, Typography } from '@mui/material';
import Grid from '@mui/material/Unstable_Grid2';
import useTranslation from 'next-translate/useTranslation';
import Timeline from '@mui/lab/Timeline';
import TimelineItem, { timelineItemClasses } from '@mui/lab/TimelineItem';
import TimelineSeparator from '@mui/lab/TimelineSeparator';
import TimelineConnector from '@mui/lab/TimelineConnector';
import TimelineContent from '@mui/lab/TimelineContent';
import TimelineDot from '@mui/lab/TimelineDot';

export default function SondasAeroespaciais() {
// precisa colocar a navbar aqui
const { t } = useTranslation();
const projetos = t('projetos:sondasAeroespaciais', {}, { returnObjects: true });
const voltar = t('projetos:voltar', {}, { returnObjects: true });
const garatea1 = projetos.projects.garatea1;

return (
<Grid container sx={{border: 1, borderColor: 'red'}}>
<Grid container sx={{ border: 1, borderColor: 'red' }}>
<Grid sm={12} md={12} p={2}>
<Button size="small" color="primary" href='/projetos'>
Voltar para página de projetos
<Button size="small" color="primary" href="/projetos">
{voltar}
</Button>
</Grid>

<Grid sm={12} md={6} p={2} sx={{border:1}}>
<Typography gutterBottom variant="h2" component="div" >
Sondas aeroespaciais
<Grid sm={12} md={6} p={2} sx={{ border: 1 }}>
<Typography variant="h2" component="div">
{projetos.title}
</Typography>
<Typography variant="h4" component="div">
{projetos.subtitle}
</Typography>
</Grid>

<Grid xs={12} sm={12}>
<Grid xs={12}>
<Timeline
sx={{
[`& .${timelineItemClasses.root}:before`]: {
flex: 0,
padding: 0,
},
}}>
<TimelineItem>
<TimelineSeparator>
<TimelineDot color="success" />
<TimelineConnector />
</TimelineSeparator>

<TimelineContent>
<Grid xs={12} sm={12} md={12}>
<Typography xs={12}>{garatea1.year}</Typography>
<Paper elevation={3} sx={{ padding: 2 }} sm={6} md={12}>
<Typography variant="h6" component="h1">
{garatea1.title}
</Typography>
<Typography variant="h6" component="h2">
Primeira sonda
</Typography>
</Paper>
</Grid>
</TimelineContent>
</TimelineItem>

<TimelineItem>
<TimelineSeparator>
<TimelineDot color="success" />
<TimelineConnector />
</TimelineSeparator>
<TimelineContent>2019</TimelineContent>
</TimelineItem>

<TimelineItem>
<TimelineSeparator>
<TimelineDot color="success" />
<TimelineConnector />
</TimelineSeparator>
<TimelineContent>2017</TimelineContent>
</TimelineItem>

<TimelineItem>
<TimelineSeparator>
<TimelineDot color="success" />
</TimelineSeparator>
<TimelineContent>2016</TimelineContent>
</TimelineItem>
</Timeline>
</Grid>
</Grid>
</Grid>
)
}
);
}
1 change: 1 addition & 0 deletions i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"/kurumim" : ["kurumim"],
"/processo-seletivo": ["processoSeletivo"],
"/projetos" : ["projetos"],
"/projetos/sondas-aeroespaciais": ["projetos"],
"/zenith" : ["oZenith"]
}
}
1 change: 1 addition & 0 deletions locales/pt/projetos.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"picker": ["Sondas aeroespaciais", "CubeSats", "Software", "Hardware", "Educacional"],
"atualmente": "Atualmente",
"voltar": "Voltar para página de projetos",
"sondasAeroespaciais": {
"title": "O que são Sondas Aeroespaciais?",
"subtitle": [
Expand Down
124 changes: 120 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"dependencies": {
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
"@mui/lab": "^5.0.0-alpha.173",
"@mui/material": "^5.16.6",
"hamburger-react": "^2.4.0",
"next": "^12.1.0",
Expand All @@ -73,6 +74,6 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"prettier": "^2.3.0"
"prettier": "^2.8.8"
}
}

0 comments on commit 30e9d3a

Please sign in to comment.