From 32301e5f61c2afb2b4dbffe7f123a466556f3c1c Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 7 Feb 2017 09:22:47 -0500 Subject: [PATCH] Clean up the contact page. Needs new map and images --- run_site.py | 12 +- templates/blocks/head.html | 2 +- templates/contactus.html | 28 ++-- templates/index.html | 327 ++----------------------------------- 4 files changed, 41 insertions(+), 328 deletions(-) diff --git a/run_site.py b/run_site.py index 103def1..dfea636 100644 --- a/run_site.py +++ b/run_site.py @@ -50,11 +50,17 @@ def show_project_file(category, project_name, filename): def about(): return render_template('aboutus.html', title="Index - JPs") -@app.route('/portfoliio') +@app.route('/portfolio') def portfolio(): - return render_template('index.html', title="Index - JPs") + categories = os.listdir('projects/') + projects = [] + for category in categories: + for project in os.listdir('projects/'+category): + # projects.append(project) + projects.append([category, project, os.listdir('projects/'+category+'/'+project)[0]]) + return render_template('index.html', title="JPs Contracting - Portfolio", categories=categories, projects=projects) @app.route('/contact') def contact(): - return render_template('contactus.html', title="Index - JPs") + return render_template('contactus.html', title="Contact Us - JPs Contracting") diff --git a/templates/blocks/head.html b/templates/blocks/head.html index 0b92b18..9fddbc7 100644 --- a/templates/blocks/head.html +++ b/templates/blocks/head.html @@ -4,7 +4,7 @@ - Home + {{ title }} diff --git a/templates/contactus.html b/templates/contactus.html index 27e0b49..5804abf 100644 --- a/templates/contactus.html +++ b/templates/contactus.html @@ -16,20 +16,20 @@
  • Visit us

    - Twitter Walls events
    - ABCD an receive
    - see all the social media
    - Newyork + 197 Spadina Avenue
    + Suite 500
    + Toronto, Ontario
    + Canada

  • Phones -

    (0044) 123 456 7891

    +

    416-258-2422

  • - Email Address

    info@woodworks.com

    + Email Address

    info@jpscontracting.ca

  • @@ -44,7 +44,7 @@
    Promotions

    - +

    @@ -60,18 +60,18 @@

    Who we are?

    get in touch with us

    @@ -80,12 +80,12 @@
  • -
  • -
    -
    -
    -
    - -
    -
    Deck 2
    Bradford
    - Decks -
    -
    -
    Deck
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Deck 3
    Bradford
    - Decks -
    -
    -
    Deck
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Floating Deck
    Early Mercy
    - Decks -
    -
    -
    Deck
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Deck 4
    Bradford
    - Decks -
    -
    -
    Deck
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Deck Cedar
    Toronto
    - Decks -
    -
    -
    Deck
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Deck
    Toronto 1
    - Decks -
    -
    -
    Deck
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Floating Deck
    Toronto
    - Decks -
    -
    -
    Deck
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Ceiling
    Keswick
    - Ceilings -
    -
    -
    Ceiling
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Stairs
    Keswick
    - Stairs -
    -
    -
    Stairs
    -
    -
    -
    -
  • -
  • -
    -
    - -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Flooring
    Keswick
    - Flooring -
    -
    -
    Flooring
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Steel
    Yongehurst
    - Steel -
    -
    -
    Steel
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Demolition
    Yongehurst
    - Demolition -
    -
    -
    Demolition
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Before
    Yongehurst
    - Before -
    -
    -
    Before
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Footings
    Yongehurst
    - Footings -
    -
    -
    Footings
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Framing
    Yongehurst
    - Framing -
    -
    -
    Framing
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Insulation
    Yongehurst
    - Insulation -
    -
    -
    Insulation
    -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - -
    -
    Almost
    Yongehurst
    - Almost -
    -
    -
    Almost
    -
    -
    -
    -
  • + + {% endfor %}