Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ La idea de este reto es que repliques el siguiente componente usando Flexbox. En

Te dejo la siguiente documentación útil para resolver el reto:

* [Flexbox Froggy | Juego](http://flexboxfroggy.com/#es)
* [A guide to Flexbox | CSS Tricks](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
* [Flexbox in CSS | CSS Reference](https://cssreference.io/flexbox/)
* [Flexbox help](https://flexbox.help/)
- [Flexbox Froggy | Juego](http://flexboxfroggy.com/#es)
- [A guide to Flexbox | CSS Tricks](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
- [Flexbox in CSS | CSS Reference](https://cssreference.io/flexbox/)
- [Flexbox help](https://flexbox.help/)

## 🐸 Pasos a seguir:

Expand Down
95 changes: 95 additions & 0 deletions estilos.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
:root {
--blue: #6200ee;
--grey: #e5e5e5;
--white: #ffffff;
}

/* 6368530014168917 */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: "Roboto", sans-serif;
}

main {
background-color: var(--grey);
height: 100vh;
}

main .wrapper {
align-items: center;
background-color: var(--blue);
box-shadow: 0 0 14px 0 #b4b0bf;
display: flex;
justify-content: space-around;
height: 60px;
}

main .wrapper .menu {
max-width: 20%;
}

main .wrapper .menu:hover {
color: black;
cursor: pointer;
}

main .wrapper .menu span {
background-color: var(--white);
display: block;
height: 2px;
margin-bottom: 3px;
width: 20px;
}

main .wrapper .menu span:last-child {
margin-bottom: 0;
}

main .wrapper .title {
color: var(--white);
font-size: 12px;
line-height: 0px;
margin-right: 6px;
text-align: left;
max-width: 40%;
}

main .wrapper .icon {
color: var(--white);
margin-left: ;
text-align: right;
width: 30%;
}

main .wrapper .icon i {
margin-left: 15px;
}

main .wrapper .icon i:hover {
cursor: pointer;
}

section {
background-color: var(--white);
height: 300px;
}

/* Seccion desktop */
@media only screen and (min-width: 760px) {
main .wrapper {
margin: 0 auto;
position: relative;
top: 10px;
width: 375px;
}

section {
margin: 0 auto;
width: 375px;
}
}
37 changes: 37 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Challenge-CSS-03</title>
<link
href="https://fonts.googleapis.com/css2?family=Roboto&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
/>
<link rel="stylesheet" href="estilos.css" />
</head>
<body>
<main>
<div class="wrapper">
<nav class="menu">
<span></span>
<span></span>
<span></span>
</nav>
<div class="title">
<h1>Page title</h1>
</div>
<div class="icon">
<i class="fas fa-heart"></i>
<i class="fas fa-search"></i>
<i class="fas fa-ellipsis-v"></i>
</div>
</div>
<section></section>
</main>
</body>
</html>