-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/footer social media icons - option 1 #60
Conversation
…called social-media.ts - created a new file social-media.ts - applied styles on social-share.css - container is shown on footer. It can be shown on header but it looks best on the footer if approved.
✔️ Deploy Preview for practical-fermat-fa2c48 ready! 🔨 Explore the source changes: dcea933 🔍 Inspect the deploy log: https://app.netlify.com/sites/practical-fermat-fa2c48/deploys/61da7b2fb78eca0007867950 😎 Browse the preview: https://deploy-preview-60--practical-fermat-fa2c48.netlify.app/ |
Awesome, will definitely be reviewing this in a little bit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks nice, and thanks for adding the test!
I'm thinking, given this is a one off use case and the links / content are all static, it might make more sense to avoid extra JavaScript by making an entire WC for it, and just having the HTML hardcoded right in the footer instead? (my short term goal in general is to migrate this project to be more static / hybrid and less SPA, so this would also aid in the effort as well)
I'm reaching out now to get the Instagram link for you. 👍
<p class='copyright-text'>© ${STARTING_YEAR} - ${currentYear} Analog Studios</p> | ||
</div> | ||
<div class='col-xs-12'> | ||
<app-socials-media></app-socials-media> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking maybe it would be better to put these links above the copyright? Also maybe making them a little bigger?
src/components/footer/footer.spec.js
Outdated
@@ -23,6 +23,12 @@ describe('Footer Component', () => { | |||
expect(footer.shadowRoot.querySelectorAll('footer').length).equal(1); | |||
}); | |||
|
|||
it('should have two div containers', () => { | |||
const elements = footer.shadowRoot.querySelectorAll('div.row > div'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we could test for something a little more concrete? Like N number of <a>
tags to capture each link added?
@aimeelramirez |
Thanks, Owen(@thescientist13)! I was trying to apply the same coding conventions as you had done previously 😓. I'm happy to hardcode it to meet the requirements on WC. 😁
Let me know what you think! 😅 Sincerely, |
Thanks for the good questions / feedback. 👍
All good. I think the key distinction here for me anyway is that these are just links to websites, and is not a sharing mechanism per se, so no JavaScript or interactivity is really needed when all we're really talking about is an The existing social share component is different in that it has to be dynamic per page / instance. In other words, sharing URLs like These social links are always going to stay the same on every page since it's well, just a link. :) In addition, it's just a lot less code. <a href="https://youtube.com/....."><i>.....</i></a>
<a href="https://facebook.com/....."><i>.....</i></a>
<a href="https://instagram.com/....."><i>.....</i></a> In general if it can be done without JavaScript, ideally I opt for that first. I'm sure there will be plenty of opportunities to write some JavaScript / WCs, but not sure it's the best solution for this particular task. 🤓
Sure, If you want to give it a shot in another PR I'm fine with that. It wouldn't be work I would sponsor at the moment since I'm still thinking if I want to redesign this site or not and my main goal right now is to convert more of the dynamic content to static and go in a more hybrid direction, so that is top of mind at the moment for me. You can see #37 for more info on that discussion.
It is already is bundled with the site and under package management, as well as minified, unless I am misunderstanding your suggestion? That said, due to Shadow DOM, it is being overly bundled / duplicated but I have that solution almost implemented in #56 . edit: Thinking on it some more, I would be open with at least evaluating the upgrade to Bootstrap, at which point doing the same for FA might also be valuable. Made a discussion to continue that convo as a sponsorship candidate - #61 |
* Resolves #51 Related to #60 <!-- Brief summary of the issue. --> 1. [x] created and validated W3C development tools upon creating tags "footer.ts." 2. [x] applied styles on "footer.css." 3. [x] applied test spec to select anchor tags to be found. * headline tag for w3c tests * final fixes until review upon acceptance * final fixes until review upon acceptance on ' * html to have " in reviewing files * formatting the tasks completed upon switching links above copyright, test spec on nth of type, and css style to space evenly within host * add spacing between icons * open social links in new window Co-authored-by: Owen Buckley <owenbuckley13@gmail.com>
Related Issue
Resolves #51
Summary of Changes
app-socials-media
is shown on "footer.ts". It can be shown on "header.ts" but it looks best on the footer if approved.