File tree Expand file tree Collapse file tree 9 files changed +55
-56
lines changed Expand file tree Collapse file tree 9 files changed +55
-56
lines changed Original file line number Diff line number Diff line change 1+ extends layout
2+
3+ block main
4+ section.namecard
5+ .namecard-login
6+ if name
7+ p.namecard-greeting Welcome, #{name} !
8+ form.namecard-exit ( action ='/goodbye' , method ='POST' )
9+ button( type ='submit' )
10+ img( src ='/static/img/close.svg' )
11+ else
12+ p.namecard-greeting Hello, student!
13+ block intro
14+ block card
Original file line number Diff line number Diff line change 1- extends layout.pug
1+ extends app
22
3- block content
4- section#content
5- h2= text
6- if hint
7- p
8- i Hint: #{hint}
9- a( href =` /cards/${ id} ?side=${ sideToShow} ` ) = ` ${ sideToShow .charAt (0 ).toUpperCase ()}${ sideToShow .slice (1 )} `
10- br
11- a( href ='/cards' ) Next card
3+ block card
4+ section( class =` flashcards` )
5+ .card ( class =` card-${ side} ` )
6+ .card-header
7+ h1.card-title = side
8+ #content
9+ h2= text
10+ if hint
11+ p.hint
12+ i= hint
13+ .card-flip-wrap
14+ a( href =` ${ id} ?side=${ sideToShow} ` )
15+ img.card-flip ( src ='/static/img/flip.svg' )
16+ .card-next
17+ a( href ='/cards' )
18+ img( src ="/static/img/next.svg" )
19+ script( src ='/static/js/app.js' )
Original file line number Diff line number Diff line change 1- extends layout.pug
1+ extends layout
22
3- block content
4- h1= error .message
5- h2= error .status
6- pre= error .stack
3+ block main
4+ section.desk
5+ h1= ` ${ error .message } - Status: ${ error .status } `
6+ img.desk-items ( src ='/static/img/desk.svg' )
7+ a.button-primary-small ( href ='/' ) Go Home
8+ .paper
9+ pre.stack-trace = error .stack
10+ .tear
Original file line number Diff line number Diff line change 1- extends layout.pug
1+ extends app
22
3- block content
4- form( action ='/hello' , method ='POST ' )
5- label Please enter name
6- input( type ='text' , name ='username' )
7- button( type ='submit' ) Submit
3+ block intro
4+ form.namecard-form ( action ='/hello' , method ='post ' )
5+ label.namecard-prompt Please enter your name:
6+ input.namecard-name ( type ='text' , name ='username' )
7+ button.namecard-submit ( type ='submit' ) Submit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11header
2- h1 Flash Cards
2+ img( src ='/static/img/logo.png' )
3+ p An app to help you study
Original file line number Diff line number Diff line change 1- extends layout .pug
1+ extends app .pug
22
3- block content
4- section#content
5- p
6- a( href ='/cards' ) Begin!
3+ block intro
4+ h1.namecard-prompt Let's get started
5+ a.namecard-submit ( href ='/cards' ) Begin!
Original file line number Diff line number Diff line change @@ -2,12 +2,7 @@ doctype html
22html( lang ="en" )
33 head
44 title Flash Cards
5- link( rel ='stylesheet' , href =" /static/stylesheets/style.css" )
5+ link( rel ='stylesheet' , href =' /static/stylesheets/style.css' )
66 body
77 include includes/header.pug
8- if name
9- h2 Welcome, #{name} !
10- form( action ='/goodbye' , method ='POST' )
11- button( type ='submit' ) Goodbye
12- block content
13- include includes/footer.pug
8+ block main
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments