Coder Social home page Coder Social logo

frontend-mentor-projects-daniel / clipboard-landing-page Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.48 MB

A landing page built with HTML, CSS and Javascript using CUBE CSS methodology to organize code as well as fluid Type and Space scales in order to have spacing and typography scale along with the viewport

CSS 53.61% HTML 46.39%
css html landing-page cubecss javascript

clipboard-landing-page's Introduction

Frontend Mentor - Clipboard landing page solution

This is a solution to the Clipboard landing page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Overview

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • See hover states for all interactive elements on the page

Screenshot

screenshot

Links

You can find the live version of the site here.

My process

I wanted to test out cube css, which was created by Andy Bell, and it is a CSS methodology geared towards simplicity, pragmatism, and consistency. CUBE stands for “Composition Utility Block Exception” and is a tool-agnostic methodology.

I used the tool utopia.fyi in order to generate a fitting type-scale for the project then I added those font-size and space scales as css custom properties and assigned them to my elements

After my reset and global styles, I added my utility classes next, Andy Bells preferred way of doing this seems to be to use TailwindCSS for adding styles using utility classes. I did it manually and indeed, while I don't know whether adding the styles using tailwind or just adding them into their blocks would be more preferrable to me, doing this by hand, especially for hover states is time consuming

I added in my compositions next, the composition layer’s job is to create flexible, component-agnostic layout systems that support as many variants of content as possible. These sort of skeletal layers that can work in any circumstance without caring what goes in as children are surprisingly difficult, in this instance I used the compositions from Heydon Pickering's EveryLayout, but I will create my own in the future

After doing the hard work, all that was left were the individual blocks and in this project, a lot my code could be reused which actually saved me more time in the long run then if I just did this normally.

My conclusion is that I prefer the CUBE way of doing things and I like not having to write media queries for changing font-sizes and less (or no) media queries for my block layouts

Built with

  • Semantic HTML5 markup
  • CSS
  • CUBE css methodology
  • Fluid Type and Space Scales
  • Mobile-first workflow

What I learned

  • There are many ways to cut down on media queries!
  • After spending a bit of time learning how to use Cube CSS, I ended up just really needing to add a few styles and rules and could do the rest of the components quickly - the footer was actually the hardest part since I did that one mostly manually

Useful resources

  • utopia - For generating fluid type and space scales
  • EveryLayout - For creating base skeletal layouts that work regardless of what their descendants are
  • Cube css - For explaining the concept of CUBE CSS

Author

Acknowledgments

  • The frontend mentor platform for the challenge and the design files

  • The frontend mentor slack platform which is incredibly helpful for peer review, especially on the topics of accessibility and best practices

clipboard-landing-page's People

Contributors

danielarzani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.