diff --git a/index.html b/index.html index 1b8846b..df842c1 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@ Ironhack News + Home News diff --git a/styles/style.css b/styles/style.css index 9571ab1..71ada67 100644 --- a/styles/style.css +++ b/styles/style.css @@ -177,3 +177,88 @@ header { } /* Write your CSS below */ + +/*Iteration 1*/ + +@media (max-width: 760px) { + + .navbar{ + flex-direction: column; + align-items: center; + } +.navbar li { + width: 100%; + border-bottom: 1px solid #fff; +} + .main-article { + flex-direction: column; + align-items: center; + text-align: left; + width: 100%; + height: auto; + + } + + .main-article .image, + .main-article .content { + width: 100%; + padding: 10px 0; + } + + .articles-container { + flex-direction: column; + align-items: left; + + } + + .article { + width: 100%; + } +} + +/*Iteration 2*/ + +@media (min-width: 760px) and (max-width: 1024px) { + + + .navbar { + flex-direction: row; + justify-content: space-between; + } + + .navbar li { + width: 100%; + + } + + .main-article { + flex-direction: row; + width: 100%; + margin: 20px 0; + } + + .articles-container { + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; + gap: 10px + } + + .article { + width: 48%; + margin-bottom: 20px; + } +} + +@media (max-width:480px){ + +.navbar { + display: none; + } + } + @media (min-width:480px){ + +.icono { + display: none; + } + } \ No newline at end of file