Skip to content

Fix download meta title #433

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

Merged
merged 2 commits into from
Feb 7, 2023
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
5 changes: 3 additions & 2 deletions i18n/react-intl/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"home": "Home",
"downloadTitle": "Create with code, everywhere",
"download": "Download",
"documentation": "Documentation",
"reference": "Reference",
"references": "References",
Expand Down Expand Up @@ -71,6 +71,8 @@
"peopleIntro": "Processing is a community effort led by a small group of volunteers.",
"booksIntro": "Processing books cover topics from programming basics to visualization. Browse this page to find the right books for you.",
"readMore": "Read more",
"downloadTitle": "Create with code, everywhere",
"downloadTitleMeta": "Download Processing",
"downloadIntro": "Processing is open source and is available for macOS, Windows, and Linux. Projects created with Processing are also cross-platform, and can be used on macOS, Windows, Android, Raspberry Pi, and many other Linux platforms.",
"windowsIntelAssetTooltip": "Compatible with Windows 10 and 11. For best compatibility, we recommend Windows 10.",
"macOsIntelAssetTooltip": "Compatible with macOS 10.15.7 (Catalina) through macOS 13 (Ventura). macOS 12 (Monterey) recommended.",
Expand Down Expand Up @@ -130,7 +132,6 @@
"letUsKnow": " let us know",
"syntax": "Syntax",
"parameters": "Parameters",
"download": "Download",
"return": "Return",
"inUse": "In use",
"notFound": "NOT FOUND",
Expand Down
5 changes: 3 additions & 2 deletions i18n/react-intl/es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"home": "Inicio",
"downloadTitle": "Crea con código, en cualquier lugar",
"download": "Descargar",
"documentation": "Documentación",
"reference": "Referencia",
"references": "Referencias",
Expand Down Expand Up @@ -71,6 +71,8 @@
"peopleIntro": "Processing es un esfuerzo comunitario lidereado por un pequeño grupo de voluntarios.",
"booksIntro": "Los libros sobre Processing cubren temas desde los principios básicos de programación a la visualización. Navega esta pagina para encontrar un libro adecuado para ti.",
"readMore": "Leer más",
"downloadTitle": "Crea con código, en cualquier lugar",
"downloadTitleMeta": "Descarga Processing",
"downloadIntro": "Processing es código abierto y está disponible para macOS, Windows, y Linux. Proyectos creados con Processing también multiplataforma, y pueden ser ejecutados en macOS, Windows, Android, Raspberry Pi, y muchas plataformas Linux.",
"windowsIntelAssetTooltip": "Compatible con Windows 10 y 11. Para mejor compatibilidad, recomendamos Windows 10.",
"macOsIntelAssetTooltip": "Compatible desde macOS 10.15.7 (Catalina) hasta macOS 13 (Ventura). Recomendamos macOS 12 (Monterey).",
Expand Down Expand Up @@ -130,7 +132,6 @@
"letUsKnow": " háznoslo saber",
"syntax": "Sintaxis",
"parameters": "Parámetros",
"download": "Descargar",
"return": "Regresa",
"inUse": "En uso",
"notFound": "NOT FOUND",
Expand Down
3 changes: 1 addition & 2 deletions src/templates/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Download = ({ data }) => {
return (
<Layout>
<HeadMatter
title={intl.formatMessage({ id: 'downloadTitle' })}
title={intl.formatMessage({ id: 'downloadTitleMeta' })}
description={intl.formatMessage({ id: 'downloadIntro' })}
/>

Expand Down Expand Up @@ -201,7 +201,6 @@ const InfoTooltip = ({ asset, date, className, zIndex, translateX }) => {
const dropdownRect = tooltipRef.current.getBoundingClientRect();
const dropdownRightX = dropdownRect.x + dropdownRect.width;
if (dropdownRightX > window.innerWidth) {
console.log('hey');
tooltipRef.current.style.left = 'auto';
tooltipRef.current.style.right = '0';
tooltipRef.current.style.transform = 'none';
Expand Down