fixed image stretching

This commit is contained in:
Noah Swerhun 2024-03-30 16:49:17 -05:00
parent 3ce47832a3
commit 1bc0731b7e

View file

@ -3,8 +3,8 @@ import Section from "../components/Section.astro";
import BodyText from "../components/BodyText.astro";
import SecHeading from "../components/SecHeading.astro";
import { Image } from 'astro:assets';
import portrait from "../../public/assets/portrait.jpg"
import { Image } from "astro:assets";
import portrait from "../../public/assets/portrait.jpg";
const { ...rest } = Astro.props;
---
@ -14,21 +14,21 @@ const { ...rest } = Astro.props;
<div class="basis-1/2 my-7">
<SecHeading>PROFILE</SecHeading>
<BodyText>
Noah Swerhun is a mathematics student at the University of Chicago.
He was a National Merit Scholar Commended Student in 2023. In 2022,
he earned his Eagle Scout rank after leading and coordinating a 200+
Noah Swerhun is a mathematics student at the University of Chicago. He
was a National Merit Scholar Commended Student in 2023. In 2022, he
earned his Eagle Scout rank after leading and coordinating a 200+
man-hour service project to give bicycles to people in need.
</BodyText>
<BodyText>
Noah is studying for a career in finance. For two summers, Noah
worked as an intern analyst at a private equity firm in Chicago.
Going forward, he wants to use his mathematics skills for a job in
quantitative trading.
Noah is studying for a career in finance. For two summers, Noah worked
as an intern analyst at a private equity firm in Chicago. Going forward,
he wants to use his mathematics skills for a job in quantitative
trading.
</BodyText>
<BodyText>
Outside of work and school, Noah enjoys reading and programming. His
preferred genre of literature is the philosophical novel; among his
favorites are Dostoevsky's <em>The Idiot</em> and di Lampedusa's
favorites are Dostoevsky's <em>The Idiot</em> and di Lampedusa's
<em>The Leopard.</em>
</BodyText>
</div>
@ -36,7 +36,7 @@ const { ...rest } = Astro.props;
<Image
src={portrait}
alt="Portrait of Noah"
class="rounded-lg max-h-96 md:max-h-none"
class="rounded-lg object-contain w-auto h-auto max-h-96 md:max-h-none"
/>
</div>
</div>