Skip to content

Commit 0715fc0

Browse files
ultimatecoderJaysinh Shuklaclaude
authored
Use the new portrait on About and crop it to a circle (#112)
The About photo was a 960x540 landscape selfie, so it read as a snapshot rather than an author portrait. Replace it with a square studio shot (400x400, 17 KB) and render it as a circle. Markdown images take no class, so the image is now an <img> tag with a .profile-photo class. The repo had no stylesheet of its own — the theme supplied /assets/main.css — so add assets/main.scss that imports minima and appends the one rule. object-fit: cover keeps the face centred if a future photo is not square. Co-authored-by: Jaysinh Shukla <jaysinhshukla@Jaysinhs-MacBook-Pro-2.local> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 5c750da commit 0715fc0

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

about.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ title: About
44
permalink: /about/
55
---
66

7-
![my_image]({{ site.url}}{{ site.baseurl }}/assets/images/my_profile_picture.jpg)
7+
<img class="profile-photo" src="{{ site.url }}{{ site.baseurl }}/assets/images/my_profile_picture.jpg" alt="Jaysinh Shukla">
8+
89

910

1011
I am **Jaysinh Shukla**, a Software Engineer at Amazon. For more than ten years I have
-58.3 KB
Loading

assets/main.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
# Only the main Sass file needs front matter (the dashes are enough)
3+
---
4+
5+
@import "minima";
6+
7+
// The About page portrait. `cover` keeps the face centred whatever aspect
8+
// ratio the source photo has, so the circle never squashes it.
9+
.profile-photo {
10+
display: block;
11+
margin: 0 auto $spacing-unit;
12+
width: 200px;
13+
height: 200px;
14+
border-radius: 50%;
15+
object-fit: cover;
16+
}

0 commit comments

Comments
 (0)