I'm sorry to be blunt, but if this is the case then your skills are very much rock bottom. So you have two options:
1. get better at your job. IT is in boom now, so if you can't find a job in a reasonable amount of time then there is something very wrong and you should do something about it.
2. admit that you are not only not any good, but you don't even care. But don't try to sugarcoat it with something like "to build versatile skills that might allow more job flexibility in the future" - at this point in time, being a frontend dev is probably the best occupation to have "job flexibility". In this case, of course you should try to find out what you like doing, eg. if you have a hobby, that you could take more seriously, for example.
Your best bet would probably be to combine 1 & 2, eg. just suck it up until you get hired as a UI dev for a company that allows repositioning later. For example, you can start at a financial firm as an IT person, learn the business and then use internal mobility to move to the business side of things. I've seen this happen multiple times. Of course, this approach requires significant effort on your part but offers great returns.