Advertisement Β· 728 Γ— 90

Posts by Devin Lane

Video

One of the fun things about playing with the new HTML-in-Canvas API is that it lets me revisit all sorts of cool ideas I’ve seen in the past and wished I could implement on native elements.

Like this one, based on Paola Demichelis article from about a year ago.

(Links πŸ‘‡)

2 days ago 61 4 2 0
Video

HTML in Canvas API is NUTS

1 week ago 356 37 6 5
code showing nested media query

code showing nested media query

nested media queries feel great, i never really liked having a bunch of code, then a bunch of media queries at the bottom. keeping everything together feels cleaner and easier to understand

pawelgrzybek.com/native-css-n...

2 weeks ago 2 0 0 0
Video

Real DOM content in a canvas: fully searchable, translatable, inspectable.

You can have forms, add WebGL effects & much more.

Imagine if this was a customizable select 🀯

A little WIP exploration (not finished) for a very exciting API.

github.com/WICG/html-in...

2 weeks ago 145 11 4 7

Had someone let me know about a couple of typos they found while going through the course, and tell me they were happy to find them because it meant they knew I was writing the lessons and not using AI πŸ˜…

2 weeks ago 45 1 0 0

Bending a straight line using pure CSS?! πŸ‘€

Another cool demo in progress powered by border-shape. It's coming to @developer.chrome.com next week! 🀩

2 weeks ago 119 12 1 0
Video

come write songs with us and nerd out about music theory on April 16th. you can ask @lilgreybirb.bsky.social how the class was!

sign up: lightninglessons.com/classes/writ...

4 weeks ago 1 0 0 0
Advertisement

we're running the next session of the songwriting workshop "Write a song using music theory" starting April 16th

you can sign up at lightninglessons.com/classes/writ...

4 weeks ago 1 0 0 0

I'm looking for excellent Svelte / SvelteKit contractors in the US with current availability. If that's you, slide into my DMs or email me at ben.werdmuller@propublica.org.

4 weeks ago 40 25 2 1

thanks for the kind words!

4 weeks ago 0 0 0 0
Song Analysis - "Baby One More Time" Britney Spears
Song Analysis - "Baby One More Time" Britney Spears YouTube video by Lightning Lessons

For #musicians who wanna improve #songwriting #musictheory #guitar skills, check out Lightning Lessons by @devinlane.com

I'm currently enjoying this breakdown of Britney's classic "Baby One More Time"

I'm finally old and secure enough to enjoy the song unironically

m.youtube.com/watch?v=6Y2l...

1 month ago 4 1 1 0
Preview
Long COVID Treatment Guide An evidence-supported guide covering treatments addressing multiple Long COVID symptoms & mechanisms β€” focused on prescription medication, with a limited set of supplements, OTC medications, procedure...

We're thrilled to release the #LongCovid Treatment Guide! This is a collaboration with @rthm.bsky.social to help patients & providers explore treatment options together.

The guide focuses on 24 medications, but includes a few other interventions for breadth /1

1 month ago 313 188 8 29
terminal GUI showing a different/wrong node version than the terminal output of `node -v`

terminal GUI showing a different/wrong node version than the terminal output of `node -v`

the correct node version is displayed in the terminal GUI

the correct node version is displayed in the terminal GUI

in case you're a nerd and dislike that your @ohmyposh.dev theme shows the wrong Node version after you update, `oh-my-posh cache clear` might just save you 🫑

2 months ago 3 0 0 0
Preview
ARIA: aria-expanded attribute - ARIA | MDN The aria-expanded attribute is set on an element to indicate if a control is expanded or collapsed, and whether or not the controlled elements are displayed or hidden.

the `aria-expanded` attribute indicates if the control (accordion button in this case) is expanded or collapsed, and whether or not the controlled elements (the accordion children) are displayed or hidden

developer.mozilla.org/en-US/docs/W...

3 months ago 1 0 0 0
Preview
Accordion Pattern (Sections With Show/Hide Functionality) Accessibility resources free online from the international standards organization: W3C Web Accessibility Initiative (WAI).

some really good insights on accessibility with accordions here: www.w3.org/WAI/ARIA/apg...

3 months ago 0 0 0 0
Advertisement

accessibility: accordions

In an accordion you can pass an `aria-expanded` attribute to the button controlling the opening/closing of accordion children. You can connect this to the same state controlling the display of the accordion children, for example:

`aria-expanded={isActive}`

3 months ago 2 0 2 0
MDN example showing the <del> tag with strike through

MDN example showing the <del> tag with strike through

TIL about the HTML <del> tag: indicating something that has been deleted from a document, which will render with strike through by default

developer.mozilla.org/en-US/docs/W...

3 months ago 8 0 1 0

nice, let's do accountability buddy checkins!

3 months ago 1 0 1 0
Preview
GitHub - DevinCLane/qr-code-component-main: frontend mentor QR component challenge frontend mentor QR component challenge. Contribute to DevinCLane/qr-code-component-main development by creating an account on GitHub.

github.com/DevinCLane/q...

3 months ago 0 0 0 0
QR code for frontend mentor design challenge

QR code for frontend mentor design challenge

decided to do one of those @frontendmentor.io challenges--i'm doing so much full stack / state mangement work, i was wanting to just look at a design and built it

qr-component-dlane.netlify.app

3 months ago 7 0 3 0
Preview
Lightning Lessons music school Lightning Lessons is an online music school and community focused on helping you write songs and express yourself.

So now my "mutual referrer" form is safe πŸŽ‰

lightninglessons.com/classes/writ...

5 months ago 1 0 0 0

Bots thwarted. Only after they sent about 120 emails in my name πŸ€¦β€β™€οΈ

5 months ago 0 0 1 0

I used `position: absolute; left: -9999px; opacity: 0;`. I didn't use `display: none` in case a bot was set up to detect this. I called this input field "phone" just to keep it believable.

On my server I said "if we get a submission to the phone field, throw it away"

5 months ago 0 0 1 0

I finally decided to add a "honeypot".

This is an input field in the form that you hide, and expect that no human user would fill in. A bot automatically fills this in and then you can safely throw away that submission.

5 months ago 0 0 1 0
Advertisement

I tried deprecating HTTP/0.9 and HTTP/1.0, the idea being maybe an old or poorly written bot is using these older protocols.

this didn't work

5 months ago 0 0 1 0

I tried appending a # hash to the form's action URL, the idea being that if the bot was old or poorly written it would submit the wrong URL (and a browser just throws this away)

this didn't work

5 months ago 0 0 1 0
Preview
7 simple bot detection methods that won’t inconvenience users Protect your contact, comment, or other forms from spam submissions by evaluating minute details about how it got submitted. Privacy-preserving. No CAPTCHAs.

What do to? Akismet seems cool but was there a simpler solution?

Went through this site: www.ctrl.blog/entry/detect...

5 months ago 0 0 1 0
List of a bunch of gibberish names and random emails

List of a bunch of gibberish names and random emails

No, you did not go viral, you got bots πŸ˜….

5 months ago 0 0 1 0
Email stating that this user is 80% of the way to their daily quota of 200 emails

Email stating that this user is 80% of the way to their daily quota of 200 emails

A few days later I got an email from Resend (who I'm using to send emails) that I was almost hitting the max allowed emails in a day. Strange...that's gotta be a lot of users. Did I go viral 🀩

5 months ago 0 0 1 0

The features works like this: submit your name and email, and your friend's name and email. That hits my backend, creates one promo code for each user, and sends each user an email with their promo code.

5 months ago 0 0 1 0