Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
feat: responsive spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
hetd54 committed May 29, 2024
1 parent 5dac44a commit c79055e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface CardProps {
const Card: React.FC<CardProps> = ({ position, image, title, name, address, phone, email }) => {
return (
<div
className={` flex flex-row items-center ${
className={`flex flex-row items-center ${
position % 2 ? "md:flex-row-reverse md:text-right" : ""
}`}
>
Expand Down
4 changes: 2 additions & 2 deletions src/components/CardContainer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ interface PersonProps {
}
---

<div class="flex flex-row items-start space-x-12">
<div class="flex flex-row items-start space-x-12 lg:px-24 xl:px-48">
<h2 class={`${color} [writing-mode:vertical-lr] rotate-180`}>{title}</h2>
<div class="flex flex-col space-y-20">
<div class="flex flex-col space-y-20 flex-1">
{
people.map((person: PersonProps, i: number) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/people.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const support = people.filter((person) => person.data.type === "Supporting Staff
---

<Layout title="Staff" description="Our Leadership, Advisors, and Staff">
<div class="flex flex-col items-center space-y-28">
<div class="flex flex-col space-y-28">
<CardContainer title="Leadership" color="text-secondary-blue-500" people={leadership} />
<CardContainer title="Advisors" color="text-primary-500" people={advisors} />
<CardContainer title="Supporting Staff" color="text-secondary-brown-500" people={support} />
Expand Down

0 comments on commit c79055e

Please sign in to comment.