From 7c13b1c5eda2f44549db41cf4b9d6928d5fe8785 Mon Sep 17 00:00:00 2001 From: Manna Kong Date: Fri, 2 Jul 2021 02:23:23 -0500 Subject: [PATCH] clean up --- public/stylesheets/details.css | 6 +-- views/index.pug | 81 ---------------------------------- 2 files changed, 1 insertion(+), 86 deletions(-) diff --git a/public/stylesheets/details.css b/public/stylesheets/details.css index cb1a5f1..7ea6409 100644 --- a/public/stylesheets/details.css +++ b/public/stylesheets/details.css @@ -1,5 +1,4 @@ - .h1 { color: #0f211a; text-align: center; @@ -10,10 +9,7 @@ display: flex; justify-content: center; } -/* .header { - position: fixed; - width: 100%; -} */ + .nav-bar { display: flex; diff --git a/views/index.pug b/views/index.pug index 6cc2cf0..93e2cad 100644 --- a/views/index.pug +++ b/views/index.pug @@ -44,84 +44,3 @@ block content 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 - //- table(class='table table-striped table-hover') - //- thead(class='thead-dark') - //- tr - //- th(scope='col') Trail Name - //- th(scope='col') State - //- tbody - //- each trail in trails - //- tr - //- td= trail.name - //- td= trail.state - //- td: a(class='btn btn-primary' href=`/trail/${trail.id}` role='button') Details - - - //- div - //- ul Users - //- each user in users - //- li= user.username - - //- div - //- table - //- thead - //- tr - //- th Name - //- th Description - //- th State - //- tbody - //- each trail in trails - //- tr - //- td= trail.name - //- td= trail.description - //- td= trail.state - - - //- div - //- table(class='table table-striped table-hover') - //- thead(class='thead-dark') - //- tr - //- th(scope='col') Park Name - //- th(scope='col') Location - //- th(scope='col') Opened - //- th(scope='col') # of Attractions - //- th(scope='col') - //- tbody - //- each trail in trails - //- tr - //- td= trail.name - //- td= trail.state - //- td= trail.description - //- td: a(class='btn btn-primary' href=`/trail/${trail.id}` role='button') Details - //- div - //- each trail in trails - //- a(href=`/trails/${trail.id}` class="trailRoute")= trail.name - //- a(href="/my-routes/add") + Add New Route - //- div - //- form(action="/" method="get" id="demo" class="demo") - //- each trail in trails - //- a(href="/trails/" + trail.id) - //- h3= trail.name - //- p= trail.state -//- extends layout.pug - -//- block content -//- div(class='py-3') -//- a(class='btn btn-success' href='/park/add' role='button') Add Park -//- table(class='table table-striped table-hover') -//- thead(class='thead-dark') -//- tr -//- th(scope='col') Park Name -//- th(scope='col') Location -//- th(scope='col') Opened -//- th(scope='col') # of Attractions -//- th(scope='col') -//- tbody -//- each park in parks -//- tr -//- td= park.parkName -//- td= `${park.city}, ${park.provinceState} ${park.country}` -//- td= park.opened -//- td= (park.attractions.length || 0) -//- td: a(class='btn btn-primary' href=`/park/${park.id}` role='button') Details