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
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<header>
<h1 class="newspaper-name">Ironhack News</h1>
<img id="burger-menu" src="images/menu-icon.png" alt="Burger menu icon for navbar" />
<nav>
<ul class="navbar">
<li><a href="#">Home</a></li>
Expand All @@ -28,8 +29,7 @@ <h1 class="newspaper-name">Ironhack News</h1>
<h2>Main Article</h2>
<p>
This is the first article's content. Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Morbi ac lacinia nibh, nec faucibus
enim. Nullam quis lorem posuere, hendrerit tellus eget, tincidunt
consectetur adipiscing elit. Morbi ac lacinia nibh, nec faucibus enim. Nullam quis lorem posuere, hendrerit tellus eget, tincidunt
ipsum. Nam nulla tortor, elementum in elit nec, fermentum dignissim
sapien. Sed a mattis nisi, sit amet dignissim elit. Sed finibus eros
sit amet ipsum scelerisque interdum. Curabitur justo nibh,
Expand Down
94 changes: 94 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,99 @@ header {
.btn-blue {
background-color: #007bff;
}

#burger-menu {
display: none;
}

/* Write your CSS below */

/* Mobile screens */
@media (max-width: 760px) {

.navbar {
display: flex;
flex-direction: column;
}

.navbar li {
width: 100%;
border-right: none;
border-bottom: 1px solid #ffffff;
box-sizing: border-box;
}

.main-article {
display: flex;
flex-direction: column;
}

.main-article .image, .main-article .content {
width: 100%;
}

.articles-container {
display: flex;
flex-direction: column;
/* padding: 10px; */
}

.article {
width: 100%;
}
}

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

.navbar {
display: flex;
justify-content: space-evenly;
}

.navbar li {
width: auto;
flex: 1;
display: flex;
box-sizing: border-box;
}

.main-article {
display: flex;
justify-content: stretch;
}

.articles-container {
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-between;
}

.article {
width: 49%;
box-sizing: border-box;
margin-bottom: 20px;
}
}

/* Small mobile screens */
@media (max-width: 480px) {

.navbar li {
display: none;
}

#burger-menu {
display: flex;
justify-content: center;
align-items: center;
width: 10%;
}

#burger-menu img {
width: auto;
margin: 0 auto;;
}

}