about
PageFrame Prototype
4/26/2024
PageFrame Prototype
define structure for site pages
- <page-frame>, an outer flex container attached to, and covering, the viewport.
- <frame-header> contains top menu with buttons: Site, Tracks, Repos, Stories, Resrcs, Blogs, Help, Pages, Pref, and Next
- <main> contains sub elements: <content>, <page-TOC>, and <page-sections>
- <content> holds all non-menu page content
- <page-TOC> contains links to all pages in this page's thread (sequence of pages linked with Next and Prev)
- <page-sections> contains links to in-page sections
- <frame-footer> contains buttons Keys, About, Sections, Prev, and Next
Building PageFrame pages.
To convert an existing page to a PageFrame structure simply:-
Create references to these script files in this order in existing page <head> after other script files:
- ScriptsPageFrame.js
- ScriptsPageFrameKeyboard.js
- ScriptsPageFramePages.js
ScriptsPageFramePages.js to appropriate values for the new page's thread. You may omit the Pages script if the original page had no next and prev links. -
Create references to these style files in existing page <head> after other script files:
- StylesPageFrameStructure.css
- StylesPageFrameMenus.css
- StylesPageFrameThemeDefault.css or another theme file of your choice
- Make a copy of PageFramePrototype.html (this page) and replace everything in the <content> block with the source page's content.
- If you want a new theme, make a copy of StylesPageFrameDefault.css and define the colors you want in --light and --dark.
- Change the page title to some appropriate value.
- Copy the scripts and styles files as outlined above.
- Copy the prototype with an appropriate name.
- Add visible page contents in the <content> block.