Skip to content

Commit 6451a63

Browse files
committed
Pages System Rewrite; stage 1
Going-to-sleep push; _Rebuilt the pxlPages system to read to javascript files instead of existing data on an htm. ___Temporary layout to see the data loads properly _'lazyLoading' is now 'manualLoad' with the same 'Click to Play' text over a gif ___But there is a bug, so it doesn't look dark and what not
1 parent c282f17 commit 6451a63

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1492
-618
lines changed

docs/index.htm

Lines changed: 40 additions & 374 deletions
Large diffs are not rendered by default.

docs/js/PageMetaData.js

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

docs/js/ProckStackGitio.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
// -- -- -- -- -- -- -- -- -- -- -- -- -- --
55
//
66
// This is an example implementation of `pxlNav` in a project;
7-
// Tieing in `ProcPages` to manage the pages of the site,
7+
// Tieing in `ProcPageManager` to manage the pages of the site,
88
// Listening to / triggering events on `pxlNav`
99
// For `pxlNav` scripting, the entry-point is `./Source/js/pxlNavCore.js`
1010
//
1111

1212
import { pxlNav, pxlNavVersion, pxlEnums, pxlUserSettings, pxlOptions } from './pxlNav.esm.js'; // v0.20
13-
import { ProcPages } from './ProcPages.js';
14-
import { PageMetaDataObjects } from './PageMetaData.js';
13+
import { ProcPageManager } from './pxlPages/ProcPageManager.js';
14+
import { pageListing } from '../pages/pageListing.js';
1515
import { BlogManager } from './BlogManager.js';
1616

1717

@@ -115,10 +115,11 @@ const collisionScale = {
115115

116116
// Create the main page manager
117117
// - Not related to pxlNav -
118-
const procPages = new ProcPages();
118+
const procPages = new ProcPageManager();
119119
// Set the Meta Data per page
120120
// Page changes will update the meta data automatically if the page is in the list
121-
procPages.setPageMetaData( PageMetaDataObjects );
121+
//procPages.setPageMetaData( ProcPageMetaData );
122+
procPages.addPageListing( pageListing );
122123
procPages.init();
123124

124125
// Trigger DOM updates of the pxlNav version displays on page
@@ -132,13 +133,14 @@ if (window.location.hash !== "#Blog") {
132133

133134
// Build procstack.github.io blog entries
134135
// - Not related to pxlNav -
136+
/*
135137
var blogEntryListing = document.getElementById('blogEntryListing');
136138
var blogEntryContent = document.getElementById('blogEntryContent');
137139
const procBlog = new BlogManager( blogEntryListing, blogEntryContent );
138140
procBlog.init();
139141
procBlog.build();
140142
procBlog.showEntry(-1);
141-
143+
*/
142144

143145
// -- -- -- -- --
144146

docs/js/blog/2025-02-08_A.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import { blogEntry } from './blogEntryBase.js';
2+
3+
let entryTitle = "Visibility in Design";
4+
let entryDate = "2025-08-08";
5+
let entryTags = ["layout", "design", "visibility", "expression", "pages", "february", "2025"];
6+
let entryBody = `
7+
I'll ussually have an idea of how a site/tool/project will look & operate in my head, but that's version 1.
8+
Seeing it in action; the practicallity of it all is a whole other thing.
9+
10+
Only finally getting into the nitty gritty of flow to a web page when there's actual content to proove the original design idea.
11+
12+
Maybe I could have spent more time designing the layout of the movement of information,
13+
Blockage of desired content, like images needing to be scrolled down to see.
14+
To have figured it out a little more about What I wanted to actually show on this site itself first.
15+
16+
So the site was a bit stiff at first.
17+
18+
Column of information with no true differentiation of what you are looking at & when.
19+
Scroll'ed down a touch, an no header stayed with you.
20+
No lit button on the menu bar.
21+
What page am I on?
22+
23+
Welp, that's gotta change.
24+
25+
- Move 'Repo' into 'Projects/Links'
26+
- Move 'pxlNav' over for a 'MakingOf' section
27+
- Indicate what freakin page you are on.
28+
- Add 'gear' to open pxlNav settings
29+
- Add 'book' to open the blog.... maybe
30+
It's still here after-all.
31+
32+
33+
34+
<br>&nbsp; -Kevin Edzenga
35+
`;
36+
37+
38+
const blogEntryObj = new blogEntry(null, entryTitle, entryDate, entryTags, entryBody);
39+
40+
export { blogEntryObj };

docs/js/pxlNavLoader.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
//
44
// -- -- -- -- -- -- -- -- -- -- -- -- -- --
55
//
6-
// This is an example implementation of `pxlNav` in a project;
7-
// Tieing in `ProcPages` to manage the pages of the site,
8-
// Listening to / triggering events on `pxlNav`
9-
// For `pxlNav` scripting, the entry-point is `./Source/js/pxlNavCore.js`
106
//
117

128
import { pxlNav, pxlNavVersion, pxlEnums, pxlUserSettings, pxlOptions } from './pxlNav.esm.js'; // v0.20

docs/js/pxlPages/PageMetaData.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Page Meta Data Objects
2+
// Written by Kevin Edzenga; 2024
3+
// -- -- --
4+
// Just a way to keep track of page meta tag updates to aid in SEO / web crawlers and social media sharing.
5+
6+
export class PageMetaData {
7+
constructor( metaOptions={} ){
8+
this.page = metaOptions.page || "Default";
9+
this.title = metaOptions.title || this.page;
10+
this.description = metaOptions.description || '';
11+
this.keywords = metaOptions.keywords || '';
12+
this.image = metaOptions.image || '';
13+
this.url = metaOptions.url || '';
14+
this.metaTagList = {
15+
'title':['title', 'og:title', 'twitter:title'],
16+
'description':['description', 'og:description', 'twitter:description'],
17+
'keywords':['keywords'],
18+
'image':['og:image', 'twitter:image'],
19+
'url':['og:url']
20+
}
21+
}
22+
setAttribute( attribute, value ){
23+
attribute = attribute.toLowerCase();
24+
if (this.hasOwnProperty(attribute)) {
25+
this[attribute] = value;
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)