Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/final-adjustments #27

Merged
merged 5 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
i18n: {
// TODO: add domains (?)
locales: ['en', 'pt-BR'],
defaultLocale: 'en',
},
reactStrictMode: true,
compiler: {
styledComponents: true,
},
}

module.exports = nextConfig
/** @type {import('next').NextConfig} */
const nextConfig = {
i18n: {
// TODO: add domains (?)
locales: ['en', 'pt-BR'],
defaultLocale: 'pt-BR',
},
reactStrictMode: true,
compiler: {
styledComponents: true,
},
}
module.exports = nextConfig
76 changes: 67 additions & 9 deletions public/locales/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ const en = {
{
title: 'Very Small Size League',
competitions: 'LARC | IronCup',
description: `The Very Small Size Soccer (VSSS) competition
description: `The Very Small Size Soccer (VSS) competition
is a multifaceted challenge that necessitates excellence in
key domains within RoboCIn. This includes advanced computer
key domains within RobôCIn. This includes advanced computer
vision techniques for extracting critical game-related
information, the deployment of artificial intelligence
algorithms to orchestrate precise movements for scoring
Expand Down Expand Up @@ -91,18 +91,76 @@ const en = {
{
title: 'Drone',
competitions: 'LARC',
description: 'Description of Drone',
description: `RobôCIn's drone category was designed for the
development of autonomous flying robots and related technologies.
To validate our work, we seek to participate in competitions and
symposiums, mainly LARC and RoboCup Brazil. In it we participated in the
Flying Robots Trial League. In this competition there are four
challenges that the robot must be able to perform autonomously,
generally involving reading and detecting objects, searching and
moving between platforms and transporting loads.`,
table_header: 'Drone - Results',
},
],
resultsTables: {
vssl: {
label: 'VSSL - Results',
th: ['Year', 'LARC', 'IRONCup'],
trs: [
['2021', '1º 3v3 RL', '1º'],
['2020', '4º DET, 5º RL', '3º RL, 5º DET'],
['2019', '4º DET, 5º RL', '3º RL'],
['2018', '3º', '3º'],
['2017', '5º', 'N/A'],
['2016', '16º', 'N/A'],
],
},
ssl: {
label: 'SSL - Results',
th: ['Year', 'LARC', 'Robocup'],
trs: [
[
'2023',
'N/A',
'1st Div B, 1st Ball Placement Technical Challenge, 5th Chip Pass Challenge',
],
[
'2022',
'1st',
'1st Div B, 1st Ball Placement Technical Challenge, 2nd Vision Blackout, 3rd Dribbling Challenge',
],
[
'2021',
'1st',
'3rd Div A/B, 1st Ball Placement Technical Challenge, 5th Hardware Challenge',
],
['2020', '1st', 'Postponed'],
['2019', '5th', '3rd/4th Div B'],
['2018', '5th', 'N/A'],
],
},
simulation: {
label: '2D Simulation - Results',
th: ['Year', 'RoboCup', 'LARC', 'IRONCup'],
trs: [
['2023', '6h', 'N/A', '2nd'],
['2022', '10th', '1st', '3rd'],
['2021', '7th', '1st', '3rd'],
['2020', 'Postponed', '3rd', '6th'],
['2019', '9th', '2nd', 'N/A'],
['2018', 'N/A', '4th', '6th'],
],
},
},
},
content: 'This content is in English',
home: {
banner: {
headline: {
title: `"Brazilian team wins second title in the world's
largest robotics competition"`,
complement: `Read more at:`,
title: `excellence in Research and Development
in Robotics and Artificial Intelligence.`,
complement: `Our Artifical Intelligence, Computer Vision
and engineering are world-wide champions.`,
},
heading: 'Award-winning AI and Robotics Research',
achievements: [
Expand Down Expand Up @@ -200,15 +258,15 @@ const en = {
},
publications_list: {
header: {
title: 'Our Publications',
description: 'Check out out publications below',
title: 'Our Papers',
description: 'Check out out description papers below',
},
default_filter_options: {
all: 'All',
recent: 'Most recent',
},
publication_card: {
url_label: 'Article',
url_label: 'Paper',
},
filter_results: {
fallback: 'Oops! No publications were found for this year.',
Expand Down
90 changes: 80 additions & 10 deletions public/locales/pt-BR/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ptBR = {
{
title: 'Very Small Size League',
competitions: 'LARC | IronCup',
description: `Very Small Size Soccer (VSSS) é uma competição
description: `Very Small Size Soccer (VSS) é uma competição
que requer desenvolvimento nas principais áreas do RobôCIn,
visão computacional para detectar informações sobre a situação
do jogo; inteligência artificial para planejar todos os
Expand Down Expand Up @@ -89,18 +89,88 @@ const ptBR = {
{
title: 'Drone',
competitions: 'LARC',
description: `Descrição de participação na categoria "drone".`,
description: `A categoria de drones do RobôCIn foi projetada para o
desenvolvimento de robôs voadores autônomos e tecnologias relacionadas.
Para validar nosso trabalho, buscamos participar de competições e simpósios,
principalmente a LARC e a Robocup Brasil. Nela, participamos da Flying Robots Trial
League. Nessa competição, existem quatro desafios que o robô deve
ser capaz de realizar autonomamente, geralmente envolvendo a leitura e
detecção de objetos, a busca e movimentação entre plataformas e o transporte
de cargas.`,
table_header: 'Drone - Resultados',
},
],
resultsTables: {
vssl: {
label: 'VSSL - Resultados',
th: ['Ano', 'LARC', 'IRONCup'],
trs: [
['2021', '1º 3v3 RL', '1º'],
['2020', '4º DET, 5º RL', '3º RL, 5º DET'],
['2019', '4º DET, 5º RL', '3º RL'],
['2018', '3º', '3º'],
['2017', '5º', 'N/A'],
['2016', '16º', 'N/A'],
],
},
ssl: {
label: 'SSL - Resultados',
th: ['Ano', 'LARC', 'Robocup'],
trs: [
[
'2023',
'N/A',
'1º Divisão B, 1º Ball Placement Technical Challenge, 5º Desafio de Chip Pass',
],
[
'2022',
'1º',
'1º Divisão B, 1º Ball Placement Technical Challenge, 2º Vision Blackout, 3º Dribbling Challenge',
],
[
'2021',
'1º',
'3º Divisão A/B, 1º Technical Challenge de Ball Placement, 5º Desafio de Hardware',
],
['2020', '1º', 'Adiado'],
['2019', '5º', '3º/4º Divisão B'],
['2018', '5º', 'N/A'],
],
},
simulation: {
label: 'Simulação 2D - Resultados',
th: ['Ano', 'RoboCup', 'LARC', 'IRONCup'],
trs: [
['2023', '6º', 'N/A', '2º'],
['2022', '10º', '1º', '3º'],
['2021', '7º', '1º', '3º'],
['2020', 'Adiado', '3º', '6º'],
['2019', '9º', '2º', 'N/A'],
['2018', 'N/A', '4º', '6º'],
],
},
drone: {
label: 'Drones - Resultados',
th: ['Ano', 'Robocup'],
trs: [
[
'2023',
'2º no Technical Challenge da Flying Robots Trial League, 3º geral na Flying Robots Trial League',
][
('2022', '3º no Technical Challenge da Flying Robots Trial League')
],
],
},
},
},
content: 'Esse conteúdo está em português',
home: {
banner: {
headline: {
title: `"Equipe da UFPE conquista o bicampeonato da maior competição de
robótica do mundo"`,
complement: 'Leia mais em:',
title: `excelência em Pesquisa e Desenvolvimento
em Robótica e Inteligência Artificial.`,
complement: `Nossa Inteligência Artificial, Visão Computacional e
engenharia vencem campeonatos mundiais.`,
},
heading: 'Pesquisa de IA e Robótica premiada internacionalmente',
achievements: [
Expand Down Expand Up @@ -199,19 +269,19 @@ const ptBR = {
button_label: `Ver documentos`,
},
publication_card: {
url_label: 'Artigo',
url_label: 'Paper',
},
publications_list: {
header: {
title: 'Nossas Publicações',
description: 'Veja nossas publicações',
title: 'Papers',
description: 'Veja nossos Description Papers abaixo',
},
default_filter_options: {
all: 'Todas',
all: 'Todos',
recent: 'Mais recentes',
},
publication_card: {
url_label: 'Artigo',
url_label: 'Paper',
},
filter_results: {
fallback: 'Oops! Nenhuma publicação foi encontrada para esse ano.',
Expand Down
Binary file added src/assets/2d-sim.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/banner-ide.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/circuit-board.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/drone.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/drone2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/assets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ import OpenInNewIcon from './open-in-new-icon.svg'
import RoboCup2023 from './groupPhotos/robocup-2023.jpg'

import GroupPhoto from './groupPhotos/robocin-group-2023.jpg'
import AltGroupPhoto from './groupPhotos/IMG_4146.jpg'
import BannerIDE from './banner-ide.jpg'

import Robot from './ssl-robot.png'
import Drone from './drone2.jpg'

import TwoDimensionSim from './2d-sim.jpg'

import RobotModel from './robot-model.jpg'

export {
LogoWithLabel,
Expand All @@ -18,4 +27,10 @@ export {
ArrowIcon,
RoboCup2023,
GroupPhoto,
BannerIDE,
Robot,
Drone,
TwoDimensionSim,
RobotModel,
AltGroupPhoto,
}
Binary file added src/assets/robot-model.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/ssl-robot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/components/CategoriesPage/components/Categories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import React from 'react'

import SSL from './assets/small-size-league.png'
import VSS from './assets/very-small-size-league.png'
import Simulation from './assets/2d-simulation.png'
import Drone from './assets/drone.jpeg'
import { Drone, TwoDimensionSim } from '@/assets'

import Main from './Categories'

import { CategoriesDefaultProps } from './interfaces'

const Categories = ({ translate }: CategoriesDefaultProps) => {
const images = [SSL, VSS, Simulation, Drone]
const images = [SSL, VSS, TwoDimensionSim, Drone]

return <Main categories={translate} images={images} />
}
Expand Down
19 changes: 18 additions & 1 deletion src/components/CategoriesPage/components/Category/Category.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
import React from 'react'
import { useRouter } from 'next/router'

import { resultsTables } from '@/data/tables'

import { ExpandableTable } from '@/components'

import { CategoryDefaultProps } from './interfaces'

import * as S from './Category.styles'

type ResultTableKey = 'vssl' | 'ssl' | 'simulation' | 'drone'
type localeType = 'en' | 'pt-BR'

const titleMap: Record<string, ResultTableKey> = {
'Small Size League': 'ssl',
'Very Small Size League': 'vssl',
'2D Simulation': 'simulation',
'Drone': 'drone',
}

const Category = ({
title,
image,
competitions,
description,
approaches,
}: CategoryDefaultProps) => {
const router = useRouter()
const { locale } = router
const lang = locale === 'en' ? 'en' : 'ptBR'

return (
<S.Container id={title.toLowerCase()}>
<S.Divider />
Expand Down Expand Up @@ -45,7 +62,7 @@ const Category = ({
</>
)}
<S.TableWrapper>
<ExpandableTable />
<ExpandableTable data={resultsTables[lang][titleMap[title]]} />
</S.TableWrapper>
</S.Container>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export interface CategoryDefaultProps {
competitions: string
description: string
approaches?: Approach[]
tables?: any[]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export interface CategoriesHeaderProps {
description: string
categories: string[]
}
scrollToSection: (sectionId: string) => void
scrollToSection?: (sectionId: string) => void
}
2 changes: 1 addition & 1 deletion src/components/Home/BannerV2/Banner.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const TextContainer = styled.div`
margin: auto;
padding: auto;
color: white;
text-shadow: 5px 5px 4px rgba(0, 0, 0, 0.8);
text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);

@media (max-width: 768px) {
padding: 0;
Expand Down
19 changes: 19 additions & 0 deletions src/components/Home/Bannerv3/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Image from 'next/image'
import { StyledBanner, StyledImage, StyledContent } from './style'
import { Robot } from '@/assets'

const Banner = ({ translate }: { translate: any }) => {
return (
<StyledBanner>
<StyledImage src={Robot} alt="Robô" />
<StyledContent>
<h2>
<span>RobôCIn:</span> {translate.title}
</h2>
<p>{translate.complement}</p>
</StyledContent>
</StyledBanner>
)
}

export default Banner
Loading
Loading