22import { getImage , Image } from " astro:assets" ;
33
44import Branding from " ../../components/Branding.astro" ;
5+ import Column from " ../../components/Column.astro" ;
56import ExternalLink from " ../../components/ExternalLink.astro" ;
67import Layout from " ../../layouts/Layout.astro" ;
78import Hero from " ../../components/Hero.astro" ;
89import ShadowBoxSection from " ../../components/ShadowBoxSection.astro" ;
9- import ThemedBox from " ../../components/ThemedBox .astro" ;
10+ import ThemedColumn from " ../../components/ThemedColumn .astro" ;
1011import ThemedSection from " ../../components/ThemedSection.astro" ;
1112
1213import heroBg from " ../../images/colored-hero/woman-using-laptop.png" ;
@@ -42,7 +43,7 @@ const crumbs = [];
4243 <div
4344 class =" d-flex flex-column flex-xl-row justify-content-xl-evenly align-items-center"
4445 >
45- <div class = " col col-xl-8 col- xxl- 9" >
46+ <Column xl = " 8 " xxl = " 9" >
4647 <p >
4748 Headings in a document exist to indicate structure. Your users will
4849 use headings to scan through your content and find the relevant
@@ -54,16 +55,16 @@ const crumbs = [];
5455 always increment one level. Never use a heading or subheading because
5556 it's sized correctly.
5657 </p >
57- </div >
58- <div class = " col col-lg-9 col-xl-3 col- xxl- 2" >
58+ </Column >
59+ <Column lg = " 9 " xl = " 3 " xxl = " 2" >
5960 <h4
6061 class =" display-5 text-center text-primary py-3 border-primary-subtle border-top border-bottom"
6162 >
6263 Headings are for <strong >organization</strong >, not <strong
6364 >size</strong
6465 >.
6566 </h4 >
66- </div >
67+ </Column >
6768 </div >
6869 </ThemedSection >
6970
@@ -72,28 +73,31 @@ const crumbs = [];
7273 <div
7374 class =" d-flex flex-column flex-lg-row gap-4 py-3 justify-content-lg-evenly"
7475 >
75- <div class =" p-4 col col-lg-3 " >
76+ <Column lg = " 3 " class =" p-4" >
7677 <p class =" text-center fs-3 bad-contrast" >
7778 This text is <strong >low contrast</strong > on this background.
7879 </p >
79- </div >
80- <ThemedBox border ={ 1 } class =" col col-lg-3 p-3 shadow rounded" >
80+ </Column >
81+ <ThemedColumn
82+ lg =" 3"
83+ border ={ 1 }
84+ class =" p-3 shadow rounded" >
8185 <p class =" text-center fs-5" >
8286 <Image class =" green-on-red" src ={ greenOnRed } alt =" " />
8387 and <span class =" red-on-green py-1 px-2" >Red</span > is the
8488 <strong >most common</strong > combination of color blindness.
8589 </p >
86- </ThemedBox >
87- <div
88- class = " col col-lg-3 p-3 shadow rounded no-bg-color "
89- style = { ` background-image: url(${ fixBgNoColor . src }); ` }
90+ </ThemedColumn >
91+ <Column
92+ lg = " 3 "
93+ class = " p-3 shadow rounded no-bg-color bg-example "
9094 >
9195 <p class =" text-center text-light fs-4" >
9296 Always specify a <code >background-color</code >, even when an image is
9397 used.
9498 </p >
9599 </div >
96- </div >
100+ </Column >
97101 </ThemedSection >
98102
99103 <ShadowBoxSection theme =" info" style =" secondary" >
@@ -108,7 +112,7 @@ const crumbs = [];
108112 > and the correct <code >for</code > attribute or ARIA description.
109113 </p >
110114 <div class =" d-flex flex-column flex-xl-row justify-content-xl-evenly p-4" >
111- <div class = " col col-xl-5 pb-4" >
115+ <Column xl = " 5 " class = " pb-4" >
112116 <h3 class =" display-5"
113117 ><strong >Associate</strong > the fields and text.</h3
114118 >
@@ -150,9 +154,9 @@ const crumbs = [];
150154 <input class =" form-control" type =" file" />
151155 <p class =" form-text px-2" >... also need descriptions and labels.</p >
152156 </div >
153- </div >
157+ </Column >
154158
155- <div class = " col col-xl- 5" >
159+ <Column xl = " 5" >
156160 <h3 class =" display-5"
157161 >Choose the right <strong >field type</strong >.</h3
158162 >
@@ -237,7 +241,7 @@ const crumbs = [];
237241 will read the password to anyone who can hear it.
238242 </p >
239243 </div >
240- </div >
244+ </Column >
241245 </div >
242246 </div >
243247 </ShadowBoxSection >
@@ -250,14 +254,14 @@ const crumbs = [];
250254 <div
251255 class =" d-flex flex-column flex-lg-row justify-content-lg-around align-items-center"
252256 >
253- <div class = " col col-lg-4 col- xxl- 3" >
257+ <Column lg = " 4 " xxl = " 3" >
254258 <p class =" fs-5 text-center text-primary py-3" >
255259 Make sure you properly describe your link content. None of these do
256260 this well.
257261 </p >
258- </div >
262+ </Column >
259263
260- <div class = " col col-xl-5 col- xxl- 4" >
264+ <Column xl = " 5 " xxl = " 4" >
261265 <ul style =" --bs-gutter-x: 6rem;" >
262266 <li >
263267 Read more at <a href =" https://accessiblecommunity.org"
@@ -277,7 +281,7 @@ const crumbs = [];
277281 <ExternalLink href =" https://accessiblecommunity.org" />
278282 </li >
279283 </ul >
280- </div >
284+ </Column >
281285 </div >
282286 </ThemedSection >
283287</Layout >
@@ -305,6 +309,10 @@ const crumbs = [];
305309 align-content: center;
306310 }
307311
312+ .bg-example {
313+ background-image: url(${fixBgNoColor.src});
314+ }
315+
308316 @include color-mode(dark) {
309317 .bad-contrast {
310318 color: var(--bs-dark);
0 commit comments