Skip to content

Commit d0b183d

Browse files
committed
roll back
1 parent c87e458 commit d0b183d

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

blocks/featured-articles/featured-articles.css

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
main .featured-article-container {
44
display: flex;
55
flex-direction: column; /* Stack articles vertically */
6-
gap: 1rem; /* Reduce spacing between articles */
6+
gap: 2rem; /* Add spacing between articles */
77
justify-content: center;
88
}
99

@@ -18,7 +18,7 @@ main .featured-article-card {
1818
main .featured-article-card {
1919
flex-direction: row; /* Default: image on the left, text on the right */
2020
align-items: center;
21-
margin-top: 20px; /* Reduce top margin */
21+
margin-top: 40px;
2222
width: 100%;
2323
}
2424

@@ -88,20 +88,6 @@ main p.featured-article-card-date {
8888
margin-bottom: 0.5rem;
8989
}
9090

91-
/* Double the size of the "Tags" and move it above the image */
92-
main .featured-article-card-tags {
93-
font-size: 2rem; /* Double the size */
94-
font-weight: bold;
95-
margin-bottom: 1rem; /* Add spacing below the tags */
96-
text-align: center;
97-
}
98-
99-
@media (min-width: 600px) {
100-
main .featured-article-card-tags {
101-
text-align: left; /* Align left on larger screens */
102-
}
103-
}
104-
10591
main .featured-article-card-body h3 {
10692
font-size: var(--heading-font-size-m);
10793
line-height: var(--heading-line-height);

blocks/featured-articles/featured-articles.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ async function decorateFeaturedArticles(featuredArticlesEl, articlePaths, eager
1515
const article = await getBlogArticle(articlePath);
1616
if (article) {
1717
const card = buildArticleCard(article, 'featured-article', eager);
18-
19-
// Add a "Tags" element above the image
20-
const tags = document.createElement('p');
21-
tags.classList.add('featured-article-card-tags');
22-
tags.textContent = article.tags ? article.tags.join(', ') : 'Tags';
23-
card.prepend(tags); // Add the tags above the image
24-
2518
card.classList.add('featured-article-card'); // Ensure the card has the correct class
2619
featuredArticlesEl.append(card);
2720
} else {

0 commit comments

Comments
 (0)