Urgent.News

the world's headlines, one feed

Editions โ–พ

Tech

๐Ÿ›ปCSS Art: Smoothie Food Truck

This is a submission for Frontend Challenge - Comfort Food Edition, CSS Art . Inspiration ๐Ÿ’ I was not sure I was going to enter this challenge at first, because I was not feeling inspired. I do not like to force things. Then I started to think a little outside of the normal. I remembered Space Fruit, a food vendor that is a favorite of mine to find at music festivals. Nothing beats an ice coldโ€ฆ

The submission for Frontend Challenge - Comfort Food Edition, CSS Art, is titled "Smoothie Food Truck." The creator admits to initially being unsure about entering the challenge due to a lack of inspiration. However, after contemplating a different approach, they drew inspiration from Space Fruit, a food vendor they frequently encounter at music festivals.

Space Fruit is known for its ice cold smoothies topped with frozen fruit bits, which create a strong desire for patrons to stop and purchase from the truck. This nostalgia-driven inspiration motivated the creator to work on the project.

The development process began with blocking out the approximate size and shape of the desired object. Gradients, box shadows, and layering techniques were employed to add depth and dimension. JavaScript was utilized to randomly place stars and make them twinkle. The creator also managed to emulate an LED strip using complex background gradient patterns. To further enhance the realism, a wrinkling effect was added to the tablecloth to simulate fabric texture.

A timelapse video showcasing the progress of the project was made to provide evidence of the work put into the submission. The most challenging aspect of the project was creating a window cutout in the back of the food truck to reveal the stars on the other side, akin to how it would appear in reality.

The project's code is available on the GitHub repository at cssart.

Written by urgent.news from Dev.to's reporting โ€” not their text. Machine-written โ€” it may contain errors, so check the original before relying on it.

Read the original at dev.to โ†’

More in Tech

One Event-Loop Turn, One False Redis Capacity Error

This is a submission for DEV's Summer Bug Smash: Clear the Lineup powered by Sentry . Project Overview redis-py is the Python client for Redis.

  • Event loop race condition caused false Redis capacity error
  • Connection slot missing from in-use set and free queue
  • Fix ensures closed connections return to free queue immediately

Scheduling concurrency

Have been trying to look at 3 different languages: Go, Kotlin, Elixir/Erlang mostly to understand their concurrency models. This article concerns mostly about Go's preemptive scheduling.

  • Go 1.14 introduced signal-based non-cooperative preemption mechanism
  • SIGURG signal chosen for preemption due to specific criteria
  • Preemption eliminates need for checks, mirrors OS thread switching