The beneficial thingy for the heart is from the grape. Grape juice is good for the heart, doesn't need to be wine and the amount of the thingy(I can't recall the name) is pretty low.
Tannins can be good for you, but not the alcohol. You could get similar benefits drinking alcohol free wine or even just really tannin rich grape juice. Even a cup of tea has good tannins though.
Pretty sure sun isn't good for the skin, sun exposure without adequate protection just increases cancer risk, especially sunburns. It is good for mental health though, but you should still avoid exposing uncovered skin without sunscreen - it's an unfortunate balance where you might have to harm your body to a limited degree because our brains are wired to enjoy it.
From the first link, sounds like what the other reply said - vitamin D is important (but can be gotten from other sources), and I failed to mention it. Sorry. That said, it also recommends wearing a hat, and using sunscreen when outside for longer periods of time.
I unfortunately can't read the second link without agreeing for them to sell my data, so that's a nope.