-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
60 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ import Link from "next/link"; | |
import { useTranslation } from "react-i18next"; | ||
import { routes } from "@/constants/routes"; | ||
import { EnvelopeClosedIcon } from "@radix-ui/react-icons"; | ||
import Image from "../ui/image-old"; | ||
import Image from "../ui/image"; | ||
import Text from "../ui/Text"; | ||
|
||
export default function Footer(props) { | ||
const { t } = useTranslation(); | ||
|
@@ -24,42 +25,45 @@ export default function Footer(props) { | |
); | ||
|
||
const sectionTitleClasses = clsx( | ||
"text-white smallcaps text-left mb-2 text-[14px] font-bold" | ||
"smallcaps text-left mb-2 text-[14px] font-bold" | ||
); | ||
|
||
return ( | ||
<footer className="narrow_padding flex flex-wrap justify-between md:flex-nowrap gap-4 sm:gap-8 lg:gap-12 items-start bg-primary text-white"> | ||
<div className={projectLogoContainerClasses}> | ||
<footer className="narrow_padding flex flex-wrap justify-between md:flex-nowrap gap-4 sm:gap-8 lg:gap-12 items-start bg-gray-300 text-gray-800"> | ||
<div className={projectLogoContainerClasses + " w-full border-b pb-4 border-gray-400 md:border-0"}> | ||
<img | ||
className="w-full min-w-64 max-w-[500px]" // Corrige la sintaxis del max-width | ||
className="w-full min-w-64 max-w-[200px]" // Corrige la sintaxis del max-width | ||
src="logo_boiler_light.svg" | ||
alt="logo placeholder" | ||
/> | ||
<div className="text-white flex items-center"> | ||
<EnvelopeClosedIcon className="mr-2 mb-0.5" /> | ||
<p className="text-white text-[14px] flex gap-1"> | ||
<b>{t("footer.email")} </b>[email protected] | ||
</p> | ||
<div className=" flex justify-center flex-col gap-0 xs:flex-row xs:gap-2 md:flex-col md:gap-0"> | ||
<div className="flex flex-row"> | ||
<EnvelopeClosedIcon className="mr-2 mt-1" /> | ||
<Text className=" text-[14px] flex gap-1"> | ||
<b>{t("footer.email")} </b> | ||
</Text> | ||
</div> | ||
<Text className=""> [email protected]</Text> | ||
</div> | ||
</div> | ||
|
||
<nav className="w-2/5 sm:w-2/6 md:w-1/3 lg:w-1/4"> | ||
<nav className=" w-full xs:w-2/6 md:w-1/3 lg:w-1/4 border-b pb-4 border-gray-400 xs:border-0"> | ||
<div className={sectionTitleClasses}>{t("footer.title1")}</div> | ||
<ul | ||
className={`columns-1 gap-x-3 inline-block ${ | ||
routes.length <= 3 ? "sm:columns-1" : "sm:columns-2" | ||
className={`columns-1 gap-x-8 inline-block ${ | ||
routes.length <= 3 ? "sm:columns-1" : "sm:columns-2 md:columns-1" | ||
}`} | ||
> | ||
{routes.map((route, index) => ( | ||
<li | ||
key={index} | ||
className={ | ||
route.route === props.route | ||
? "li-selected text-left mb-1 lg:mb-1.5 font-normal text-sm" | ||
: "text-left mb-1 lg:mb-1.5 font-normal text-[14px]" | ||
? "li-selected text-left mb-1 lg:mb-1.5" | ||
: "text-left mb-1 lg:mb-1.5" | ||
} | ||
> | ||
<Link className="font-normal" href={route.route}> | ||
<Link className="text-base" href={route.route}> | ||
{t(route.key)} | ||
</Link> | ||
</li> | ||
|
@@ -69,7 +73,7 @@ export default function Footer(props) { | |
|
||
<div> | ||
<div className={sectionTitleClasses}>{t("footer.title3")}</div> | ||
<div className="w-fit flex gap-4 justify-center items-center flex-wrap xs:flex-nowrap"> | ||
<div className="w-fit flex gap-4 justify-start items-center flex-wrap xs:flex-col sm:flex-row sm:flex-wrap lg:flex-nowrap"> | ||
{/* <div className={partnerLogoClasses}> | ||
<img className={imgClasses} src="placeholder.jpg" alt="logo UPM" /> | ||
</div> */} | ||
|
@@ -78,7 +82,7 @@ export default function Footer(props) { | |
fit="contain" // Ajuste de la imagen | ||
src="/placeholder.jpg" // Usa una ruta válida | ||
alt="Descripción de la imagen" | ||
className="max-h-full w-auto " // Asegura que la imagen no exceda la altura máxima | ||
className="max-h-full w-auto justify-start" // Asegura que la imagen no exceda la altura máxima | ||
/> | ||
</div> | ||
<div className={partnerLogoClasses}> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters