Skip to content

Commit 64f1c17

Browse files
authored
Merge pull request #31 from samharp/main
sync: main to dev
2 parents fc0bfcf + af6bb13 commit 64f1c17

File tree

15 files changed

+1205
-414
lines changed

15 files changed

+1205
-414
lines changed

.eleventy.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,26 @@ module.exports = function (eleventyConfig) {
88
eleventyConfig.addPassthroughCopy('*.ico');
99
eleventyConfig.addPassthroughCopy('*.png');
1010

11-
1211
// Watch directories for changes
1312
eleventyConfig.addWatchTarget('css');
1413
eleventyConfig.addWatchTarget('js');
1514
eleventyConfig.addWatchTarget('img');
1615
eleventyConfig.addWatchTarget('site.webmanifest');
17-
};
16+
17+
// FILTERS
18+
eleventyConfig.addFilter("notExpired", function(items) {
19+
const today = new Date();
20+
21+
return items.filter(item => {
22+
if (!item.itemDateExpire) return true; // no date; always show
23+
24+
const expireDate = new Date(item.itemDateExpire);
25+
26+
if (expireDate >= today) {
27+
return true;
28+
} else{
29+
return false;
30+
}
31+
});
32+
});
33+
};

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
## Description
44

5-
A collection of personal projects ranging from 2016 to present in categories such as Graphic Design, Web Design, and Animation. Website is built using Eleventy (11ty), Nunjucks is used for templating markup.
5+
A collection of personal and professional projects ranging from 2016 to present in categories such as graphic design, web design, and animation.
6+
7+
Website is built using Eleventy (11ty), Nunjucks is used for templating markup. This setup is to maximize smart features for website creation (components, variables, etc.) while also reducing data processing on servers and clients (go green).
68

79

810
## Build
@@ -11,13 +13,18 @@ Below are some more involved sections/aspects of this website (things that maybe
1113

1214
### Portfolio generation
1315

14-
To better handle sorting/filtering and to allow for easier management, portfolio items/projects are generated from JSON. The JSON file outlines an item's title, description, image source, and link (if applicable). Some styles require generating HTML each time, meaning that an easier show/hide toggle approach wouldn't work (as seen in previous website builds).
16+
To better handle sorting/filtering and to allow for easier management, portfolio items are generated from **JSON**. The JSON file outlines an item's title, description, image source, and link (if applicable). Some styles require generating HTML each time, meaning that an easier show/hide toggle approach wouldn't work (as built in previous portfolio versions).
17+
18+
Then, on page load, `build-projects-scripts.js` generates sections for each JSON item.
19+
20+
**NOTE:** This will eventually be converted to utilizing the 11ty build process to handle JSON data/item generation.
21+
1522

1623
### `/now` page
1724

18-
For easier management/updating, the items on the `/now` page are generated from JSON. The JSON file outlines different aspects of each item, including a title, description, and link (if applicable). Then, on page load, `build-projects-scripts.js` generates sections for each JSON item.
25+
For easier management/updating, the items on the `/now` page are generated from **JSON**. The JSON file outlines different aspects of each item, including a title, description, and link (if applicable).
1926

2027

2128
## Contributions
2229

23-
As this is a personal portfolio, only small contributions will be accepted and merged into main. Thank you for your interest in contributing, but this project is demonstrative of past projects AND my own abilities to build the portfolio itself. Feedback will be happily accepted through Issues, social media, or email.
30+
As this is a personal portfolio, only small contributions will be accepted and merged into main. Thank you for your interest in contributing, but this project is demonstrative of past projects AND my own abilities to build the portfolio itself. Feedback will be happily accepted through Issues, social media, or email.

_data/now.json

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"nowItems": [
3-
{
4-
"itemDateExpire": "2025-08-25",
5-
"itemTitle": "Funding",
6-
"itemCaption": "Seeking funds to help us help Terrabyte make the planet a little bit better of a place. Have to spend money to make money, or something like that. Fingers crossed! (psst get in touch if you are looking for funding opportunities..? :)",
7-
"itemCategory": "p",
8-
"linkTitle": "What is Terrabyte?",
9-
"linkHref": "https://www.terrabyte.eco"
10-
},
113
{
124
"itemDateExpire": "2026-01-20",
135
"itemTitle": "Wasted Space",
@@ -17,55 +9,46 @@
179
"linkHref": "https://www.wastedspace.fun"
1810
},
1911
{
20-
"itemDateExpire": "",
2112
"itemTitle": "Birding",
2213
"itemCaption": "I was raised on the outdoors, but as I got older, my studies and work grew to take up more and more of my free time. And now living in a big city, it can sometimes feel like I'm more disconnected to the natural world than my environmental work would suggest (and more than I would like). That was, until my brother introduced me to birding. I was skeptical on if I would actually enjoy it (or if it was an 'old person activity' like I previously thought), but it's a great way to get outside, connect with local wildlife, and be more mindful of what's out there.",
2314
"itemCategory": "p",
2415
"linkTitle": "I'm on eBird!",
2516
"linkHref": "https://ebird.org/profile/NjE4NTM3Ng"
2617
},
2718
{
28-
"itemDateExpire": "",
2919
"itemTitle": "Square Listings",
3020
"itemCaption": "Though I want to expand the Pixel Planet Today merch offerings, I'm currently working on the listings already up. That means finishing exports for wallpapers, getting stickers up on Etsy, and other organizational things to tie up loose ends.",
3121
"itemCategory": "tb",
3222
"linkTitle": "View the Webstore",
3323
"linkHref": "https://shop.pixelplanettoday.com"
3424
},
3525
{
36-
"itemDateExpire": "",
3726
"itemTitle": "byteOS: Notes",
3827
"itemCaption": "A tiny pixel art note-taking app that came to be mostly as an experiment for lightweight, offline tools. The app is released, but work on basic features is very much ongoing (like font packs, auto-saving, and recent notes).",
3928
"itemCategory": "tb",
4029
"linkTitle": "Download on Android",
4130
"linkHref": "https://play.google.com/store/apps/details?id=com.terrabyte.byteosnotes"
4231
},
4332
{
44-
"itemDateExpire": "",
4533
"itemTitle": "Pixel Planet Today",
4634
"itemCaption": "The world is constantly calling for environmental facts and pixel art: making this the project that never sleeps. I am trying to get into a more consistent posting schedule, but what can I say, there is much to be done.",
4735
"itemCategory": "tb",
4836
"linkTitle": "View the Pixel Planet Today Website",
4937
"linkHref": "https://www.pixelplanettoday.com"
5038
},
5139
{
52-
"itemDateExpire": "",
5340
"itemTitle": "Reading",
5441
"itemCaption": "Hit the reading goal for the year, but still working on a couple! TBR is getting smaller, but there is quite a pile to get through...",
55-
"itemCategory": "p",
56-
"linkTitle": "",
57-
"linkHref": ""
42+
"itemCategory": "p"
5843
},
5944
{
60-
"itemDateExpire": "",
6145
"itemTitle": "The Aurum Framework",
6246
"itemCaption": "After years of working in HTML and CSS, I am finally starting to build my own framework! It's nothing compared to Bootstrap, but a lightweight system to help build flex layouts more easily. I already use the same styles for this across (most of) my projects, so the thought is that if I can use the same resource for all of them, I don't have to have duplicate code everywhere. It's not exactly ready for primetime, but if you'd like to check it out, you're more than welcome to!",
6347
"itemCategory": "ghm",
6448
"linkTitle": "Check out the GitHub Repo",
6549
"linkHref": "https://github.com/goldenharpmedia/aurum"
6650
},
6751
{
68-
"itemDateExpire": "",
6952
"itemTitle": "Omaha & Nebraska Public Transportation Plan",
7053
"itemCaption": "Because I'm such an urbanism nerd, something that I've found myself doing is creating a map that outlines where public transportation improvements could be made in Omaha and other Central Nebraska locations. Do I expect these ideas to bloom to fruition? Not exactly, but if they did - boy, the state would be all the better for it. :)",
7154
"itemCategory": "p",
@@ -75,7 +58,15 @@
7558
],
7659

7760
"oldItems": [
78-
{
61+
{
62+
"itemDateExpire": "2025-08-25",
63+
"itemTitle": "Funding",
64+
"itemCaption": "Seeking funds to help us help Terrabyte make the planet a little bit better of a place. Have to spend money to make money, or something like that. Fingers crossed! (psst get in touch if you are looking for funding opportunities..? :)",
65+
"itemCategory": "p",
66+
"linkTitle": "What is Terrabyte?",
67+
"linkHref": "https://www.terrabyte.eco"
68+
},
69+
{
7970
"itemDateExpire": "2025-08-25",
8071
"itemTitle": "Earth Day Omaha",
8172
"itemCaption": "The biggest Earth Day event in the Omaha area, Earth Day Omaha is a celebration of our planet and the people who work to protect it. I recently joined the Green Omaha Coalition Board of Directors (yay!), and I've been very busy helping plan this year's event and create social media content to promote it.",

_includes/footer.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<a name="contact"></a>
12
<footer>
23
{# carbon footer #}
34
<div class="reg-footer">

css/footer-styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*primary footer styles*/
22
footer{
3-
background-color:#333333;
3+
background-color:var(--base-charcoal);
44
position:relative;
55
/* z-index:2; */
6-
color:white;
6+
color:var(--base-white);
77
font-size:14px;
88
}
99
/* responsive */

0 commit comments

Comments
 (0)