Skip to content

Commit 2efe84b

Browse files
committed
Drop two utility classes and a duplicate helper
- .rounded-circle and .text-center were only used by the mentor and admin grid, which now styles its own avatars and text - feedErrorMessage() returned exactly what feedTitle() does for a failed feed
1 parent 44248ce commit 2efe84b

3 files changed

Lines changed: 7 additions & 16 deletions

File tree

‎src/components/gsoc/PeopleSection.astro‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ const { id, heading, intro, handles } = Astro.props;
1818
<p>{intro}</p>
1919
<div class="gsoc-people-grid">
2020
{handles.map((handle) => (
21-
<div class="text-center">
21+
<div>
2222
<img
23-
class="rounded-circle"
2423
src={`https://avatars.githubusercontent.com/${handle}?s=160`}
2524
alt=""
2625
height="80"

‎src/pages/universe-oa/index.astro‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ const feedTitle = (student: UniverseStudent) => {
5050
const label = feedLabel(student);
5151
return student.feedError ? `${label}: ${student.feedError}` : label;
5252
};
53-
54-
const feedErrorMessage = (student: UniverseStudent) =>
55-
student.feedError ? `Feed failed: ${student.feedError}` : "Feed failed";
5653
---
5754

5855
<PageLayout
@@ -124,9 +121,7 @@ const feedErrorMessage = (student: UniverseStudent) =>
124121
</span>
125122
</>
126123
) : student.feedStatus === "unavailable" ? (
127-
<span class="universe-feed-error">
128-
{feedErrorMessage(student)}
129-
</span>
124+
<span class="universe-feed-error">{feedTitle(student)}</span>
130125
) : (
131126
<span>No posts found</span>
132127
)}

‎src/styles/global.css‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -305,14 +305,6 @@ blockquote {
305305
color: var(--color-light);
306306
}
307307

308-
.rounded-circle {
309-
border-radius: 50%;
310-
}
311-
312-
.text-center {
313-
text-align: center;
314-
}
315-
316308
@media (max-width: 900px) {
317309
.site-header .container {
318310
justify-content: space-between;
@@ -494,10 +486,15 @@ blockquote {
494486
/* Wide columns and slightly smaller text keep an @handle on one line. */
495487
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
496488
font-size: 0.9rem;
489+
text-align: center;
497490
gap: 16px;
498491
margin-top: 16px;
499492
}
500493

494+
.gsoc-people-grid img {
495+
border-radius: 50%;
496+
}
497+
501498
/* Contributor blog (universe-oa) pages */
502499

503500
.universe-heading {

0 commit comments

Comments
 (0)