I have the code up and working so far, but where I’m stumbling is importing social media icons.
I’ve been trying with bootstrap, importing libraries, and other various experiments.
line 71-73 in JS:
<div class="social-media-buttons">
</div>
Whatever I try, they would not render, unless I use svg, which is kind of ugly tbh and I’d rather not; plus, I’d like to learn how to import stuff like icons from external sources and so far I haven’t had much luck.
Using “import” just breaks the page entirely, using the build-in external scripts/pens feature either doesn’t work, or I don’t know how to access the libraries.
This is the first project I’ve had to do offsite of freecodecamp and wasn’t given much instruction.
Implementing the bootstrap lessons from FCC isn’t yielding any results either, and I’d like to not have to re-write the whole thing just because of this one issue because, as I mentioned, I’d like to learn how to import and use external resources.
I’ve stumbled on this thread, too.
I can get them to show up on HTML (following their instructions), but I’ve been coding in the JS/React portion and still getting my bearings on how they talk to each other.
Thanks!
Ah, rookie mistake, thanks for catching that.
Still struggling with the icons, tho. Day 4 of troubleshooting the most basic problem, inserting an icon…
I know but Codepen is kind of bad with front-end frameworks and the environment is not at all similar to a local experience.
I would use Stackblitz with a Vite React template. That should work with the tests and is a much better experience and much closer to how you would code it locally. You can do that as well by the way, code it locally and then host it on something like Netlify or Vercel.
Good to know for the next project, but I suspect codepen will be most people’s first experience coding html/css/JS independently as that’s what FCC linked to.
They might wanna change that, or have an extra course prior teaching you how that all works because up to now it was all done on their site, with everything in the background.
Thanks again for the help, it’s been a frustrating few days hitting a wall at the simplest part, inserting two icons. Will branch out for the next project.