Skip to content

Commit

Permalink
done with the nav bar and header
Browse files Browse the repository at this point in the history
  • Loading branch information
makon57 committed Jun 30, 2021
1 parent e912969 commit 17a56ab
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 32 deletions.
100 changes: 77 additions & 23 deletions public/stylesheets/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ h1 {
bottom: 5px;
}

/* .header {
position: fixed;
width: 100%;
} */

.nav-bar {
display: flex;
justify-content: space-between;
}

.nav-div {
display: flex;
}

.search {
display: flex;
width: 80%;
justify-content: center;
}

.logout-btn {
float: right;
margin: 10px;
Expand All @@ -19,52 +39,77 @@ h1 {

.search-bar {
border-radius: 30px;
width: 70%;
height: 45px;
font-size: 22px;
width: 150px;
height: 30px;
font-size: 15px;
text-align: center;
position: relative;
top: 10px;
}



/* .trail-div {
.trail-div {
padding: 5px;
}

.wrapper {
margin: 0 auto;
padding: 32px;
max-width: 1400px;
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0;
flex-direction: row;
} */
flex-flow: row wrap;
}

/* .trail-list-item {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 5vw);
grid-gap: 15px;
} */
.sidebar {
background-color: #6C547B;
border-radius: 3px;
margin: 0 32px 32px 0;
padding: 0 20px 32px 20px;
max-height: 130px;
max-width: 180px;
width: 20%;
flex-basis: 220px;
position: fixed;
}

.sidebar-container {
background-color: transparent;
border-radius: 3px;
margin: 0 32px 32px 0;
padding: 0 20px 32px 20px;
max-height: 130px;
max-width: 180px;
width: 20%;
flex-basis: 220px;

.wrapper {
display: grid;
grid-template-columns: 20% 60% 20%;
grid-gap: 10px;
margin: 30px;
}

.test {
/* .trail-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
margin: 30px;
} */

.trail-list-item {
max-width: 225px;
height: 200px;
}

.trail-container {
display: flex;
flex-wrap: wrap;
width: 80%;
}

a {
text-decoration: none;
}

img {
width: 450px;
height: 300px;
width: 225px;
height: 150px;
grid-column-start: 2;
grid-column-end: 4;
grid-row-start: 2;
Expand All @@ -77,4 +122,13 @@ img {

.name {
text-align: center;
margin: 0;
padding: 0;
}

.state {
text-align: center;
font-size: 10px;
margin: 2px;
padding: 2px;
}
25 changes: 16 additions & 9 deletions views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,29 @@ block content
header
div
nav(id="nav" class="nav-bar")
form(action="/" method="post" id="demo" class="demo")
button(type="submit" class="logout-btn") Logout
div(class="header")
h1 MixTrail
div(class="search")
h1
h1
div(class="nav-div")
input(type="text" id="search-bar" class="search-bar" placeholder="Find your next trail!")
div(class="wrapper")
form(action="/" method="post" id="demo" class="demo")
button(type="submit" class="logout-btn") Logout
div
div(class="test")
h1 MixTrail
div(class="wrapper")
div(class="sidebar-container")
div(class="sidebar")
div(class="sidebar-content")
p= Hello
a(href='/login') Login
div(class="trail-container")
each trail in trails
div(class="trail-div")
a(class='btn btn-primary' href=`/trail/${trail.id}` role='button')
div(id=`trail-${trail.id}` class='trail-list-item')
p(class="name") #{trail.name}, #{trail.state}
p(class="name") #{trail.name}
p(class="state") #{trail.state}
img(src=`./trails/trail-${trail.id}.jpg` alt=`${trail.name}` class=`trail-image-${trail.id}`)
div

//- div
//- table(class='table table-striped table-hover')
//- thead(class='thead-dark')
Expand Down

0 comments on commit 17a56ab

Please sign in to comment.