improve about page readability mobile
This commit is contained in:
parent
924adbf0fa
commit
321bedcee9
@ -1,26 +1,27 @@
|
||||
import { type NextPage } from "next/types";
|
||||
import Image from 'next/image';
|
||||
import { HandRaisedIcon } from '@heroicons/react/24/solid';
|
||||
import Footer from "~/components/Footer";
|
||||
import Header from "~/components/Header";
|
||||
|
||||
type Position = "left" | "right";
|
||||
interface Biography {
|
||||
name: string;
|
||||
bodyName: string;
|
||||
title: string;
|
||||
body: string;
|
||||
img: string;
|
||||
position: Position;
|
||||
}
|
||||
|
||||
const Biopgraphy = ({name, title, body, img, position}: Biography) => {
|
||||
const Biopgraphy = ({bodyName, name, title, body, img, position}: Biography) => {
|
||||
return (
|
||||
<section className={"shadow-xl bg-yellow-100 grid grid-cols-3 border-4 rounded-2xl border-neutral-900 col-span-2 overflow-hidden" + (position === 'right' ? " lg:col-start-2 lg:rotate-3" : " lg:-rotate-3")}>
|
||||
<div style={{
|
||||
backgroundImage: `url("${img}")`,
|
||||
backgroundPosition: `center`,
|
||||
backgroundSize: 'cover',
|
||||
}} />
|
||||
<div className="col-span-2 p-4">
|
||||
<b>{name}, {title}</b>, {body}
|
||||
<section className={"sm:space-y-2 p-2 shadow-xl bg-yellow-100 flex flex-col border-y-2 sm:border-2 sm:rounded-2xl border-neutral-900 col-span-2 overflow-hidden" + (position === 'right' ? " lg:col-start-2 lg:rotate-3" : " lg:-rotate-3")}>
|
||||
<div className="p-2">
|
||||
<Image src={img} alt={`${name} profile`} width={128} height={128} className="shadow-lg shadow-neutral-600/50 rounded-full border border-neutral-900" />
|
||||
</div>
|
||||
<div className="col-span-2 p-2 bg-white rounded-lg border border-neutral-900">
|
||||
{bodyName} {body}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
@ -29,6 +30,7 @@ const Biopgraphy = ({name, title, body, img, position}: Biography) => {
|
||||
const biographies: Biography[] = [
|
||||
{
|
||||
name: "Olivia Adamson",
|
||||
bodyName: "Olivia",
|
||||
title: "B.A",
|
||||
body: "is a dedicated audiology graduate student at the University of Iowa, originally from a small town in southeast Minnesota. She earned her Bachelor of Arts in Communication Sciences and Disorders from Augustana University in Sioux Falls, SD, in 2020. Olivia Adamson is currently immersed in her fourth-year externship at Gundersen Health System in LaCrosse, WI, where she works with patients of all ages, performs comprehensive diagnostic assessments, provides vestibular assessments, and specializes in hearing aids and cochlear implants. With a passion for aural rehabilitation, particularly for older adults, Olivia is dedicated to enhancing the quality of life for individuals with hearing loss. She aspires to empower patients to take control of their hearing journey through this resource. Upon completing her externship, Olivia will graduate with her Au.D. in May 2024.",
|
||||
img: "/profiles/olivia-adamson.jpeg",
|
||||
@ -36,6 +38,7 @@ const biographies: Biography[] = [
|
||||
},
|
||||
{
|
||||
name: "Dr. Eun Kyung (Julie) Jeon",
|
||||
bodyName: "Julie",
|
||||
title: "Au.D., Ph.D.",
|
||||
body: "is a Clinical Assistant Professor in Communication Sciences and Disorders at the University of Iowa. She earned both her Au.D. and Ph.D. degrees from the University of Iowa in 2008 and 2016, respectively. Dr. Jeon's research and clinical interests focus on aural (re)habilitation for children and adults with hearing aids and cochlear implants. She has served as a reviewer for various journals, including Ear and Hearing and Cochlear Implant International. Dr. Jeon is an active member of several professional organizations, such as the American Academy of Audiology (AAA), the American Cochlear Implant Alliance (ACIA), the American Speech-Language-Hearing Association (ASHA), the Iowa Speech-Language-Hearing Association (ISHA), and the Asia Pacific Society of Speech-Language-Hearing (APSSLH). Currently, she has been entrusted with various leadership responsibilities, including educational committee officer for the APSSLH, Member-at-Large for the Iowa Speech Language Hearing Foundation, Iowa EHDI Advisory Board representative for the ISHA, and program committee member for the CI2023 conference.",
|
||||
img: "/profiles/jeon-eunkyung.jpg",
|
||||
@ -62,11 +65,22 @@ const About: NextPage = () => {
|
||||
</div>
|
||||
</div>
|
||||
<div className="w-full">
|
||||
<div className="mx-auto max-w-7xl p-8">
|
||||
<div className="mx-auto bg-neutral-900 p-4 w-96 rounded-xl mt-8 mb-20 border-2 border-neutral-300">
|
||||
<h1 className="text-white text-4xl font-bold text-center">Meet the Team</h1>
|
||||
<div className="mx-auto max-w-7xl sm:p-8">
|
||||
{/** Small screens */}
|
||||
<div className="block sm:hidden w-full bg-neutral-900 p-4">
|
||||
<h1 className="text-white text-4xl font-bold text-center">
|
||||
Meet the Team
|
||||
<HandRaisedIcon className="ml-4 rotate-12 text-yellow-200 inline w-12 animate-hand_wave"/>
|
||||
</h1>
|
||||
</div>
|
||||
<div className="mt-16 mb-32 grid grid-cols-2 lg:grid-cols-3 mt-4 space-y-24">
|
||||
{/** Large screens */}
|
||||
<div className="hidden sm:block mx-auto bg-neutral-900 p-4 mx-auto w-max rounded-xl mt-8 mb-20 border-2 border-neutral-300">
|
||||
<h1 className="text-white text-4xl font-bold text-center">
|
||||
Meet the Team
|
||||
<HandRaisedIcon className="ml-4 rotate-12 text-yellow-200 inline w-12 animate-hand_wave"/>
|
||||
</h1>
|
||||
</div>
|
||||
<div className="md:mt-16 mb-32 grid grid-cols-2 lg:grid-cols-3 sm:mt-4 md:space-y-24 sm:space-y-12 space-y-4">
|
||||
{biographies.map((biography, index) => {
|
||||
return (
|
||||
<Biopgraphy key={index} {...biography} />
|
||||
|
@ -15,12 +15,18 @@ const config = {
|
||||
slide_right_full: {
|
||||
'0%': { transform: 'translate(-50%)' },
|
||||
'100%': { transform: 'translate(0%)' },
|
||||
},
|
||||
wiggle_rotate: {
|
||||
'0%, 100%': { transform: 'rotate(0)' },
|
||||
'50%': { transform: 'rotate(12)' },
|
||||
'75%': { transform: 'rotate(-12)' },
|
||||
}
|
||||
},
|
||||
animation: {
|
||||
expand_in_out: 'expand_in_out 2s ease-in-out infinite',
|
||||
slide_search_page: 'slide_left_full 0.5s ease-in-out',
|
||||
slide_search_page_backwards: 'slide_right_full 0.5s ease-in-out'
|
||||
slide_search_page_backwards: 'slide_right_full 0.5s ease-in-out',
|
||||
hand_wave: 'wiggle_rotate 0.5s ease-in-out infinite',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user