Skip to content

Commit 54f8ac7

Browse files
committed
resuelto traduccion categorias, pequeño bug landing espaciado
1 parent 7e00da0 commit 54f8ac7

File tree

19 files changed

+31
-74
lines changed

19 files changed

+31
-74
lines changed

components/core/Cards.jsx

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -62,50 +62,6 @@ const tagContainerClasses = cn(
6262
"mt-6 w-full flex flex-wrap gap-2 justify-start"
6363
);
6464

65-
66-
const renderTags = (tags) => {
67-
if (!tags) return null;
68-
const tagsArray = tags.split(",").map((tag) => tag.trim()); // Convierte el string en array y elimina espacios
69-
return tagsArray.map((tag, index) => (
70-
<Mybadge key={index} variant="default">
71-
{tag}
72-
</Mybadge> // Añade una key a cada Label
73-
));
74-
};
75-
76-
77-
78-
// quitarle guión, añadir espaciado, mayúscula (Formateo)
79-
const renderCategory = (category) => {
80-
if (!category) return null;
81-
const categoryFormat = category
82-
.split("-") // cadena en un array de palabras
83-
.map((palabra) => palabra.charAt(0).toUpperCase() + palabra.slice(1)) // la primera letra en mayúscula
84-
.join(" "); // unir las palabras con espacio
85-
return categoryFormat
86-
};
87-
88-
const translateCategory = (category, currentLang) => {
89-
if (currentLang == "es") {
90-
if (category == "article-journal") {
91-
category = "artículo-revista";
92-
// console.log(category);
93-
} else if (category == "paper-conference") {
94-
category = "acta-congreso";
95-
// console.log(category);
96-
} else if (category == "book") {
97-
category = "libro";
98-
// console.log(category);
99-
} else if (category == "chapter") {
100-
category = "capítulo";
101-
// console.log(category);
102-
}
103-
} else if (currentLang == "en") {
104-
// transformar "artículo-revista" en article journal
105-
}
106-
return renderCategory(category);
107-
};
108-
10965
const returnPwidth = () => {
11066
const minWidth = 600; // Ancho mínimo
11167
const maxWidth = 1600; // Ancho máximo
@@ -125,6 +81,7 @@ const returnPwidth = () => {
12581
}
12682
};
12783

