Making a nice neon button
Published on:When I was building the Magical Dev School website, I accidentally stumbled on a way to make Neon buttons look good.
When I was building the Magical Dev School website, I accidentally stumbled on a way to make Neon buttons look good.
When using Tailwind with Astro, you’ll notice that Tailwind’s space utilities stop working when you use it with Astro Components or Slots .
I spent two weeks reworking the contents of Understanding Asynchronous JavaScript and Rest APIs and I'm happy to announce the changes I have made.
This course is now much easier to understand (and also much more succinct) compared to before. From my experience, it should now be able to resolve most of the confusion you may face around the topic of Asynchronous JavaScript and Rest APIs.
Today I want to introduce you a utility that will make caching in the local file system extremely easy.
This utility is called fileCache
and it’s built into Splendid UI.
"Now" is grossly inaccurate because zlFetch
has supported Form Data since v5.0 (since April) and we’re already at v6.0 🙃.
I was really excited about Scoped CSS a couple of years back when frameworks like React and Vue introduced them.
As I began trying Scoped CSS out for myself, I was disappointed and I felt it didn't live up to its hype.
But after more tries, I'm happy to announce that Scoped CSS is indeed useful. You only have to realize what its limitations are and what to do when you face these limitations.
I silently updated zlFetch
a couple of months ago with some improvements that make coding much easier — especially if you're using zlFetch
in Node.
I’ve been working on this for a long time and I’m happy to share with you that the Magical Dev School student portal is live!
I’ve pretended to be happy, okay, upbeat, and positive in my communications with you in the last couple of months.
Occasionally, I have also become cunning, manipulative, and sleazy in my communications (and I loathed that).
The discomfort towards my behaviours has been taking a hold of my emotional space. And it’s creating a huge depression.
As a web developer, you need to be able to design.
Why? Because of three simple reasons — and all of them help to further your career in different ways.
Container queries are amazing. They let us build UI that allow a component looks good no matter what size the component is displayed at.
But this feature also makes it difficult to test container queries.
If you do it normally, you have to resize your browser many times, which can be irritating and a huge waste of time.
There are better ways.
"If you're using Astro, you should build components with the astro
extension".
That was my initial thought when I started using Astro. But after a couple of months building with Astro, my thinking has changed. I no longer build most of my components with astro
files.
I mostly use Svelte files instead. This article explains why.
I've been playing around with container queries and so far, there is only one best practice that I would recommend.
Whenever you use container queries, make sure you wrap the element with a container element.
After using Astro for a while, I came to realize that Astro's biggest features — islands and slots — both delight and frustrate me.
Most people already know what the delights are, so I won't bother writing about them in this article. I'll focus on what frustrates me and how I resolve those frustrations.
Most people will think that AI contributes greatly to the coding ecosystem. On the contrary, I have a nagging feeling that things might become a disaster if things continue to pan out the way it currently going.
When you're subscribing people to Convertkit through the API, you want to use a form over a tag.
You probably saw many websites using cool bullet points instead of plain old-boring ones. How do they do it? Is there an effective and simple way to create fancy bullets while writing really simple code?
The answer is there is — with Astro, it's possible. You can simply write markdown and out comes a nicely formatted bullet you made with SVGs.
If you haven't heard the news, Geoff Graham — the chief editor behind CSS Tricks — got fired by Digitial Ocean yesterday, a few months after they acquired it.
This is leaving a bad taste in my mouth because Digital Ocean did promise to keep the spirit of CSS Tricks running...
But they blatantly broke the promise...
I found a better way to write classes as I dove into my latest project. This approach is much better than BEM and I'm excited to share it with you today.
Long story short: The better way is to use write classes in a camel-cased syntax.
I like to use both Svelte and MDX when I work with Astro... but I encounter a problem when using all three of them at once — I can import an MDX file directly into Astro, but can I import MDX into Svelte?
Normally, you can't. But there's a way to use MDX with Svelte. And that's what I'm going to share with you today.