Objective
To learn to web development techniques by example.
To learn how to generate easy-to-manage slideshows using a HTML/Javascript approach to make this sample website.
Discussion
In this sample portfolio website, the thumbnail images are linking to a larger full-sized image (which have all been prepped to be 700x500px). Once the Javascript code has been added, clicking on a link will activate a slideshow on top of the current page. This technique makes use of a very popular open source library of javascript code called JQuery.
Procedure
Overview: Copy content into a new Bootstrap example. Customize styles to make a master page. Convert master page into a Dreamweaver template page. Develop a website using the new template page.
Prepping for the exercise
- download starter files, move to "html/e?_site_architecture"
- download bootstrap thumbnail gallery template (code > download zip)
- download fresco lightbox source files
- copy "fresco.js" into "js" folder
- copy "fresco.css" into "css" folder
- copy "skins" folder into "css" folder
- copy "slides" folder to root folder
- duplicate "index.html"; rename "index_backup.html"
- launch dreamweaver
- site > new site: site name=e?_portfolio;
local site folder=faa999/gds220/html/e?_portfolio; export STE file
- open "fresco/example/index.html"; examine code
Adding content to the home page
- open "index.html"; examine code
- copy "fresco.css" link into "index.html" (above "thumbnail-gallery.css")
- copy "fresco.js" link into "index.html"
- delete uneeded elements (including extra jquery link)
- copy code for one image from sample into "index.html"
- replace image src="slides/100x100/01.jpg"
- replace anchor href="slides/700x500/01.jpg"
- replace caption with
"Poster<br />Client: Amtrak<br />Illustration: Jane Smith <br/><a href='http://gds.parkland.edu/pages/exhibition.html' target='_blank'>View Website</a>"
- retain "img-responsive" and "thumbnail" classes
- modify <div> class to match:
<div class="col-md-3 col-sm-4 col-xs-6 thumb">
- file > preview in browser (opt+F12 and cmd+F12)
- copy/paste thumbnail <div> 12x
- modify each image number
- add looping code to first image:
data-fresco-group-options="loop: true"
- select all thumbnail <div>s
- insert > div: class="col-sm-9"
- insert > div: class="col-sm-3" (before <div.col-sm-9>)
- insert > image "logo.png" (inside <div.col-sm3>)
- add id="logo"; class="img-responsive"
- link to "index.html"
- select <container>: add id=main
- change title to "Jane Smith Graphic Designer"
- file > preview in browser (opt+F12 and cmd+F12)
Styling the home page
- window > CSS designer: source="thumnbnail-gallery.css":
• body: padding-top=70px, padding-bottom=30px; text: color=gray; bg=black
• a: color=white
• a:hover, a:focus: color=white, text-decoration=underline
• .thumbnail: border=0; bg=black
• .thumb: margin-top=30px, margin-bottom=0
• #main: margin-top=50px
• #logo: margin-top=20px, padding-right=20px
• .navbar.navbar-inverse: border-bottom=gray; bg=black
• .nav.navbar-nav .active: text: color=red
• .nav.navbar-nav li: margin-right=20px
• .fr-caption: text: color=dark gray
• .fr-caption a: light gray
• .fr-caption a:hover: text-decoration=underline
• .fr-info-padder: bg-color=black, padding-keft=0
- edit links
- edit navbar-brand="Jane Smith Graphic Designer"
- add class="active" to "Portfolio" link
- window > css designer: source="thumnbnail-gallery.css":
media=min-width=768px):
• a.navbar-brand: display=none
- window > css designer: source="thumnbnail-gallery.css":
media=max-width=767px):
• #logo: display=none
• #main: margin-top=20px
- window > css designer: source="thumnbnail-gallery.css":
media=min-width=501px):
• .fr-info-padder: padding-left=0px
- file > preview in browser (opt+F12 and cmd+F12)
Making the Résumé page
- file > save as "resume.html"
- select <div.col-sm-9>; delete
- insert > div: class="col-sm-6"
- insert > div: class="col-sm-3"
- copy/paste content from site architecture
- window > CSS designer: source="thumnbnail-gallery.css":
• h1: font-family=georgia
• h2: font-family=georgia italic, weight=normal
• h3: padding-top=24px, font-weight=bold, font-size=14
• #content ul: list-style-image=../images/square.gif
• html: overflow-y=scroll
- window > css designer: source="thumnbnail-gallery.css":
media=min-width=768):
• #content: margin-right=20px
- move class="active" to "Resume" link
- file > preview in browser (opt+F12 and cmd+F12)
- repeat with other pages
- publish the finished site as a link from your personal process page for grading