Skip to content

JuanHVDev/stats-preview-card-component-main

Repository files navigation

Table of contents

Overview

The challenge

Users should be able to:

Screenshot

Desktop

Mobile

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties

What I learned

I learned the basics of CSS grid, how to arrange and how to apply it when using media queries.

@media(max-width:375px) {
    body {
        display: block;
        text-align: center;
    }

    .container {
        border-radius: 25px;
        margin: 0;
        width: 350px;
        height: 650px;
        grid-template-rows: repeat(3, 1fr);
    }

    .image {
        grid-column: 1/6;
        order: -1;
    }

    .image-desktop {
        width: 350px;
        height: 250px;
        object-fit: cover;
    }

    .fondo {
        grid-column: 1/6;
        height: 250px;
        order: -1;
    }

    .text {
        grid-column: 1/6;
        grid-row: 2;
        order: 1;
    }

    .title {
        text-align: center;
        font-size: 20px;
        width: 275px;
        padding: 0;
        padding-left: 30px;
    }

    .content {
        text-align: center;
        width: 225px;
        padding: 0;
        padding-left: 30px;
    }

    .datos-numeros {
        width: 250px;
        text-align: center;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        padding: 0;
        padding-left: 30px;
        margin: 0;
    }
}

Continued development

I want to continue learning how to use and apply CSS grid for layout and how to arrange my HTML elements.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published