84+
// VER MAS
12885
const getIdealLength = () => {
12986
const isMobile = window.innerWidth <= 600;
13087

@@ -432,7 +389,7 @@ const Card = React.forwardRef(
432389
{title}
433390
</CardTitle>
434391
<div className="flex"> <Text type="small" className="font-bold">
435-
{translateCategory(category, currentLang)}</Text>
392+
{t(`research.filter.${category}`)}</Text>
436393
<div className="mx-2 mb-2">·</div> <Text type="small"> {date && date[0]} </Text> </div>
437394
<Text className="text-gray-300/90 mb-4" type="small">{author}</Text>
438395
<div className="flex flex-wrap gap-1.5">

components/illustrations/ResearchlineIllust.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const ResearchlineIllust = ({ researchLine }) => {
4242
<div className="data-spaces-item" id="data-spaces-item-4"></div>
4343
</div>
4444
<Link className="icon_link_publication" target="_blank" href="projects?researchline=data">
45-
<ArrowOutwardIcon className=" text-white absolute right-2 hover:right-0 bottom-1 transition-all hover:bottom-2 font-bold opacity-75 hover:opacity-100" sx={{ fontSize: 48 }} />
45+
<ArrowOutwardIcon className=" text-white absolute right-1 hover:right-0 bottom-1 transition-all hover:bottom-2 font-bold opacity-75 hover:opacity-100" sx={{ fontSize: 48 }} />
4646
<Mybadge variant="secondary" size="sm" className="link_publication absolute right-2 bottom-14"> {t("front.ResearchLines.button")} </Mybadge>
4747
</Link>
4848
</div>
@@ -56,7 +56,7 @@ const ResearchlineIllust = ({ researchLine }) => {
5656
{/* <div className="generative-ai-item" id="generative-ai-item-4"></div> */}
5757
</div>
5858
<Link className="icon_link_publication" target="_blank" href="projects?researchline=ai">
59-
<ArrowOutwardIcon className=" text-background absolute right-2 hover:right-0 bottom-1 transition-all hover:bottom-2 font-bold opacity-75 hover:opacity-100" sx={{ fontSize: 48 }} />
59+
<ArrowOutwardIcon className=" text-background absolute right-1 hover:right-0 bottom-1 transition-all hover:bottom-2 font-bold opacity-75 hover:opacity-100" sx={{ fontSize: 48 }} />
6060
<Mybadge variant="secondary" size="sm" className="link_publication absolute right-2 bottom-14"> {t("front.ResearchLines.button")} </Mybadge>
6161
</Link>
6262
</div>
@@ -71,7 +71,7 @@ const ResearchlineIllust = ({ researchLine }) => {
7171
{/* <div className="generative-ai-item" id="generative-ai-item-4"></div> */}
7272
</div>
7373
<Link className="icon_link_publication" target="_blank" href="projects?researchline=e-learning">
74-
<ArrowOutwardIcon className=" text-white absolute right-2 hover:right-0 bottom-1 transition-all hover:bottom-2 font-bold opacity-75 hover:opacity-100" sx={{ fontSize: 48 }} />
74+
<ArrowOutwardIcon className=" text-white absolute right-1 hover:right-0 bottom-1 transition-all hover:bottom-2 font-bold opacity-75 hover:opacity-100" sx={{ fontSize: 48 }} />
7575
<Mybadge variant="secondary" size="sm" className="link_publication absolute right-2 bottom-14"> {t("front.ResearchLines.button")} </Mybadge>
7676
</Link>
7777
</div>
@@ -86,7 +86,7 @@ const ResearchlineIllust = ({ researchLine }) => {
8686
></img>
8787
</div>
8888
<Link className="icon_link_publication" target="_blank" href="projects?researchline=computing">
89-
<ArrowOutwardIcon className=" text-white absolute right-2 hover:right-0 bottom-1 transition-all hover:bottom-2 font-bold opacity-75 hover:opacity-100" sx={{ fontSize: 48 }} />
89+
<ArrowOutwardIcon className=" text-white absolute right-1 hover:right-0 bottom-1 transition-all hover:bottom-2 font-bold opacity-75 hover:opacity-100" sx={{ fontSize: 48 }} />
9090
<Mybadge variant="secondary" size="sm" className="link_publication absolute right-2 bottom-14"> {t("front.ResearchLines.button")} </Mybadge>
9191
</Link>
9292
</div>

docs/404.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/_next/static/chunks/816-27b91fa87b096be3.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_next/static/chunks/816-a00ca4eb212d7aed.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/_next/static/r7b590HKt-oFkCVsCr-Vd/_buildManifest.js renamed to docs/_next/static/jdFyD_GLdny1rs1MfcQDQ/_buildManifest.js

File renamed without changes.

docs/_next/static/r7b590HKt-oFkCVsCr-Vd/_ssgManifest.js renamed to docs/_next/static/jdFyD_GLdny1rs1MfcQDQ/_ssgManifest.js

File renamed without changes.

docs/contact.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/contact.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
1:"$Sreact.fragment"
22
2:I[4547,[],"ClientSegmentRoot"]
3-
3:I[8784,["105","static/chunks/0e5ce63c-c3a86c17627f63d4.js","525","static/chunks/525-02b0e089dba1282b.js","109","static/chunks/109-72ea9f28e9ed85a3.js","432","static/chunks/432-5e8542185e668544.js","746","static/chunks/746-9391c6c23571ac60.js","816","static/chunks/816-a00ca4eb212d7aed.js","541","static/chunks/541-e57db6b9dca3963d.js","719","static/chunks/719-ee67d093a3d3e6ed.js","146","static/chunks/146-08c5294045ee26f7.js","837","static/chunks/837-03e48eed5e7fbd97.js","273","static/chunks/273-6811a84eb76d1797.js","177","static/chunks/app/layout-3cc242bf2af141e2.js"],"default"]
3+
3:I[8784,["105","static/chunks/0e5ce63c-c3a86c17627f63d4.js","525","static/chunks/525-02b0e089dba1282b.js","109","static/chunks/109-72ea9f28e9ed85a3.js","432","static/chunks/432-5e8542185e668544.js","746","static/chunks/746-9391c6c23571ac60.js","816","static/chunks/816-27b91fa87b096be3.js","541","static/chunks/541-e57db6b9dca3963d.js","719","static/chunks/719-ee67d093a3d3e6ed.js","146","static/chunks/146-08c5294045ee26f7.js","837","static/chunks/837-03e48eed5e7fbd97.js","273","static/chunks/273-6811a84eb76d1797.js","177","static/chunks/app/layout-3cc242bf2af141e2.js"],"default"]
44
4:I[5244,[],""]
55
5:I[3866,[],""]
66
7:I[7033,[],"ClientPageRoot"]
@@ -11,7 +11,7 @@ f:I[6213,[],"ViewportBoundary"]
1111
11:I[4835,[],""]
1212
:HL["/_next/static/css/c197a578b0b4181a.css","style"]
1313
:HL["/_next/static/css/5068fe894a9bb7fe.css","style"]
14-
0:{"P":null,"b":"r7b590HKt-oFkCVsCr-Vd","p":"","c":["","contact"],"i":false,"f":[[["",{"children":["contact",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/c197a578b0b4181a.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/5068fe894a9bb7fe.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@6"}]]}],{"children":["contact",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","contact","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":"$Lc"}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","LzHvjWJRO_s2BMuNM-tO2",{"children":[["$","$Ld",null,{"children":"$Le"}],["$","$Lf",null,{"children":"$L10"}],null]}]]}],false]],"m":"$undefined","G":["$11","$undefined"],"s":false,"S":true}
14+
0:{"P":null,"b":"jdFyD_GLdny1rs1MfcQDQ","p":"","c":["","contact"],"i":false,"f":[[["",{"children":["contact",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/c197a578b0b4181a.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/5068fe894a9bb7fe.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@6"}]]}],{"children":["contact",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","contact","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":"$Lc"}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","mXbGtof5v4TA87vuZo9jq",{"children":[["$","$Ld",null,{"children":"$Le"}],["$","$Lf",null,{"children":"$L10"}],null]}]]}],false]],"m":"$undefined","G":["$11","$undefined"],"s":false,"S":true}
1515
6:{}
1616
9:{}
1717
a:{}

docs/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)