Skip to content

Commit eb249c6

Browse files
aclark4lifeCopilot
andcommitted
Address more Copilot review feedback
- aria-hidden the decorative showcase square icons (Django, Wagtail, Home Assistant, Matplotlib) and add a space before their labels - Respect prefers-reduced-motion by disabling smooth scrolling - Point the canonical link and README at python-pillow.org now that it's the custom domain, keeping github.io mentioned as an alias Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 634f0d6 commit eb249c6

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Pillow Website
22
==============
33

4-
This website is hosted at `python-pillow.github.io <https://python-pillow.github.io/>`_.
4+
This website is hosted at `python-pillow.org <https://python-pillow.org/>`_
5+
(also reachable at `python-pillow.github.io <https://python-pillow.github.io/>`_).
56

67
It's a static site — plain HTML, CSS, and a touch of vanilla JS, with no build
78
step or framework. GitHub Pages serves it directly from the ``main`` branch.

assets/css/pillow.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ html {
3535
scroll-behavior: smooth;
3636
}
3737

38+
@media (prefers-reduced-motion: reduce) {
39+
html {
40+
scroll-behavior: auto;
41+
}
42+
}
43+
3844
body {
3945
margin: 0;
4046
font-family: "Inter", "Segoe UI", system-ui, sans-serif;

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<title>Python Pillow</title>
2222

2323
<link rel="icon" type="image/x-icon" href="assets/images/pillow.ico">
24-
<link rel="canonical" href="https://python-pillow.github.io/">
24+
<link rel="canonical" href="https://python-pillow.org/">
2525
</head>
2626
<body>
2727
<header id="top" class="site-header">
@@ -166,31 +166,31 @@ <h2>Powering the Python ecosystem</h2>
166166
</div>
167167
<div class="case-grid">
168168
<div class="case-item">
169-
<h3><i class="fas fa-square"></i>Django</h3>
169+
<h3><i class="fas fa-square" aria-hidden="true"></i> Django</h3>
170170
<p>
171171
The <a target="_blank" rel="noopener noreferrer" href="https://www.djangoproject.com/">Django</a> web
172172
framework uses Pillow to validate and introspect uploaded images for its
173173
built-in <code>ImageField</code>.
174174
</p>
175175
</div>
176176
<div class="case-item">
177-
<h3><i class="fas fa-square"></i>Wagtail</h3>
177+
<h3><i class="fas fa-square" aria-hidden="true"></i> Wagtail</h3>
178178
<p>
179179
<a target="_blank" rel="noopener noreferrer" href="https://wagtail.org/">Wagtail</a>, the popular
180180
Django-based CMS, depends on Pillow to generate the image renditions and
181181
thumbnails used throughout its admin and templates.
182182
</p>
183183
</div>
184184
<div class="case-item">
185-
<h3><i class="fas fa-square"></i>Home Assistant</h3>
185+
<h3><i class="fas fa-square" aria-hidden="true"></i> Home Assistant</h3>
186186
<p>
187187
<a target="_blank" rel="noopener noreferrer" href="https://www.home-assistant.io/">Home Assistant</a>
188188
uses Pillow to process camera snapshots and generate thumbnails across its
189189
smart home integrations.
190190
</p>
191191
</div>
192192
<div class="case-item">
193-
<h3><i class="fas fa-square"></i>Matplotlib</h3>
193+
<h3><i class="fas fa-square" aria-hidden="true"></i> Matplotlib</h3>
194194
<p>
195195
<a target="_blank" rel="noopener noreferrer" href="https://matplotlib.org/">Matplotlib</a>, the widely
196196
used plotting library, uses Pillow to read and write image formats such as

0 commit comments

Comments
 (0)