Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
1
respuesta

Proyecto barberia parte 1

Ingrese aquí la descripción de esta imagen para ayudar con la accesibilidad

El código HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>Document</title>
</head>
<body>
    <header>
        <ul class="cabecera">
            <li><a href="#">inicio</a></li>
            <li><a href="#">Productos</a></li>
            <li><a href="#">Citas</a></li>
            <li><a href="#">a Tu hogar</a></li>
        </ul>
    </header>
    <section class="main">
        <div class="cards">
            <div class="card" type="button">
        <img src="/resources/img/bigote.png" class="tijeras" alt="icono tijeras">      <p>Corte de cabello</p>
            </div>
            <div class="card">
                <img src="/resources/img/cuchilla.png" class="tijeras" alt="icono tijeras">      <p>Excelente servicio</p>
            </div>
            <div class="card">
                <img src="/resources/img/tijeras.png" class="tijeras" alt="icono tijeras">      <p>Bigote</p>
            </div>
        </div>
        <div class="title">
            <h1>Barberia</h1>
            <p>Saca cita en cualquier momento</p>
            <button type="button">Separa tu cupo</button>
        </div>
        <div class="second_main">
            <p>Excelente productos para tu cabello y el mejor servicio</p>
        </div>


    </section>


</body>
</html>

el css:

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

header{
    z-index: 10;
}

.main{
    background-image: url("https://images.pexels.com/photos/1570807/pexels-photo-1570807.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    position: absolute;
    margin-block-start: -80px;
    z-index: 1;
   display: flexbox;

}

.title{
    color: white;
    width: 50%;
    margin: 0 auto; 
    margin-block-start: 30rem;

}

 .title h1{
    font-size: 5rem;
    height: 50px;

}

.title p{
    font-size: 1.5rem;
    line-height: 6rem;
}

button{
    width: 10rem;
    height: 2.8rem;
    background-color: rgba(0, 0, 0, 0.25);
    color: white;
    margin-block-start: -5rem;
    font-weight: bold;
    border-radius: 0.5rem;
    border: solid red;

}

button:hover{
    border-radius: 0;
    color: red;
    background-color: white;
    border: none;
}

button:active{
    border-radius: 0;
    color: red;
    background-color: white;
    border: none;
}

.cabecera{
    display: flex;
    text-align: center;
    justify-content: center;
    font-size: 5rem;
    font-family: Arial, Helvetica, sans-serif;
    color: azure;
    z-index: 10;
    position: relative;

}

ul{
    list-style-type: none;
    font-family: Arial, Helvetica, sans-serif;
    color: azure;
    height: 5rem;
    justify-content: center;
    z-index: 11;
    background-color: rgba(0, 0, 0, 0.24);
}
li{
    margin-block-start: 2rem;
        justify-content: center;
    text-align: center;
}
a{
    font-size: 1.4rem;
    margin-left: 3rem;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-weight: lighter;
}

.second_main{
    width: 100%;
    background-color: white;
    margin-block-start: 7rem;
}
.second_main p{
    margin-top: 5rem;
    padding: 20px;
    color: black;
    font-weight: bolder;
    width: 50%;
    text-align: center;
    margin: 0 auto;
    font-size: 1.5rem;
    line-height: 1.8rem;
}

.cards{
    display: flex;
    position: relative;
    width: 100%;
    height: 10rem;
    justify-content: center;

}
.card{
    background-color: rgba(0, 0, 0, 0.4);
    margin-block-start: 10rem;
    width: 18rem;
    height: 24rem;
    margin-left: 5rem;
    border-radius: 20px;
    border: solid red 5px;
    color: aliceblue;
    font-weight: bold;
    justify-content: center;
    align-items: center;
}

.tijeras{
    background-image: url("https://iconos8.es/icon/55950/tijeras-de-peluquero");
    width: 80px;
    height: 80px;
    margin-block-start: 8rem;
    margin-inline-start: 6.2rem;
}

.card p{
    text-align: center;
    margin-block-start: 4rem;
}
1 respuesta

¡Hola, Jhony! Deseo que esté bien.

Muchas gracias por compartir tu proyecto con nosotros. Estamos muy contentos de poder acompañarte en tu camino de aprendizaje.

En lo esencial, en el foro estamos priorizando las dudas y errores.

Para compartir tus proyectos con nosotros y otros estudiantes, te recomiendo que lo haga en nuetro servidor de Discord.

Continúa con tus estudios y hasta la proxima.

¡Vamos juntos!

Si este post te ayudó, por favor, marca como solucionado ✓. Continúa con tus estudios!