Coder Social home page Coder Social logo

thefarazxr / statpreviewcardproject Goto Github PK

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

This is a pure HTML, CSS based project which helps you understand how to design a mobile friendly website and also using basic HTML tags etc.

HTML 39.74% CSS 60.26%
frontend-mentor challenge css html mobile-friendly

statpreviewcardproject's Introduction

Frontend Mentor - Stats preview card component solution

Static Responsive(!tablets) Website using just HTML, CSS

This is a solution to the Stats preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

This is a pure HTML, CSS based project which helps you understand how to design a mobile friendly website and also using basic HTML tags etc.

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • Made this project view good on Desktop, Mobile. I need to still work for the tablet(iPad's) size.

Screenshot

Screenshot

Pro tip ๐Ÿ˜Ž :Use Fireshot (a FREE extension to take screenshots of an entire webpage)

Links

My process

I started with by adding HTML tags and div's to help in styling the page. Then moved to the CSS part & I started as Desktop-first design.

Later added Mobile Media Queries

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Mobile-first workflow

What I learned

Learnt how to use FontFamily, Letter-spacing, Text Transform, using different images based on screen width etc..

<!-- HTML for displaying different images based on screen width-->
<picture>
                <source srcset="./assets/images/image-header-mobile.jpg" media="(max-width: 375px)">
                <source srcset="./assets/images/image-header-desktop.jpg">
                <img src="./assets/images/image-header-desktop.jpg" alt="talks" style="width:auto">
            </picture>
        </div>
/* CSS to give image a TINTED effect*/
.image {
    float: right;
    margin-bottom: -5px;
    background-color: hsl(277, 73%, 32%);
    border: 0px solid;
}

img {
    opacity: 0.4;
}
}

/*CSS to set elements in same-line and use width to show in 2 lines
used for 10k+ COMPANIES, 314 TEMPLATES, 12M+ QUERIES.
*/
.one,
.two,
.three {
    display: inline-block;
    width: 100px;
}
/* To make image and text part on same line */
.image,
.text {
    display: inline-block;
}

Continued development

I want to modify and make this static page more responisve by adding on Tablet size for making the page more responsive.

Also will later learn js and try to implement in all of my static-page projects.

Useful resources

  • W3Schools - This helped me for displaying different image based on screen width.
  • Letzcode - This is an amazing article which helped me finally add the Image Tinting effect.

Author

Acknowledgments

I would recommend everyone to take a NOTE on the go while building the prject and try to write a JOUNRAL of your Developmment journey so that it would help others and also you.

Because,

Don't compare yourself with other instead compare yourself with your previous version.

statpreviewcardproject's People

Contributors

thefarazxr avatar

Stargazers

 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.