Skip to content

Commit fe0dbbb

Browse files
authored
Merge pull request #1788 from benbalter/copilot/improve-visual-flow-about-page-ipad
Improve visual flow of about page on iPad
2 parents c78199f + 8217554 commit fe0dbbb

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

src/pages/about.astro

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,17 @@ const popularPostItems: PostItem[] = popularPostSlugs
3838

3939
<PageLayout title={title} description={description}>
4040
<div>
41-
<div class="float-right ml-6 mb-4 max-w-[200px] md:max-w-[250px]">
42-
<a href={`${siteConfig.githubRepoUrl}/raw/master/assets/img/headshot.jpg`}>
43-
<Image src={headshotImage} alt={`${siteConfig.author} headshot`} width={250} height={250} layout="fixed" class="w-full rounded" />
44-
</a>
45-
</div>
41+
<div class="md:flex md:items-start md:gap-6">
42+
<div class="float-right ml-6 mb-4 max-w-[200px] md:float-none md:ml-0 md:mb-0 md:max-w-none md:shrink-0 md:w-[250px] md:order-last">
43+
<a href={`${siteConfig.githubRepoUrl}/raw/main/assets/img/headshot.jpg`}>
44+
<Image src={headshotImage} alt={`${siteConfig.author} headshot`} width={250} height={250} layout="fixed" class="w-full rounded" />
45+
</a>
46+
</div>
4647

47-
<p class="text-lg leading-relaxed" set:html={lede}></p>
48+
<div class="md:min-w-0">
49+
<p class="text-lg leading-relaxed" set:html={lede}></p>
4850

49-
<aside aria-label="At a glance" class="clear-both not-prose my-4 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800/50 px-5 py-4">
51+
<aside aria-label="At a glance" class="clear-both not-prose my-4 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800/50 px-5 py-4">
5052
<p class="text-xs font-semibold uppercase tracking-wide text-gray-700 dark:text-gray-400 mb-3">At a Glance</p>
5153
<dl class="grid grid-cols-1 sm:grid-cols-3 gap-x-6 gap-y-3 text-sm m-0">
5254
<div>
@@ -66,6 +68,8 @@ const popularPostItems: PostItem[] = popularPostSlugs
6668
<a href="/resume/" class="text-primary dark:text-primary-300 hover:underline">Full resume →</a>
6769
</div>
6870
</aside>
71+
</div>
72+
</div>
6973
</div>
7074

7175
<h2 class="clear-both">At GitHub</h2>

0 commit comments

Comments
 (0)