diff --git a/index.html b/index.html
index 1b8846b..9b1161e 100644
--- a/index.html
+++ b/index.html
@@ -17,6 +17,12 @@
Ironhack News
Sports
+
+
@@ -71,7 +77,6 @@ Article 3
-
diff --git a/styles/style.css b/styles/style.css
index 9571ab1..01fdf2f 100644
--- a/styles/style.css
+++ b/styles/style.css
@@ -4,18 +4,28 @@ html {
box-sizing: border-box;
font-size: 16px;
}
-
-*, *:before, *:after {
+
+*,
+*:before,
+*:after {
box-sizing: inherit;
}
-
-body, h1, h2, h3, h4, h5, h6, p, ol, ul {
+
+body,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+p,
+ol,
+ul {
margin: 0;
padding: 0;
font-weight: lighter;
}
-
/* DO NOT REMOVE - Styling for the label showing the viewport width */
.viewport-dimensions {
position: fixed;
@@ -27,7 +37,7 @@ body, h1, h2, h3, h4, h5, h6, p, ol, ul {
padding: 5px 8px;
font-size: 14px;
}
-
+
/* STYLES */
/* Fonts */
@@ -102,6 +112,9 @@ header {
font-weight: bold;
}
+.bar-menu {
+ display: none;
+}
/* Articles */
.main-article {
margin: 20px;
@@ -175,5 +188,201 @@ header {
.btn-blue {
background-color: #007bff;
}
-
+
/* Write your CSS below */
+
+@media screen and (max-width: 760px) {
+ .navbar {
+ flex-direction: column;
+ align-items: center;
+ }
+
+ .navbar li {
+ width: 100%;
+ height: 40px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border: 1px solid #ffffff;
+ }
+ .navbar li:last-child {
+ border-right: 1px solid #ffffff;
+ }
+
+ .bar-menu {
+ display: none;
+ }
+
+ .main-article {
+ flex-direction: column;
+ align-items: center;
+ }
+
+ .articles-container {
+ flex-wrap: wrap;
+ justify-content: space-between;
+ flex-direction: column;
+ align-items: center;
+ padding: 20px;
+ }
+
+ .article {
+ width: 100%;
+ padding: 20px;
+ border: 1px solid #ccc;
+ }
+
+ .article img {
+ width: 100%;
+ height: auto;
+ }
+
+ .article h2 {
+ font-size: 20px;
+ margin-top: 10px;
+ }
+
+ .article p {
+ margin-top: 10px;
+ }
+
+ .btn {
+ background-color: #333;
+ color: #fff;
+ padding: 10px 20px;
+ border: none;
+ border-radius: 5px;
+ font-size: 1em;
+ font-weight: bold;
+ text-decoration: none;
+ margin-top: 30px;
+ }
+
+ .btn:hover {
+ background-color: #555;
+ }
+
+ .btn-blue {
+ background-color: #007bff;
+ }
+}
+
+@media (min-width: 760px) and (max-width: 1024px) {
+ .navbar {
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-evenly;
+ }
+
+ .navbar li {
+ width: 100%;
+ height: 40px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border: 1px solid #ffffff;
+ }
+ .navbar li:last-child {
+ border-right: 1px solid #ffffff;
+ }
+
+ .main-article {
+ flex-direction: row;
+ align-items: center;
+ width: 100%;
+ }
+
+ .articles-container {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ flex-direction: row;
+ align-items: flex-start;
+ padding: 20px;
+ }
+
+ .article {
+ width: 40%;
+ padding: 10px;
+ border: 1px solid #ccc;
+ padding-top: 30px;
+ }
+
+ .article img {
+ width: 100%;
+ height: auto;
+ }
+
+ .article h2 {
+ font-size: 20px;
+ margin-top: 10px;
+ }
+
+ .article p {
+ margin-top: 10px;
+ }
+
+ .btn {
+ background-color: #333;
+ color: #fff;
+ padding: 10px 20px;
+ border: none;
+ border-radius: 5px;
+ font-size: 1em;
+ font-weight: bold;
+ text-decoration: none;
+ margin-top: 30px;
+ }
+
+ .btn:hover {
+ background-color: #555;
+ }
+
+ .btn-blue {
+ background-color: #007bff;
+ }
+}
+
+@media screen and (max-width: 480px) {
+ .bar-menu {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .navbar {
+ display: none;
+ }
+
+ .newspaper-name {
+ font-size: 24px;
+ padding: 10px;
+ border: none;
+ }
+
+ .main-article {
+ margin: 10px;
+ padding: 10px;
+ border: 1px solid #ccc;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ }
+
+ .main-article img {
+ width: 100%;
+ height: auto;
+ }
+
+ .main-article .image {
+ width: 100%;
+ padding: 0 20px;
+ height: auto;
+ }
+
+ .main-article .content {
+ width: 100%;
+ padding: 0 20px;
+ height: auto;
+ }
+}