+ + Cookie Consent Management in 2026, Part 1: Overview + + +
+
+
+ + The threat of lawsuits has companies scrambling to get their cookie compliance house in order. Here are some of the things we've learned as we've helped our clients. +
+ +diff --git a/src/prototypes/no-cover/example/example.scss b/src/prototypes/no-cover/example/example.scss new file mode 100644 index 000000000..938b69da4 --- /dev/null +++ b/src/prototypes/no-cover/example/example.scss @@ -0,0 +1,73 @@ +@use '../../../compiled/tokens/scss/aspect-ratio'; +@use '../../../compiled/tokens/scss/breakpoint'; +@use '../../../compiled/tokens/scss/brightness'; +@use '../../../compiled/tokens/scss/color'; +@use '../../../compiled/tokens/scss/ease'; +@use '../../../compiled/tokens/scss/size'; +@use '../../../compiled/tokens/scss/transition'; +@use '../../../mixins/border-radius'; +@use '../../../mixins/fluid'; +@use '../../../mixins/focus'; +@use '../../../mixins/headings'; +@use '../../../mixins/media-query'; +@use '../../../mixins/ms'; +@use '../../../mixins/spacing'; +@use '../../../mixins/theme'; + +/// we won't need either of these defined when the prototype css is added to card.scss + +/// We add more space between the cover and text elements simply because it +/// feels better visually. +/// +/// @type Number +/// @access private + +$_cover-gap: ms.step(1, 1rem); + +/// We can't use `grid-gap` exclusively due to some containers only being +/// present some of the time, so we re-use this value to define the space +/// between chunks of content. +/// +/// @type Number +/// @access private + +$_content-gap: ms.step(-1, 1rem); + + +/** + * If there is no cover image, treat the header more like a cover image's + * container, with a matching aspect ratio and larger block end margin. +**/ + +.c-card:not(:has(.c-card__cover)) .c-card__header { + border-radius: size.$border-radius-medium; + gap: 0; + margin-block-end: $_cover-gap; + overflow: hidden; +} + +/** + * The heading is treated like a cover image. +**/ + +.c-card:not(:has(.c-card__cover)) .c-card__heading { + align-content: center; + aspect-ratio: aspect-ratio.$wide; + grid-area: cover; + padding: $_content-gap; +} + + +.c-card:not(:has(.c-card__cover)) .c-card__link { + transition: font-size transition.$prompt ease.$out; +} + +/** + * Matches the scale up on the cover image. Scale would be preferable for performance, + * however scaling either the heading or the link removes the effect of the entire + * card being a selectable target! +**/ + +.c-card:not(:has(.c-card__cover)):hover:not(:active) .c-card__link { + font-size: 1.025em; +} diff --git a/src/prototypes/no-cover/example/example.twig b/src/prototypes/no-cover/example/example.twig new file mode 100644 index 000000000..e1477b3b0 --- /dev/null +++ b/src/prototypes/no-cover/example/example.twig @@ -0,0 +1,869 @@ +
+
+ + The threat of lawsuits has companies scrambling to get their cookie compliance house in order. Here are some of the things we've learned as we've helped our clients. +
+ +
+
+ + I love writing about the rapid pace of change in web development, so why am I struggling to write about how AI is affecting my career? +
+ +
+
+ + Proposed changes to the web platform to support AI should also support users and assistive technology whenever possible. +
+ +
+
+ + Mat Marquis isn't known for pulling his punches. And yet, Marquis stopped short when he declared The End of Responsive Images. Mat left responsive images on the ropes. I hope to finish them. +
+ +
+
+ + Automating your code checks ensures every contribution meets standards, reduces the review burden, and increases confidence in AI-generated code. +
+ ++ As I’ve had more opportunities to work with cookie consent managers, I’ve come to the surprising realization that most of them (all of them?) fail to track if websites are in compliance with various privacy laws. +
+ +
+
+ + On my successful journey with GLP-1 and my fruitless search to find a similar solution for the bloated mess the web has become. +
+ +
+
+ + We’re actively seeking new UX design, UI design or hybrid creative/development challenges to solve. +
+ +
+
+ + As of Jan 1, the CCPA requires websites to confirm they are honoring Global Privacy Control (GPC) opt outs. Why are so many cookie banners complying with the new rule in ways certain to confuse users? +
+ +
+
+ + Testing cookies consent compliance proved more difficult than I expected. Here are some tips and tricks I learned while conducting a cookie compliance audit. +
+ +
+
+ + Video, links and code samples from my rapid prototyping talk for the final Eleventy Meetup. +
+ +