Skip to content

Commit 7e03d2c

Browse files
committed
Update 'featured' frontmatter property of core tags pages to 'true', update print stylings
1 parent c8f1df4 commit 7e03d2c

15 files changed

Lines changed: 369 additions & 115 deletions

File tree

‎.vscode/settings.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"mlflow",
7777
"Moodle",
7878
"moyai",
79+
"MTTA",
7980
"MTTD",
8081
"MTTR",
8182
"myapp",
@@ -92,6 +93,7 @@
9293
"oden",
9394
"oembed",
9495
"oklch",
96+
"oncall",
9597
"Onest",
9698
"optin",
9799
"PGRST",

‎_TODO.md‎

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,32 @@ A scrim is an elliptical gradient from translucent black (center) to transparent
167167

168168
To overlay an article title and published date on a cover image, use CSS positioning, specifically position: relative on the container and position: absolute on the text elements, combined with design techniques to ensure readability such as a semi-transparent overlay or text shadows.
169169

170+
## Stylings
171+
172+
- Add 'featured' to tags to filter, and move tags page to articles
173+
- Need to make tables responsive on mobile
174+
175+
## Reading position indicator
176+
177+
[Add scroll bar under header](https://css-tricks.com/reading-position-indicator/) to show how far down you are on the page while reading
178+
179+
## Print
180+
181+
- Need a workflow to generate PDF files from Markdown for downloads.
182+
- Add a QR code at the bottom of printed pages so it's easier for someone to navigate to from a printed page.
183+
- Need a layout alternative to Markup that formats for print. It needs to handle TOC differently as a full-width page. Need a fixed cover page format that adds article title, subtitle, and date.
184+
- We have two print scenarios: black and white, and color for PDF output. Can use two different media queries to accomplish getting colored variables.
185+
186+
[Paged.js](https://pagedjs.org/en/documentation/) polyfills `@page` properties, and lays out an HTML document in print format where it can have page numbers generated to update in a table of contents.
187+
188+
[This article](https://excessivelyadequate.com/posts/print.html) shows how to control the following properties in Chrome's Print Properties dialog box from CSS: Layout, Paper size, Margins, Headers and footers, and Background graphics. Headers and footers is the checkbox that by default is enabled and adds information on printed pages. It also shows how to use Chrome from the terminal in headless mode to output a PDF file from an HTML page.
189+
190+
This article has different approaches to [print pagination](https://www.customjs.space/blog/html-print-pagination-footer/). One approach overlaps with PagedJS's approach.
191+
192+
## Downloads Collection
193+
194+
Remove the `content/downloads` folder, and point the content collection to look for a `download.astro` file in the `contents/articles` folder. Exclude the `pdf.astro` file from the Articles collection.
195+
170196
## Image generation models
171197

172198
I think we want more human images, with less video-gamey graphics and more likeable human figures.
@@ -195,12 +221,4 @@ We have generated detailed outlines for each of the MDX proposed articles we hav
195221

196222
Act as a principal software engineer. Your goal is to write a detailed technical article based on the provided outline. Context: The target audience is Senior DevOps and infrastructure Engineers. The tone should be authoritative, professional, and concise, avoiding fluff or filler words. Think step-by-step before writing to improve the accuracy of technical explanations. Use a friendly first-person voice. Anything that reads like generic marketing copy is not what we want but we still want the effect of being "real" and approachable - try not to sound like technical documentation. We want to show empathy for our readers.
197223

198-
Let's work through each article section by section based on the H2 headers in the outline. If the section looks good as-is, I'll just type "ok" so you know to continue to the next section.
199-
200-
## Stylings
201-
202-
- [Link](url) [[color=pink target=_blank .centered]] is not picking up styles
203-
- Are we using breakpoints correctly - isn't iPhone wider than our `sm` breakpoint? (logical width of iphone 15 is logical width remains 393 or 430 points)
204-
- Add scroll bar under header to show how far down you are on the page while reading
205-
- Add 'featured' to tags
206-
- Need to make tables responsive on mobile
224+
Let's work through each article section by section based on the H2 headers in the outline. If the section looks good as-is, I'll just type "ok" so you know to continue to the next section. I'll give you the name of the next article when we finish one. The first is src/content/articles/alert-fatigue-reduction-triage-actionable-alerts/index.mdx

‎src/components/CallToAction/Contact/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const descriptionId = `${id}-description`
4848
---
4949

5050
<section
51-
class="py-16 md:py-24 bg-linear-to-br from-(--color-primary) to-(--color-accent) relative overflow-hidden"
51+
class="cta py-16 md:py-24 bg-linear-to-br from-(--color-primary) to-(--color-accent) relative overflow-hidden"
5252
aria-labelledby={titleId}
5353
aria-describedby={descriptionId}
5454
>

‎src/components/CallToAction/Download/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const downloadUrl = `/downloads/${normalizedResource}`
4545
---
4646

4747
<section
48-
class="py-16 md:py-24 bg-linear-to-br from-(--color-primary) to-(--color-accent) relative overflow-hidden"
48+
class="cta py-16 md:py-24 bg-linear-to-br from-(--color-primary) to-(--color-accent) relative overflow-hidden"
4949
aria-labelledby={titleId}
5050
aria-describedby={descriptionId}
5151
>

‎src/components/CallToAction/Newsletter/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const {
2929
} = Astro.props
3030
---
3131

32-
<newsletter-form class="block">
32+
<newsletter-form class="cta block">
3333
<section class="py-12 md:py-16 bg-page-base-offset">
3434
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
3535
<div class="max-w-4xl mx-auto">

0 commit comments

Comments
 (0)