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
58 changes: 58 additions & 0 deletions starter/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,62 @@ ul {
Navbar
===============
*/
.navbar{
display: flex;
justify-content: center;
align-items: center;

}
.nav-center{
width: 90vw;
max-width: var(--max-width);
}
.nav-header{
height: 6rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-logo{
display: flex;
align-items: center;
}
.nav-header img{
width: 200px;
}

.nav-btn{
padding: 0.15rem 0.75rem;
}
.nav-btn i{
font-size: 1.25rem;
}
.nav-links{
display:flex;
flex-direction: column;
/* todo */
height: 0;
overflow: hidden;
transition: var(--transition);
}
.show-links{
height: 310px;
}
.nav-link{
display:block;
text-align: center;
text-transform: capitalize;
color: var(--grey-900);
letter-spacing: var(--letterSpacing);
padding:1rem 0;
border-top: 1px solid var(--grey-500);
transition: var(--transtion);
}
.nav-link:hover {
color: var(--primary-500);
}
.contact-link a{
padding: 0.15rem 1rem;
}


30 changes: 28 additions & 2 deletions starter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,33 @@
<link rel="stylesheet" href="./css/main.css" />
</head>
<body>
<h1>Home Page </h1>

<!-- nav -->
<div class="navbar">
<div class="nav-center">
<!-- header -->
<div class="nav-header">
<a href="index.html" class="nav-logo">
<img src="./assets/logo.svg" alt="Simply Recipes" />
</a>
<button type="button" class="btn nav-btn">
<i class="fas fa-align-justify"></i>
</button>
</div>
<!-- links -->
<div class="nav-links">
<a href="index.html" class="nav-link">home</a>
<a href="about.html" class="nav-link">about</a>
<a href="tags.html" class="nav-link">tags</a>
<a href="recipes.html" class="nav-link">recipes</a>
<div class="nav-link contact-link">
<a href="contact.html" class="btn">contact</a>
</div>
</div>
</div>
</div>
<!-- end of nav -->
<script src="./js/app.js">

</script>
</body>
</html>