1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2026-03-29 22:10:57 +00:00

porting bootstrap 4

This commit is contained in:
amodolo
2018-07-19 11:10:54 +02:00
parent 6afbd99bf6
commit c6622bff46
5 changed files with 20 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
footer
.container.text-center
p.pull-left © 2018 Company, Inc. All Rights Reserved
a.github-button.pull-right(href="https://github.com/microsoft/typescript-node-starter", data-icon="octicon-star", data-show-count="true", aria-label="Star microsoft/typescript-node-starter on GitHub") Star
a.github-button.float-right(href="https://github.com/microsoft/typescript-node-starter", data-icon="octicon-star", data-show-count="true", aria-label="Star microsoft/typescript-node-starter on GitHub") Star

View File

@@ -1,10 +1,10 @@
nav.navbar.navbar-expand-lg.navbar-light.bg-light.fixed-top
.container
button.navbar-toggler(type='button', data-toggle='collapse', data-target='.navbar-collapse')
span.navbar-toggler-icon
a.navbar-brand(href='/')
i.fa.fa-cube
| Project name
button.navbar-toggler(type='button', data-toggle='collapse', data-target='.navbar-collapse')
span.navbar-toggler-icon
.collapse.navbar-collapse
ul.nav.navbar-nav.mr-auto
@@ -16,12 +16,12 @@ nav.navbar.navbar-expand-lg.navbar-light.bg-light.fixed-top
a.nav-link(href='/contact') Contact
ul.nav.navbar-nav
if !user
li.nav-item(class=(title == 'Login') ? 'active' : undefined)
li.nav-item(class=(title === 'Login') ? 'active' : undefined)
a.nav-link(href='/login') Login
li.nav-item(class=(title == 'Create Account') ? 'active' : undefined)
li.nav-item(class=(title === 'Create Account') ? 'active' : undefined)
a.nav-link(href='/signup') Create Account
else
li.nav-item.dropdown(class=(title == 'Account Management') ? 'active' : undefined)
li.nav-item.dropdown(class=(title === 'Account Management') ? 'active' : undefined)
a.nav-link.dropdown-toggle(href='#', data-toggle='dropdown')
if user.profile.picture
img(src=user.profile.picture, alt=(user.profile.name || user.email || user.id))