Project Scope and ToDos
- Create a versatile blog site
- Create a framework that makes it easy to add external data to the site
- Give the site the capacity to replicate the logging and rating I do on Serialized and Letterboxd.
- Be able to pull down RSS feeds from other sites and create forward links to my other sites
- Create forward links to sites I want to post about.
- Create a way to pull in my Goodreads data and display it on the site
- Create a way to automate pulls from other data sources
- Combine easy inputs like text lists and JSON data files with markdown files that I can build on top of.
- Add a TMDB credit to footer in base.njk
- Make sure tags do not repeat in the displayed tag list.
- Get my Kindle Quotes into the site
- YouTube Channel Recommendations
- Minify HTML via Netlify plugin.
- Log played games
Day 14
Ok, let's get back at the share button.
The only thing left is to style it. I've got some basic stuff in here but do I want to add an additional button? I think I want to have a Share Openly button.
Easy enough to add the button and the logic, ShareOpenly is very easy to use:
triggerShareOpenly(context) {
const shareUrl = this.url;
const shareTitle = this.shareText || this.title;
const shareLink = 'https://shareopenly.org/share/?url='+encodeURIComponent(shareUrl)+"&text="+encodeURIComponent(shareTitle);
// Open the share dialog with the specified URL and text
window.open(shareLink, '_blank');
}
I'll re-layout the buttons as a flex layout.
I want to make the share area background just a little bit darker, but I don't want to add another color. I think I can handle an opacity shift with CSS?
Yeah, looks like there's a way to do this in a straightforward way! I'm not super familiar with this technique, but it does work without me declaring another theme color. Pretty nice.
I made it just slightly darker, to give the whole footer area a gradient style by using the css:
background-color: var(--background-muted);
background-image: linear-gradient(hsla(0,0%,0%,.3) 100%,transparent 100%);
This is enough to make it live though! I'll have to figure out the share dialogue positioning later. I'll also add some classes to make it trackable in Plausible.
git commit -am "Get share buttons production ready and add shareopenly"