From 75040a396fc6ad7e2c89b043484421c909c49881 Mon Sep 17 00:00:00 2001 From: AnyaKhemlani Date: Sun, 21 Jul 2024 19:43:28 -0400 Subject: [PATCH] adjusting pubs for mobile --- seal-website/app/components/Publication.tsx | 2 +- .../initiatives/decarbonization/Client.tsx | 4 +- .../initiatives/global_delivery/Client.tsx | 183 ++++++++---------- .../app/initiatives/mental_health/Client.tsx | 10 +- 4 files changed, 94 insertions(+), 105 deletions(-) diff --git a/seal-website/app/components/Publication.tsx b/seal-website/app/components/Publication.tsx index 8653ae2..29ba1be 100644 --- a/seal-website/app/components/Publication.tsx +++ b/seal-website/app/components/Publication.tsx @@ -14,7 +14,7 @@ const Publication: React.FC = ({ img, href, alt }) => { href={href} target="_blank" rel="noopener noreferrer" - className="mt-10 flex items-center justify-center w-5/6 h-full bg-gray-200 rounded-xl hover:bg-blue-300 transition duration-150 ease-in-out transform hover:scale-110 mt-3 py-2 px-4 text-center text-xl font-bold" + className="mt-10 flex items-center justify-center w-5/6 h-full bg-blue-200 rounded-xl hover:bg-blue-300 transition duration-150 ease-in-out transform hover:scale-110 mt-3 py-2 px-4 text-center text-xl font-bold" > {alt { initial={{ y: 50, opacity: 0 }} whileInView={{ y: 0, opacity: 1 }} viewport={{ once: false }} - transition={{ duration: 0.8, ease: "easeInOut" }} + transition={{ duration: 0.5, ease: "easeIn" }} className="w-full flex justify-center px-5" > @@ -65,7 +65,7 @@ const Client = () => { initial={{ y: 50, opacity: 0 }} whileInView={{ y: 0, opacity: 1 }} viewport={{ once: false }} - transition={{ duration: 0.8, ease: "easeInOut" }} + transition={{ duration: 0.5, ease: "easeIn" }} className="w-full flex justify-center px-5" > diff --git a/seal-website/app/initiatives/global_delivery/Client.tsx b/seal-website/app/initiatives/global_delivery/Client.tsx index f7052a7..6d9e9e1 100644 --- a/seal-website/app/initiatives/global_delivery/Client.tsx +++ b/seal-website/app/initiatives/global_delivery/Client.tsx @@ -3,128 +3,117 @@ import React from 'react'; import Image from "next/image"; import { motion } from 'framer-motion'; import Publication from '@/app/components/Publication'; -import InitHeader from '@/app/components/InitHeader'; +import InitHeader from '@/app/components/InitHeader'; import InitLabel from '@/app/components/InitLabel'; import InitBody from '@/app/components/InitBodyText'; import SectionDivider from '@/app/components/SectionDivider'; const Client = () => { - return ( -
- - -
+ +
-
- - - - - -
-
+
+ + + + + +
+
- Emissions figure + Emissions figure
- Emissions figure -
+ Emissions figure
- - - -
+ +
- - -
- - - -
- - - - - - - - - - - - - - - - - - -
-
-
-
- ); -}; - -export default Client; - - - +
+ +
+ + + + + + + + + + + + + + + +
+
+
+
+ ); +}; +export default Client; \ No newline at end of file diff --git a/seal-website/app/initiatives/mental_health/Client.tsx b/seal-website/app/initiatives/mental_health/Client.tsx index 6400f92..217f52a 100644 --- a/seal-website/app/initiatives/mental_health/Client.tsx +++ b/seal-website/app/initiatives/mental_health/Client.tsx @@ -50,7 +50,7 @@ const Client = () => { initial={{ y: 50, opacity: 0 }} whileInView={{ y: 0, opacity: 1 }} viewport={{ once: false }} - transition={{ duration: 0.8, ease: "easeInOut" }} + transition={{ duration: 0.5, ease: "easeIn" }} className="w-full flex justify-center px-5 items-center" > @@ -62,7 +62,7 @@ const Client = () => { initial={{ y: 50, opacity: 0 }} whileInView={{ y: 0, opacity: 1 }} viewport={{ once: false }} - transition={{ duration: 0.8, ease: "easeInOut" }} + transition={{ duration: 0.5, ease: "easeIn" }} className="w-full flex justify-center px-5 items-center" > @@ -72,7 +72,7 @@ const Client = () => { initial={{ y: 50, opacity: 0 }} whileInView={{ y: 0, opacity: 1 }} viewport={{ once: false }} - transition={{ duration: 0.8, ease: "easeInOut" }} + transition={{ duration: 0.5, ease: "easeIn" }} className="w-full flex justify-center px-5 items-center" > @@ -81,7 +81,7 @@ const Client = () => { initial={{ y: 50, opacity: 0 }} whileInView={{ y: 0, opacity: 1 }} viewport={{ once: false }} - transition={{ duration: 0.8, ease: "easeInOut" }} + transition={{ duration: 0.5, ease: "easeIn" }} className="w-full flex justify-center px-5 items-center" > @@ -90,7 +90,7 @@ const Client = () => { initial={{ y: 50, opacity: 0 }} whileInView={{ y: 0, opacity: 1 }} viewport={{ once: false }} - transition={{ duration: 0.8, ease: "easeInOut" }} + transition={{ duration: 0.5, ease: "easeIn" }} className="w-full flex justify-center px-5 items-center" >