Martin Prado (@pirateuy) header
Martin Prado (@pirateuy) profile picture

Trailblazer community group leader, Salesforce consultant and front end ninja 🎩

Uruguay
Joined July 2011
Photo by Martin Prado (@pirateuy)Photo by Martin Prado (@pirateuy)Photo by Martin Prado (@pirateuy)Photo by Martin Prado (@pirateuy)Photo by Martin Prado (@pirateuy)Photo by Martin Prado (@pirateuy)Photo by Martin Prado (@pirateuy)Photo by Martin Prado (@pirateuy)Photo by Martin Prado (@pirateuy)Photo by Martin Prado (@pirateuy)
Martin Prado retweeted
Dude.
Amazon's internal AI coding tool, called Kiro, caused a 13-hour outage in part of AWS in December 2025. The AI decided the best way to fix a problem was to delete and rebuild the entire environment it was working on. Reports say this was at least the second time Amazon's AI coding tools have caused a production outage recently.
17
178
7
2,060
354,649
To replace programmers with Al, clients will have to accurately describe what they want. Soooo….we're safe.
1
181
CSS Trick! 🫶 You can make use of calc and custom properties to create that dynamic colored glowy spotlight effect 🎨 [data-glow] { --hue: calc(var(--base) + (var(--xp) * var(--spread))); } Let me show you how! 👇 Few tricks and tips in this video/demo. In addition to using mask-composite and background-attachment: fixed, passing both the pointer position and its position along an axis allows you to make the spotlight color dynamic 🔥 Setting --x and --xp inside a single JavaScript pointermove event listener allows you to play with pointer position in your CSS ✨ --xp = 0-1 along the x-axis (x / window.innerWidth) --x = pointerX --base = starting hue 0-359 --spread = variation in hue that's calculated with --xp Hopefully, this video breaks things down a little for you and clears things up 🤞 If not, leave me some questions 💙 Created a reduced demo that doesn't have all the configuration stuff. Find the @CodePen link for that below! 👇
UI && CSS Tip! 🔥 You can create these dynamic glowing card effects with a single JavaScript event listener, some CSS tricks, and an HTML attribute 🤙 <article data-glow /> Here's how! 👇 You can use a combination of tricks from previous posts. Let's start with the JavaScript 📜 Use a function like this to send the pointer position via custom properties to the glows ✨ Attach this to the pointermove event 👆 const onPointermove = ({ x, y }) => { document​.documentElemen​t​.style.setProperty('--x', x) document.documentElement​.style.setProperty('--xp', x / innerWidth) document.documentElement​.style.setProperty('--y', y) document.documentElement​.style.setProperty('--yp', y / innerHeight) } Now for the styles 🎨 These custom properties define the border and spotlight size. The first trick is how you can change the color(--hue) based on the pointer position with calc 😎 [data-glow] { --border-size: 2px; --spotlight-size: 150px; --hue: calc(var(--base) + (var(--xp) * var(--spread))); } The magic is using the pointer position in a radial-gradient combined with background-attachment: fixed ✨ (Check the video for an exploding view 🎞️) [data-glow] { background-image: radial-gradient( var(--spotlight-size) var(--spotlight-size) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px), hsl(var(--hue) 100% 70% / 0.25), transparent ); background-attachment: fixed; } The last major piece is using mask-composite on the pseudoelements of the [data-glow] element and the same background-attachment: fixed trick 🫶 [data-glow]::before, [data-glow]::after { pointer-events: none; content: ""; position: absolute; inset: calc(var(--border-size) * -1); border: var(--border-size) solid transparent; background-attachment: fixed; background-size: calc(100% + (2 * var(--border-size))); background-position: 50% 50%; mask: linear-gradient(transparent, transparent), linear-gradient(white, white); mask-clip: padding-box, border-box; mask-composite: intersect; } This masks the elements so only a fake border is shown. That border is actually the spotlight background that moves around 👀 But now it's clipped to the border width 😎 Then it's a case of switching out the background-image for each pseudoelement based on purpose 🧐 For example, to get the white light, use your custom properties, make the light a little smaller and the color bright! [data-glow]::after { background-image: radial-gradient( calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px), hsl(0 100% 100% / 1), transparent ); } These are the major pieces you need to get it done. Extras? Want the outer glow? Nest a glow! <article data-glow> <span data-glow /> </article> Give the inner glow a blur to create the outer glow 😅 [data-glow] > [data-glow] { filter: blur(10px); } It's worth digging in with this one. Have a play around with the demo and the custom properties. The code isn't perfect after introducing all the configuration pieces 😅 Will put together a reduced example for you! 🙏 Any questions, let me know! 💙 @CodePen link below! 👇
14
158
6
1,233
158,207
🦾 At Salesforce, we’re on a path to realize the potential of generative AI for our customers. This inflection point has caused us to re-evaluate how we connect with you, our community! Learn about some of our new methods and #IdeaExchange updates. ⬇️ sforce.co/3PYXVFm
1
6
1,263
All these pages were recommended to me by my benefactor(@gonchuki) almost 2 decades ago 😘
Do you remember the CSS Gallery, which showcased the best web sites created with CSS? Which one was your favorite? – CSS Zen Garden – Cssbeauty – CSS Mania – The CSS Awards ...or some other? #WebDesignHistory
3
534
Martin Prado retweeted
It was a warm (maybe) early spring US afternoon 24 years ago today when the science-fiction blockbuster #TheMatrix was released. We're adding one more milestone to March 31st: the release date of our #newweb and our brand new look. Browse around! zimmic.com
1
96
Martin Prado retweeted
We're grateful to be here with the #TrailblazerCommunity for #DF22. Stop by the tree of gratitude and tell us what you're grateful for. Drop your note of gratitude below and we'll add it to the tree. 🌲
42
22
2
123
Gran epitafio.
6
137
10
868
Since version 5.5 he was my nemesis in CSS, a respectable rival, rest in peace teacher!
2
Thank you @scottyFromSF & team for diving into the feedback process for the IdeaExchange 💡& Known Issues! @supilowski__c @Rabedela @Joy_SH @itsjustChris_H @DeniseCarbone4 @mcuellar #Trailblazercommunity
One day we will realize how important the oceans are! Every action counts 🌊🌿
Replying to @zimmic
The fight against ocean pollution isn’t over, we still have a long way to go. Every step counts, each piece of litter you pick up makes a difference! #ZimmicSmallActionsBigChanges #WorldOceanDay #WorldOceansDay #OnlyOneEarth #TeamEarth
2
I just participated in @Salesforce IdeaExchange Prioritization by voting on my favorite ideas. You can #shapeSalesforceProducts too at ideas.salesforce.com/s/prior… by 11 PM PDT on June 6, 2022
1
Lightning ⚡️ local development still in beta, but it also speeds up the construction of components 🌊♥️⚡️
2
Martin Prado retweeted
Last few hours to prioritize for Winter '23+. Apply those 🪙🪙🪙 before 11pm PT. ideas.salesforce.com/s/prior…
4
9
same on Vue 3 🌚🌊
Here I’m doing Angular 5...
2
So proud of the team for launching the new IdeaExchange -- a huge leap forward in making it easier to innovate and add value for our #trailblazercommunity!
We love collaborating with the Trailblazer Community on the IdeaExchange. Now with seamless searching, posting, and commenting, connecting with Salesforce product managers has never been easier! Learn more: sforce.co/3oO8CNn
5
12