Archived copy for reference only
 

 

Graphic Design / Interactive Design / Fine & Applied Arts / Parkland College

Interactive Design Exercises
Dreamweaver: Simple Bootstrap Web Page (Christmas in Wales)

(Archived from 2019)

Objective

To explore Photoshop's extract tools. To explore Bootstrap's responsive framework by developing a simple web page similar to this example.

Discussion

Bootstrap's powerful framework works fine right out of the box. But not all websites are meant to look like Bootstrap templates. They key to successfully use Bootstrap's framework is to customize Bootstrap's styles to fit your design sensibilities.

Bootstrap's buttons are extremely difficult to style. If you are happy with Bootstrap's color scheme, then using Bootstrap's buttons make sense. If you want alternatives, try out the Push Button Pack which allows easy customizations.

Adobe's Creative Cloud now features new cloud-only apps that are designed to replace Photoshop's "save for web" functions. In this exercise, we will explore Photoshop's new extract operations which are designed for a collaborative workflow environment.

Reference links

Procedure

Overview: Prep Photoshop mock-up. Extract pixel elements using Creative Cloud. Add content to Bootstrap template. Customize Bootstrap styles.

Prepping the Photoshop mock-up

  1. download starter files, move to "html/exercises/x0_xmas"
  2. examine "assets/xmas.psd" in Photoshop
  3. hide "window" layer
  4. image > canvas size: double the width
  5. duplicate "bg" layer
  6. edit > transform > flip horizontal; adjust position
  7. layer > merge down (cmd+E)
  8. crop to live area

Extracting assets from Photoshop

  1. sign in with your adobe ID (or create a new ID)
  2. go to MY ASSETS: FILES (click YOUR NAME > CREATIVE CLOUD FILES or browse to assets.adobe.com/files
  3. actions > upload: "xmas.psd"; open
  4. click EXTRACT, go to LAYERS tab
  5. extract "bg": format=JPG, save
  6. repeat for "cd" and "xmas" (scale at 1.5, format=PNG)
  7. go to MY ASSETS: open assets folder
  8. download each image

Starting a Bootstrap project

  1. review Jen Kramer's grid.html
  2. download Bootstrap starter template
  3. move files into "html/exercises/x0_xmas"
  4. duplicate "index.html", rename "index-safe.html"
  5. move downloaded images to "html/exercises/x0_xmas/images"
  6. download push button pack
  7. move files into "html/exercises/x0_xmas"
  8. copy "buttons.css" to "html/exercises/x0_xmas/css/buttons.css"
  9. launch dreamweaver
  10. site > new site: site name=class_x0_xmas; 
    local site folder=faa999/class/html/exercises/x0_xmas); export STE file
  11. open "index.html"
  12. delete <div.col-lg-12.text-center">
  13. insert
    <div class="col-md-5"></div>
    <div class="col-md-7"></div>
  14. add link (above <style>):
    <link href="css/buttons.css" rel="stylesheet" type="text/css" />
    <link rel="icon" href="images/favicon.png">

Adding content

  1. insert "xmas.png" in left col
  2. insert "cd-lg.png" in right col
  3. add class="img-fluid"
  4. copy/paste text from PSD
  5. modify <table>: rows=6, col=3
  6. select first row: modify > table > merge cells
  7. copy/paste table data from sample page
  8. edit <nav> links
  9. change title to "A Child's Christmas in Wales"
  10. edit <alt> tags
  11. view > toggle live view (opt+F11)

Styling the page

  1. window > css designer: source=<style>: delete <body>
  2. window > css designer: new source=css/xmas.css (+); media=global, add selectors :
    • body: margin-top=165px, font-family=Georgia, size=15px; bg=images/bg.jpg", repeat-x, position: x=0px, y=50px
    • a: color=#4189D3
    • a:hover, a:focus: color=(darker blue)
    • .large: font-color=#4189D3 (copy/paste), weight=bold, size=18px, text-align=center, letter-spacing=4.68px
    • .red: font-color=#D32027 (eye dropper)
  3. open "push-bootstrap-button-pack-master/demo.html"
  4. copy/paste "small button" into "index.html"
  5. window > css designer: edit selectors (source=buttons.css):
    • btn-info: bg=#4189D3
    • btn-info:hover: bg=(darker blue)
    • btn-info:active: bg=(darker blue)
  6. view > code: move <style> to below last stylesheet <link>
  7. file > preview in browser (opt+F12 and cmd+F12)

Fine-tuning the page

  1. wrap <p> around images
  2. apply .text-center to select <p>
  3. apply .red to select <p>
  4. apply .large to select <p>
  5. apply .active to <li> for the HOME link
  6. apply .table to <table>, add ID=tour
  7. select "xmas.png", add ID=xmas
  8. select "cd.png", add ID=cd
  9. window > css designer: add selector (source=xmas.css):
    • table#tour: margin-top=50px, margin-left/right=auto
    • img#xmas: margin-bottom=50px
    • img#cd: padding-left/right/bottom=20px
  10. file > preview in browser (opt+F12 and cmd+F12)

Grading

  1. publish your page (see separate instructions)
  2. make a link to this excercise from your Process Page

BACK TO TOP
Last updated: 5/7/21