Simple vanilla project : HTML, CSS, TypeScript. First time exploring ES6 modules without any Framework. First time exploring PWA (install, offline page, cached assets)
Any feedback is welcome.
Simple vanilla project : HTML, CSS, TypeScript. First time exploring ES6 modules without any Framework. First time exploring PWA (install, offline page, cached assets)
Any feedback is welcome.
Nice job! 👍 You linked github repo is not working :(
What is the best way to create beautiful SVG backgrounds without hacks?
On the .card-icon class you could also use
background-image:url(...pathToSvgFile);
background-position: x y;
background-repeat: no-repeat;
If you do it like this you need to give the class a height or a margin-top otherwise the height will be 0 because the div does not need the img in the inside anymore.
At the beginning of each project, I am always undecided about which are the smartest names to give to the classes. Any suggestions? I'd be happy to check out any alternatives to the script I wrote: I'm not a pro in Javascript. Feel free to report me your solution! Thanks to who will answer.
Your code and structure are awesome! A tip, the bottom corners of the smaller cards, you can see the other backgroundcolor. I transform and translateY the overlaying box by 1px ;)
I wanted to start practicing with JSON and the Fetch API and with this challenge I got just what I wished for.
What seemed another head scratcher at first with heaps of lines of JS code resulted in a quite simple few lines with a forEach()
function. Nonetheless, I've seen here much more elegant solutions for this challenge.
There is room for improvement as always!
I appreciate your time to look at my code, critique and help in any way possible.
Obrigado.
If you change to daily the previous text should say "Yesterday - xhrs".
In your script, you could write a high-level function like updateActivityCard(elements, values) and in there you use yours for a loop. The loop is repetitive within you script.
I like the hover effect on the theme cards btw :)
There is an issue with the centering on smaller screen than the one from the designs. Instead of using margin auto on left and right you should use
display:flex;
justify-content:center;
align-items:center;
Mhhh looks like the screenshot were taken faster than the style of the user card is applied... On the live page, everything looks fine.
I had a difficulty in changing the position of HTL elements on smaller screens. Any one with an answer / suggestion would be greatly appreciated. Thank you
Check out flexbox and grid to switch the layout in mobile (media queries). I like the animation of the arrow ;)
I really like the first search modal! Nice idea ;)
Hey everybody, I would appreciate any feedback. There's a few things that I couldn't quite figure out.
How to change the color of the SVG images. In dark mode, they're supposed to be white. Also, when something is 'Not Available' (i.e. twitter handle) it's supposed to be greyed out. I can't figure out how to change the color at all, let alone how to programmatically change it when something is 'Not Available'.
Another thing that's driving me crazy is that when the screen width gets too small the button gets pushed out of the form. Even worse, when the 'No result' error is there, it pushes it even further and 'No result' goes to 2 lines, for some reason.
Also, I feel like I could definitely refactor some of my javascript. This is my first "junior" project, after doing a few "newbies".
Thanks in advance for any help!
You can change the color of an svg with the fill attribute of the svg path like this:
.btn--text:hover > #theme-icon path { color: var(--btn--text-color--hover); fill: var(--btn--text-color--hover); }
The Button issue within the search box can be fixed by applying a width of 100% to the input.
Any Response Accepted
Wow you did it without JS at all! Nice! But as Patrick noticed the Menue does not stay open :) but that is fixable for sure.
Hello, front-end developers! How are you?
So, this is my first project trying to use BEM methodology, I would really apreciate if you guys give some feedback if I did something wrong or anything that I can improve.
Besides that, this project was really fun! I learned a lot about how to use grid-template-areas and pseudo-elements (::after) to create an arrow to my "tooltip" social media.
Thank you! Keep coding!!
Very nice solution and the js part is very small too! Nice job!
The pop-up menu is hard to position, and when I change the viewport's width, the pop-up menu's position isn't where it should be. Is there any solution to this? Or is there another way of making a pop-up menu? Thank you.
You could also read out the width and height of the window in js with
let windowWidth;
let windowHeight;
window.addEventListener("resize", function () {
windowWidth = window.innerWidth;
windowHeight = window.innerHeight;
});
With knowing the dimensions you can calculate the position of the initial share button and add some space to it.