DEV Community

Cover image for UI Challenge 01
Colt Borg
Colt Borg

Posted on • Originally published at coltborg.com on

1 1

UI Challenge 01

What to do

Let's do some some CSS layout practice!

The above image is a simple website with text and an image. Using whatever CSS technique you'd like, recreate it.

The goal is not to be perfect, but to practice.

The reference image can be seen/downloaded here.

Colors and assets

I'll give you the colors, fonts, and image involved so you don't have to try and look them up yourself.

Colors

Here are the colors set as CSS custom properties. You don't have to use them as custom properties.

:root {
  --green: #1b390f;
  --red: #de5908;
  --white: #e8d9d6;
}

Fonts

For all text except for the heading I'm using the system sans-serif font. You can use any stack you'd like.

The heading text is using a Google font called Catamaran and the weight of 700. You can import it into your code using this snippet:

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Catamaran:wght@700&display=swap">

Image

The image is hosted over at Unsplash, created by Travis Yewell. You can use this url.

Solution

I'll publish a solution soon. Until then, try to re-create this on your own.

Credit

Inspiration for this challenge comes from a dribbble post from Davide Baratta.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay