Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix volunteer opportunites component #135

Merged
merged 4 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/Photo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { StaticImport } from "next/dist/shared/lib/get-img-props";

type photoProps = {
image: StaticImport;
width: string;
width?: string;
alt: string;
};

const Photo = ({ image, alt, width }: photoProps) => {
const Photo = ({ image, alt, width = "" }: photoProps) => {
return (
<div className={`relative ${width} flex`}>
<Image
Expand Down
3 changes: 1 addition & 2 deletions src/components/home/VolunteerOpportunities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ const VolunteerOpportunities = () => {
free to show up! We'd love all the help we can get!
</p>
<div className="flex w-full flex-row py-2 sm:py-10">
<div className="hidden items-center justify-center sm:flex">
<div className="hidden justify-center sm:flex md:mx-8 md:mt-24 md:h-full md:w-3/5 lg:my-10 lg:w-full">
<Photo
image={VolunteerPhoto}
width={"w-1/2 lg: w-3/4"}
alt="Backside head of girl watching boxing ring fight"
/>
</div>
Expand Down
Loading