Pesquisar neste blog

02/10/2020

Desafio Card 1 em JavaScript

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Desafio Card</title>
    <style>
        .curso {
            /* float: left; */
            displayinline-block;
            vertical-aligntop;
            font-familyVerdanasans-serif;
            bordersolid 1px #CCC;
            box-shadow0 4px 20px 0 rgba(0000.3);
            height300px;
            width260px;
            margin5px 20px;
            padding5px;
        }

        .curso img {
            width100%;
            max-height50%;
        }

        .curso-info {
            padding10px;
            height90px;
            overflowhidden;
        }

        .curso-info h4 {
            font-size1.4em;
            font-weight100;
            margin0px;
        }

        .curso-preco {
            floatright;
            padding10px;
        }

        .preco-de {
            text-decorationline-through;
            colorfirebrick;
        }

        .preco-por {
            colorgreen;
            font-weightbold;
            font-size1.4em;
        }
    </style>
</head>

<body>
    <h1>Card</h1>

    <h2>Objetivo</h2>
    <img src="http://files.cod3r.com.br/curso-web/card.png" height="340" alt="Objetivo">

    <h2>Resultado</h2>
    <div>
        <div class="curso">
            <img src="http://files.cod3r.com.br/curso-web/curso1.jpg" />
            
            <div class="curso-info">
                <h4>Docker: Ferramenta essencial para Desenvolvedores</h4>
                <p>Prof. Fulano</p>
            </div>
            <div class="curso-preco">
                <span class="preco-de">R$80,00</span>
                <span class="preco-por">R$50,00</span>
            </div>
        </div>
        <div class="curso">
            <img src="http://files.cod3r.com.br/curso-web/curso2.jpg" />
            <div class="curso-info">
                <h4>Web Moderno com Javascript + Projetos</h4>
                <p>Prof. Sicrano Filho</p>
            </div>
            <div class="curso-preco">
                <span class="preco-de">R$80,00</span>
                <span class="preco-por">R$50,00</span>
            </div>
        </div>
    </div>
</body>

</html>


















Nenhum comentário: