diff --git a/LICENSE b/LICENSE index 17fd1b99..03c286de 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Zenith +Copyright (c) 2022 Zenith Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/components/launches-components/LaunchItem.jsx b/components/launches-components/LaunchItem.jsx new file mode 100644 index 00000000..5aa23fec --- /dev/null +++ b/components/launches-components/LaunchItem.jsx @@ -0,0 +1,32 @@ +import React from 'react'; +import styles from 'styles/LaunchItem.module.css'; + +function changeUrl(url) { + document.getElementById("sondeHub").src = url; +} + +function LaunchItem (props) { + const { + title, + date, + launchDate, + local, + altitude, + link + } = props.textContent; + + return ( +
changeUrl(link)} className={styles.launchContainer}> +
+
{title}
+
{altitude}
+
+
+
{local}
+
{launchDate}
+
+
+ ); +} + +export default LaunchItem; \ No newline at end of file diff --git a/components/launches-components/LaunchMenu.jsx b/components/launches-components/LaunchMenu.jsx new file mode 100644 index 00000000..b77dd04a --- /dev/null +++ b/components/launches-components/LaunchMenu.jsx @@ -0,0 +1,21 @@ +import React from 'react'; +import styles from 'styles/LaunchMenu.module.css'; +import useTranslation from 'next-translate/useTranslation'; +import LaunchItem from './LaunchItem'; + +function LaunchMenu (props) { + const { t } = useTranslation(); + const launches = t("lancamentos:launches", { count: -1 }, { returnObjects: true }); + const rows = []; + for (let i = 0; i < 10; i++) { + rows.push(); + } + + return ( +
+ {rows} +
+ ); +} + +export default LaunchMenu; \ No newline at end of file diff --git a/components/launches-components/SondeHub.jsx b/components/launches-components/SondeHub.jsx new file mode 100644 index 00000000..14dc58a2 --- /dev/null +++ b/components/launches-components/SondeHub.jsx @@ -0,0 +1,16 @@ +import React from 'react'; +import style from 'styles/SondeHub.module.css'; +import LaunchMenu from './LaunchMenu'; +export default function SondeHub(props) { + +let url_sondehub = "https://sondehub.org/"; + + return ( +
+
+ +
+ +
+ ); +} diff --git a/components/navbar-components/NavLinks.jsx b/components/navbar-components/NavLinks.jsx index f4323be8..59ad21e2 100644 --- a/components/navbar-components/NavLinks.jsx +++ b/components/navbar-components/NavLinks.jsx @@ -34,6 +34,11 @@ export default function NavLinks(props) { {navTexts[4]} + +
  • + {navTexts[5]} +
  • + ); diff --git a/i18n.json b/i18n.json index eafdfe36..1eb902a4 100644 --- a/i18n.json +++ b/i18n.json @@ -7,6 +7,7 @@ "/kurumim" : ["kurumim"], "/processo-seletivo": ["processoSeletivo"], "/projetos" : ["projetos"], - "/zenith" : ["oZenith"] + "/zenith" : ["oZenith"], + "/lancamentos" : ["lancamentos"] } } \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json index 9d180869..00a91043 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "baseUrl": ".", "paths": { - // Caso alguém queira adicionar +1 path pra import abosluto, só seguir o seguinte padrão abaixo: + // Caso alguém queira adicionar +1 path pra import absoluto, só seguir o seguinte padrão abaixo: // "@/components/*": ["components/*"] } } diff --git a/locales/en/common.json b/locales/en/common.json index a5b132e2..4f37141e 100644 --- a/locales/en/common.json +++ b/locales/en/common.json @@ -1,7 +1,7 @@ { - "navBar": ["ABOUT US", "PROJECTS", "KURUMIM", "SELECTION PROCESS", "OBSAT"], + "navBar": ["ABOUT US", "PROJECTS", "KURUMIM", "SELECTION PROCESS", "OBSAT", "LAUNCHES"], "footer": { - "copyright": "© 2021 Zenith Aerospace", + "copyright": "© 2022 Zenith Aerospace", "easterEgg": "MADE WITH TONS OF JAVASCRIPT AND CONFUSION ON DISCORD" } } diff --git a/locales/en/lancamentos.json b/locales/en/lancamentos.json new file mode 100644 index 00000000..4fe39caf --- /dev/null +++ b/locales/en/lancamentos.json @@ -0,0 +1,95 @@ +{ + "metaTags": { + "pageName": "Lançamentos", + "lang": "en", + "pageTitle": "Lançamentos", + "title": "Lançamentos: Desenvolvendo Tecnologia Aeroespacial || Zenith EESC", + "description": "Nossos lançamentos integram diversos campos da Engenharia no setor aeroespacial, desde o Hardware e a Estrutura até o Software." + }, + "lancamentosHero": { + "title": "Nossos lançamentos", + "subtitle": "Integração de diversos campos da Engenharia no setor aeroespacial" + }, + "launches": { + "0": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": " 09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 22.7 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4830341&q=J4830341" + }, + "1": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": "09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 6.8 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4840152&q=J4840152" + }, + "2": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": "09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 23.2 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4840095&q=J4840095" + }, + "3": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": "09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 25.2 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4830342&q=J4830342" + }, + "4": { + "title": "ZenBee", + "date": 2022, + "launchDate": "17/09/2022", + "local": "UFG, Goiânia - GO", + "altitude": "Altitude: 27.4 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T0350530&q=T0350530" + }, + "5": { + "title": "ZenBee", + "date": 2022, + "launchDate": "02/09/2022", + "local": "CVT/AEB, Natal - RN", + "altitude": "Altitude: 25.9 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T0351008&q=T0351008" + }, + "6": { + "title": "ZenBee", + "date": 2022, + "launchDate": "02/09/2022", + "local": "CVT/AEB, Natal - RN", + "altitude": "Altitude: 27.3 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T0350530&q=T0350530" + }, + "7": { + "title": "ZenBee", + "date": 2022, + "launchDate": "20/08/2022", + "local": "UERJ, Rio de Janeiro - RJ", + "altitude": "Altitude: 26 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T4220752&q=T4220752" + }, + "8": { + "title": "ZenBee", + "date": 2022, + "launchDate": "13/08/2022", + "local": "TecnoParq, Santa Maria - RS", + "altitude": "Altitude: 25.9 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T4220752&q=T4220752" + }, + "9": { + "title": "ZenBee", + "date": 2022, + "launchDate": "06/08/2022", + "local": "LASC, Tatuí - SP", + "altitude": "Altitude: 26.2 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T4150774&q=T4150774" + } + } +} \ No newline at end of file diff --git a/locales/es/common.json b/locales/es/common.json index cebb7b47..b30f7d01 100644 --- a/locales/es/common.json +++ b/locales/es/common.json @@ -1,7 +1,7 @@ { - "navBar": ["SOBRE NÓS", "PROJETOS", "KURUMIM", "PROCESSO SELETIVO", "OBSAT"], + "navBar": ["SOBRE NÓS", "PROJETOS", "KURUMIM", "PROCESSO SELETIVO", "OBSAT", "LANÇAMENTOS"], "footer": { - "copyright": "© 2021 Zenith Aerospace", + "copyright": "© 2022 Zenith Aerospace", "easterEgg": "FEITO COM MUITO JAVASCRIPT E CONFUSÃO NO DISCORD" } } diff --git a/locales/es/lancamentos.json b/locales/es/lancamentos.json new file mode 100644 index 00000000..a59c9263 --- /dev/null +++ b/locales/es/lancamentos.json @@ -0,0 +1,95 @@ +{ + "metaTags": { + "pageName": "Lançamentos", + "lang": "es", + "pageTitle": "Lançamentos", + "title": "Lançamentos: Desenvolvendo Tecnologia Aeroespacial || Zenith EESC", + "description": "Nossos lançamentos integram diversos campos da Engenharia no setor aeroespacial, desde o Hardware e a Estrutura até o Software." + }, + "lancamentosHero": { + "title": "Nossos lançamentos", + "subtitle": "Integração de diversos campos da Engenharia no setor aeroespacial" + }, + "launches": { + "0": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": " 09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 22.7 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4830341&q=J4830341" + }, + "1": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": "09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 6.8 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4840152&q=J4840152" + }, + "2": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": "09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 23.2 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4840095&q=J4840095" + }, + "3": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": "09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 25.2 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4830342&q=J4830342" + }, + "4": { + "title": "ZenBee", + "date": 2022, + "launchDate": "17/09/2022", + "local": "UFG, Goiânia - GO", + "altitude": "Altitude: 27.4 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T0350530&q=T0350530" + }, + "5": { + "title": "ZenBee", + "date": 2022, + "launchDate": "02/09/2022", + "local": "CVT/AEB, Natal - RN", + "altitude": "Altitude: 25.9 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T0351008&q=T0351008" + }, + "6": { + "title": "ZenBee", + "date": 2022, + "launchDate": "02/09/2022", + "local": "CVT/AEB, Natal - RN", + "altitude": "Altitude: 27.3 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T0350530&q=T0350530" + }, + "7": { + "title": "ZenBee", + "date": 2022, + "launchDate": "20/08/2022", + "local": "UERJ, Rio de Janeiro - RJ", + "altitude": "Altitude: 26 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T4220752&q=T4220752" + }, + "8": { + "title": "ZenBee", + "date": 2022, + "launchDate": "13/08/2022", + "local": "TecnoParq, Santa Maria - RS", + "altitude": "Altitude: 25.9 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T4220752&q=T4220752" + }, + "9": { + "title": "ZenBee", + "date": 2022, + "launchDate": "06/08/2022", + "local": "LASC, Tatuí - SP", + "altitude": "Altitude: 26.2 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T4150774&q=T4150774" + } + } +} \ No newline at end of file diff --git a/locales/pt/common.json b/locales/pt/common.json index cebb7b47..b30f7d01 100644 --- a/locales/pt/common.json +++ b/locales/pt/common.json @@ -1,7 +1,7 @@ { - "navBar": ["SOBRE NÓS", "PROJETOS", "KURUMIM", "PROCESSO SELETIVO", "OBSAT"], + "navBar": ["SOBRE NÓS", "PROJETOS", "KURUMIM", "PROCESSO SELETIVO", "OBSAT", "LANÇAMENTOS"], "footer": { - "copyright": "© 2021 Zenith Aerospace", + "copyright": "© 2022 Zenith Aerospace", "easterEgg": "FEITO COM MUITO JAVASCRIPT E CONFUSÃO NO DISCORD" } } diff --git a/locales/pt/lancamentos.json b/locales/pt/lancamentos.json new file mode 100644 index 00000000..da12a677 --- /dev/null +++ b/locales/pt/lancamentos.json @@ -0,0 +1,95 @@ +{ + "metaTags": { + "pageName": "Lançamentos", + "lang": "pt", + "pageTitle": "Lançamentos", + "title": "Lançamentos: Desenvolvendo Tecnologia Aeroespacial || Zenith EESC", + "description": "Nossos lançamentos integram diversos campos da Engenharia no setor aeroespacial, desde o Hardware e a Estrutura até o Software." + }, + "lancamentosHero": { + "title": "Nossos lançamentos", + "subtitle": "Integração de diversos campos da Engenharia no setor aeroespacial" + }, + "launches": { + "0": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": " 09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 22.7 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4830341&q=J4830341" + }, + "1": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": "09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 6.8 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4840152&q=J4840152" + }, + "2": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": "09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 23.2 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4840095&q=J4840095" + }, + "3": { + "title": "Sábado Aeroespacial", + "date": 2022, + "launchDate": "09/10/2022", + "local": "Kurumin, São Carlos - SP", + "altitude": "Altitude: 25.2 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=J4830342&q=J4830342" + }, + "4": { + "title": "ZenBee", + "date": 2022, + "launchDate": "17/09/2022", + "local": "UFG, Goiânia - GO", + "altitude": "Altitude: 27.4 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T0350530&q=T0350530" + }, + "5": { + "title": "ZenBee", + "date": 2022, + "launchDate": "02/09/2022", + "local": "CVT/AEB, Natal - RN", + "altitude": "Altitude: 25.9 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T0351008&q=T0351008" + }, + "6": { + "title": "ZenBee", + "date": 2022, + "launchDate": "02/09/2022", + "local": "CVT/AEB, Natal - RN", + "altitude": "Altitude: 27.3 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T0350530&q=T0350530" + }, + "7": { + "title": "ZenBee", + "date": 2022, + "launchDate": "20/08/2022", + "local": "UERJ, Rio de Janeiro - RJ", + "altitude": "Altitude: 26 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T4220752&q=T4220752" + }, + "8": { + "title": "ZenBee", + "date": 2022, + "launchDate": "13/08/2022", + "local": "TecnoParq, Santa Maria - RS", + "altitude": "Altitude: 25.9 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T4220752&q=T4220752" + }, + "9": { + "title": "ZenBee", + "date": 2022, + "launchDate": "06/08/2022", + "local": "LASC, Tatuí - SP", + "altitude": "Altitude: 26.2 km", + "link": "https://sondehub.org/#!mt=Mapnik&f=T4150774&q=T4150774" + } + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index ff660aad..540f6d43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1720,9 +1720,9 @@ "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" }, "node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "dependencies": { "brace-expansion": "^1.1.7" @@ -1732,10 +1732,13 @@ } }, "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", + "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/ms": { "version": "2.1.2", @@ -3825,18 +3828,18 @@ "integrity": "sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==" }, "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", + "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", "dev": true }, "ms": { diff --git a/pages/lancamentos.jsx b/pages/lancamentos.jsx new file mode 100644 index 00000000..51a51425 --- /dev/null +++ b/pages/lancamentos.jsx @@ -0,0 +1,23 @@ +import React from 'react'; +import NavBar from 'components/navbar-components/NavBar'; +import useTranslation from 'next-translate/useTranslation'; +import SondeHub from 'components/launches-components/SondeHub' +import Footer from 'components/Footer'; +import HeadTags from 'components/general/HeadTags'; + +function Lancamentos() { + const { t } = useTranslation(); + const metaTags = t('lancamentos:metaTags', { count: -1 }, { returnObjects: true }); + return ( + <> + + + +