Skip to content

Commit 97dc827

Browse files
committed
Update inlined SVGs to use Icon component
1 parent 1205ba6 commit 97dc827

28 files changed

Lines changed: 159 additions & 421 deletions

File tree

‎.cache/pages.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"consent",
9090
"contact",
9191
{
92-
"deepDives": [
92+
"deep-dive": [
9393
"alert-fatigue-reduction-triage-actionable-alerts/pdf",
9494
"api-deprecation-sunset-headers-consumer-migration/pdf",
9595
"api-gateway-metrics-traces-logs-debugging/pdf",

‎_TODO.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,3 +315,5 @@ We can add a path like `/articles/pdf` or `/articles/deep-dive` for the long-for
315315
- Color headings blue and use the SVG icon instead of the image. Color if the blue shade.
316316

317317
- Social shares - module CSS doesn't appear correct with nested button hover classes, not sure how network name is generated or styled but it needs improvement. Should be rendered inside article content column, not across both content and TOC columns.
318+
319+
- Add a Social Share on some compelling text in each article

‎src/assets/images/site/hamburgerMenu.svg‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎src/assets/images/site/moon.svg‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎src/assets/images/site/sun.svg‎

Lines changed: 0 additions & 114 deletions
This file was deleted.

‎src/components/Breadcrumbs/index.astro‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Icon from '@components/Icon/index.astro'
23
import { generateBreadcrumbs } from '@components/Breadcrumbs/server'
34
45
export interface Props {
@@ -42,19 +43,12 @@ const breadcrumbSchema =
4243
{breadcrumbs.map((item, index) => (
4344
<li class="flex items-center">
4445
{index > 0 && (
45-
<svg
46-
class="w-4 h-4 mx-2 opacity-60 fill-none stroke-primary-offset"
47-
viewBox="0 0 24 24"
48-
aria-hidden="true"
49-
focusable="false"
50-
>
51-
<path
52-
stroke-linecap="round"
53-
stroke-linejoin="round"
54-
stroke-width="2"
55-
d="M9 5l7 7-7 7"
56-
/>
57-
</svg>
46+
<Icon
47+
icon="arrow-right"
48+
size={4}
49+
color="primary-offset"
50+
classes="mx-2 opacity-60"
51+
/>
5852
)}
5953

6054
{item.isCurrentPage ? (

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* />
1616
* ```
1717
*/
18+
import Icon from '@components/Icon/index.astro'
1819
1920
export interface Props {
2021
/** Optional base id for internal aria relationships */
@@ -91,20 +92,7 @@ const descriptionId = `${id}-description`
9192
class="inline-flex items-center justify-center p-4 bg-white text-primary font-semibold rounded-xl hover:bg-white/90 transition-all duration-200 hover:shadow-xl hover:-translate-y-0.5 text-center no-underline"
9293
>
9394
{primaryLink.text}
94-
<svg
95-
class="w-5 h-5 ml-2"
96-
fill="none"
97-
stroke="currentColor"
98-
viewBox="0 0 24 24"
99-
aria-hidden="true"
100-
focusable="false"
101-
>
102-
<path
103-
stroke-linecap="round"
104-
stroke-linejoin="round"
105-
stroke-width="2"
106-
d="M13 7l5 5m0 0l-5 5m5-5H6"></path>
107-
</svg>
95+
<Icon icon="exit-right-thin" size={5} color="primary" />
10896
</a>
10997
{
11098
secondaryLink && (

‎src/components/CallToAction/Newsletter/layouts/home.astro‎

Lines changed: 7 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const {
1717
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
1818
<div class="relative overflow-hidden bg-page-offset border border-trim rounded-2xl shadow-lg group">
1919
<div class="absolute inset-0 opacity-5 pointer-events-none">
20+
{/** SVG inlined, provides background pattern for component */}
2021
<svg class="w-full h-full" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
2122
<defs>
2223
<pattern id="grid-pattern" width="40" height="40" patternUnits="userSpaceOnUse">
@@ -48,14 +49,7 @@ const {
4849
<div class="absolute left-0 top-0 bottom-0 w-1 bg-white/20"></div>
4950

5051
<div class="text-page-base flex flex-col items-center gap-2">
51-
<svg class="w-10 h-10" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
52-
<path
53-
stroke-linecap="round"
54-
stroke-linejoin="round"
55-
stroke-width="1.5"
56-
d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
57-
></path>
58-
</svg>
52+
<Icon icon="document" size={10} color="page-base" />
5953
<span
6054
class="text-[10px] font-bold uppercase tracking-widest rotate-180 writing-vertical-lr opacity-80 backdrop-blur-sm"
6155
>
@@ -83,71 +77,19 @@ const {
8377

8478
<ul class="grid grid-cols-1 sm:grid-cols-2 gap-3 text-sm font-medium text-content-offset">
8579
<li class="flex items-start gap-2">
86-
<svg
87-
class="w-5 h-5 text-success shrink-0 mt-0.5"
88-
fill="none"
89-
stroke="currentColor"
90-
viewBox="0 0 24 24"
91-
aria-hidden="true"
92-
>
93-
<path
94-
stroke-linecap="round"
95-
stroke-linejoin="round"
96-
stroke-width="2"
97-
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
98-
></path>
99-
</svg>
80+
<Icon icon="check-circled-open" size={5} color="success" classes="mt-0.5" />
10081
<span>Incident analysis</span>
10182
</li>
10283
<li class="flex items-start gap-2">
103-
<svg
104-
class="w-5 h-5 text-success shrink-0 mt-0.5"
105-
fill="none"
106-
stroke="currentColor"
107-
viewBox="0 0 24 24"
108-
aria-hidden="true"
109-
>
110-
<path
111-
stroke-linecap="round"
112-
stroke-linejoin="round"
113-
stroke-width="2"
114-
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
115-
></path>
116-
</svg>
84+
<Icon icon="check-circled-open" size={5} color="success" classes="mt-0.5" />
11785
<span>Scaling strategies</span>
11886
</li>
11987
<li class="flex items-start gap-2">
120-
<svg
121-
class="w-5 h-5 text-success shrink-0 mt-0.5"
122-
fill="none"
123-
stroke="currentColor"
124-
viewBox="0 0 24 24"
125-
aria-hidden="true"
126-
>
127-
<path
128-
stroke-linecap="round"
129-
stroke-linejoin="round"
130-
stroke-width="2"
131-
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
132-
></path>
133-
</svg>
88+
<Icon icon="check-circled-open" size={5} color="success" classes="mt-0.5" />
13489
<span>Tool evaluations</span>
13590
</li>
13691
<li class="flex items-start gap-2">
137-
<svg
138-
class="w-5 h-5 text-success shrink-0 mt-0.5"
139-
fill="none"
140-
stroke="currentColor"
141-
viewBox="0 0 24 24"
142-
aria-hidden="true"
143-
>
144-
<path
145-
stroke-linecap="round"
146-
stroke-linejoin="round"
147-
stroke-width="2"
148-
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
149-
></path>
150-
</svg>
92+
<Icon icon="check-circled-open" size={5} color="success" classes="mt-0.5" />
15193
<span>Architecture reviews</span>
15294
</li>
15395
</ul>
@@ -164,20 +106,7 @@ const {
164106
<span
165107
class="relative inline-flex rounded-full h-6 w-6 bg-spotlight items-center justify-center"
166108
>
167-
<svg
168-
class="w-3 h-3 text-page-base"
169-
fill="none"
170-
stroke="currentColor"
171-
viewBox="0 0 24 24"
172-
aria-hidden="true"
173-
>
174-
<path
175-
stroke-linecap="round"
176-
stroke-linejoin="round"
177-
stroke-width="2"
178-
d="M12 4v16m8-8H4"
179-
></path>
180-
</svg>
109+
<Icon icon="plus" size={3} color="page-base" />
181110
</span>
182111
</span>
183112
</div>

‎src/components/Carousel/index.astro‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,17 +203,11 @@ const carouselId = `carousel-${type}-${variant}-${currentSlug ?? 'all'}`
203203
class="relative inline-flex items-center px-6 py-3 bg-content-active text-content-inverse font-semibold rounded-lg hover:bg-content no-underline hover:no-underline transition-all duration-200 focus-visible:outline-none after:pointer-events-none after:absolute after:content-[''] after:inset-0 after:rounded-none after:border-2 after:border-transparent focus-visible:after:-inset-0.5 focus-visible:after:border-spotlight"
204204
>
205205
Read More Articles
206-
<svg
207-
class="ml-2 w-4 h-4"
208-
fill="none"
209-
stroke="currentColor"
210-
viewBox="0 0 24 24"
211-
aria-hidden="true"
212-
focusable="false"
213-
>
214-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"
215-
></path>
216-
</svg>
206+
<Icon
207+
icon="arrow-right"
208+
size={4}
209+
classes="ml-2"
210+
/>
217211
</a>
218212
</span>
219213
) : (

‎src/components/Code/CodeTabs/index.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const iconBankId = 'code-tabs-icon-bank'
1010
---
1111

1212
<div id={iconBankId} hidden aria-hidden="true">
13-
<span data-code-tabs-icon="copy"><Icon icon="copy" size={5} color="inherit" isListMarker={false} /></span>
14-
<span data-code-tabs-icon="check"><Icon icon="check" size={5} color="inherit" isListMarker={false} /></span>
13+
<span data-code-tabs-icon="copy"><Icon icon="copy" size={5} color="inherit" /></span>
14+
<span data-code-tabs-icon="check"><Icon icon="check" size={5} color="inherit" /></span>
1515
</div>
1616

1717
<script>

0 commit comments

Comments
 (0)