Skip to content

Commit ee66dd1

Browse files
author
codingChewie
committed
Merging the Design Files
1 parent 2bb2026 commit ee66dd1

File tree

9 files changed

+55
-56
lines changed

9 files changed

+55
-56
lines changed

views/app.pug

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

views/card.pug

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
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')

views/error.pug

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
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

views/hello.pug

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

views/includes/footer.pug

Lines changed: 0 additions & 2 deletions
This file was deleted.

views/includes/header.pug

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
header
2-
h1 Flash Cards
2+
img(src='/static/img/logo.png')
3+
p An app to help you study

views/index.pug

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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!

views/layout.pug

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ doctype html
22
html(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

views/logic.pug

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)