diff --git a/src/components/Card.tsx b/src/components/Card.tsx index 1575540..7ec9ec5 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -5,14 +5,10 @@ interface CardProps { image?: string title: string name: string - address?: string - phone?: string - email?: string + institution: string } -const Card: React.FC = ({ position, image, title, name, address, phone, email }) => { - const [showDetails, setShowDetails] = React.useState(false) - +const Card: React.FC = ({ position, image, title, name, institution }) => { // strip 'public/' from the avatar string since astro's public folder is available without this in the link const link = image?.replace("/public", "") return ( @@ -29,30 +25,11 @@ const Card: React.FC = ({ position, image, title, name, address, phon )}
-
- - {name} - -

{title}

-
- {showDetails ? ( -
- -
- {Boolean(phone) &&

{phone}

} - {Boolean(email) && ( - - {email} - - )} - {Boolean(address) &&

{address}

} -
-
- ) : ( - - )} + + {name} + +

{title}

+

{institution}

) diff --git a/src/components/CardContainer.astro b/src/components/CardContainer.astro index 866bf6b..6f85a1e 100644 --- a/src/components/CardContainer.astro +++ b/src/components/CardContainer.astro @@ -7,9 +7,7 @@ interface PersonProps { title: string name: string avatar?: string - email?: string - address?: string - phone?: string + institution: string } } --- @@ -27,9 +25,7 @@ interface PersonProps { title={person.data.title} name={person.data.name} image={person.data.avatar} - email={person.data.email} - phone={person.data.phone} - address={person.data.address} + institution={person.data.institution} /> ) diff --git a/src/components/CustomInput.tsx b/src/components/CustomInput.tsx index 7a31e08..895f037 100644 --- a/src/components/CustomInput.tsx +++ b/src/components/CustomInput.tsx @@ -7,14 +7,9 @@ interface CustomInputProps { export const CustomInput: React.FC = ({ label, placeholder }) => { return ( - <> - - +
+ + +
) } diff --git a/src/components/DownloadModal.tsx b/src/components/DownloadModal.tsx index 4b1c19d..2efc344 100644 --- a/src/components/DownloadModal.tsx +++ b/src/components/DownloadModal.tsx @@ -21,20 +21,25 @@ const DownloadModal = () => { onClick={() => setIsOpen(false)} /> - -
- - - Close - + +
+
+ + + Close + +
+ Download Data +

+ By downloading these data, you agree to the usage guidelines +

- Download Data -
+
- - - - + + + +