mirror of
https://github.com/kevin-DL/complete-node-bootcamp.git
synced 2026-01-18 13:55:10 +00:00
Initial commit 🚀
This commit is contained in:
14
4-natours/after-section-13/views/_header.pug
Normal file
14
4-natours/after-section-13/views/_header.pug
Normal file
@@ -0,0 +1,14 @@
|
||||
header.header
|
||||
nav.nav.nav--tours
|
||||
a.nav__el(href='/') All tours
|
||||
.header__logo
|
||||
img(src='/img/logo-white.png' alt='Natours logo')
|
||||
nav.nav.nav--user
|
||||
if user
|
||||
a.nav__el.nav__el--logout Log out
|
||||
a.nav__el(href='/me')
|
||||
img.nav__user-img(src=`/img/users/${user.photo}` alt=`Photo of ${user.name}`)
|
||||
span= user.name.split(' ')[0]
|
||||
else
|
||||
a.nav__el(href='/login') Log in
|
||||
a.nav__el.nav__el--cta(href='#') Sign up
|
||||
Reference in New Issue
Block a user