I have finished building my app to help anyone find the best font for their next project! You can cycle through all the fonts, select the weight and size, type anything you want to preview the text (updated in real time) and then if you like the font you can get it with the click of a button!
Please mess around with my creation and give me all the feedback you can!
One day I want to be able to use an API from google fonts to create a more streamlined version where i don’t hardcode everything myself. But i dont understand fetch and that stuff yet so its a work in progress on that one
Pretty cool project!! I would prefer to make the output section’s height to match the text within it because it is kinda big and takes up quite a bit of space.
the background is a bit too dark and doesn’t really match with the other stuff.
What are you viewing the page on? The 3 categories should be highlighted different colours on a computer. On my iPhone they aren’t but I’m not sure how to change the select menu colours for an iPhone if anyone has any knowledge
Edit:
So I tried it with Firefox and Safari too. Firefox is the only one where I see the categories highlighted by color.
But problem with being able to select those three headers prevails across all three browsers.
If I click on the ‘Get this font’ button w/out having selected anything I still get a pop-up that says “Nice Choice!” etc. Of course when click the Get Font button I get your 404 page. Think about possibly checking to see that at a minimum the Select a Font field is filled in prior to activating the ‘Get this Font’ button.
Edit:
Btw, I failed to mention that this is pretty cool. A good project that you thought of to challenge yourself. And one that will go through multiple versions and releases as your learning progresses.
I posted something similar for a project I’ve been working on. It shows the three stages it’s gone through so far and I mentioned the enhancement I have in mind for the next.
I didn’t look to see if google fonts has an API that you can use or if you’ll have to use fetch but it’s cool that you’re already looking forward. Keep it up.
Thanks for all the feedback! I will begin diving into solutions for those. The one about the color not showing up is very weird. I am using bootstrap 4 as the front end framework so it should work across all browsers. I will look into that as well
Not sure if you’ve used Bootstrap 3 previously and are now using 4 so I’ll mention that they’ve changed some class names from 3 to 4. Especially the nav. If you’re using 4 as you say but still using a call from 3 you won’t get what you expect.
One thing I had done for myself when I was first playing with (trying to learn) Bootstrap was to make a few pages. I started with 3 because v4 was just in beta. I then tried creating those pages with the beta and damn, so many things were broken until I went in and read the docs and discovered the class name changes.
I gave the font categories a value of 0 through 3. If the current value of the font when you click the first button is one of these numbers, it should alert you and stop the modal pop-up. if the value is not 0 through 3, the modal should show and the program will continue as before.
Do you see anything wrong with this code? To my eyes it should work
@Roma Alright I have coded it, loaded it up and its done! I went with a different solution in the end. I decided to change the data-target of the button to a separate modal window based on the current font value. This is what I went with
$button.on(‘click’, function (e) {
let fontValue = $font.val().toLowerCase();