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
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"liveServer.settings.ChromeDebuggingAttachment": true
"liveServer.settings.host": "0.0.0.0",
"liveServer.settings.useLocalIp": true

}
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ironhack News</title>
<link rel="stylesheet" href="styles/style.css" />


</head>
<body>
<header>

<h1 class="newspaper-name">Ironhack News</h1>
<article class="menu-icon">
<div class="image">
<img src="images/menu-icon.png" alt="Article 1 Image" />
</div>
</article>
<nav>
<ul class="navbar">
<li><a href="#">Home</a></li>
Expand Down
91 changes: 91 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ header {

.navbar li:last-child {
border-right: none;

}

.navbar a {
Expand Down Expand Up @@ -125,6 +126,7 @@ header {
width: 50%;
padding: 0 20px;
height: auto;

}

.articles-container {
Expand All @@ -134,6 +136,7 @@ header {
flex-direction: row;
align-items: center;
padding: 20px;

}

.article {
Expand Down Expand Up @@ -177,3 +180,91 @@ header {
}

/* Write your CSS below */

/*mobile screens*/
@media (max-width: 760px) {
.navbar {

flex-direction: column;
align-items: center;
list-style: none;
padding: 0;
}
.navbar li {
border: none;
width: 100%;
border-bottom: 1px solid white;
}
.main-article .image {
width:100%;
height: auto;
margin-bottom: 25px;
}
.main-article {
display: flex;
flex-direction: column;
align-items: center;
}
.main-article .content {
width: 100%
}
.articles-container {
display: block;
}
.article {
margin-bottom: 25px;
width: 100%;
}

}

/*small screens*/
@media (min-width: 760px) and (max-width:1024px) {

.navbar {
justify-content: space-evenly;
width: 100%;
list-style: 0;
}
.navbar li {
flex: 1;
}

.main-article .content {
font-size: 20px;

}
.article {
width: 45%;
}

.articles-container {
gap: 50px;
}


}
@media (max-width: 480px) {
.navbar{
display: none;
}

.menu-icon {
margin: 20px;
padding: 10px;
}
}

@media (min-width: 760px) and (max-width: 1024px) {
.menu-icon {
display: none;
}
}

@media (max-width: 760px) {


.menu-icon {
display: none;
}
/*more practice needed for me*/