DEV Community

Cover image for A Trip To The Beach
Mads Stoumann
Mads Stoumann

Posted on

6

A Trip To The Beach

This is a submission for [Frontend Challenge v24.04.17]((https://dev.to/challenges/frontend-2024-05-29), Glam Up My Markup: Beaches

What I Built

I built a beautiful day at the beach, using the text about beaches as sand!

Beach

Demo

Journey

Not much CSS required. It's a radial-gradient for the sun and a linear-gradient for the sky. The <main>-element has been styled with a sandy background, and I've removed all the default styling from it's children using all: unset;:

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
body {
  align-content: end;
  background: 
    radial-gradient(circle, #ffff00 65%, #0000 67.5%) 90% 5% / 10cqb 10cqb no-repeat,
    linear-gradient(180deg, #00bfff, #add8e6) 0% 0% / 100% 100% no-repeat;      
  color: #f3f3f399;
  display: grid;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3vh;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
}
header {
  letter-spacing: .1em;
  line-height: 1;
  padding-inline: 2ch;
}
main {
  background: #FFFFE3;
  line-height: .75;
  text-align: justify;
  * { all: unset; }
}
Enter fullscreen mode Exit fullscreen mode

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (1)

Collapse
 
jess profile image
Jess Lee

🙌

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

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

Okay