Most of our human relationships work like this: invest time, share respect and treat each other well enough that you eventually form a strong bond of love. When that chain is broken, we don't end up with a strong relationship-in fact it leads to one not being formed at all.
One of our biggest struggles as flawed humans is that we impose that same pattern on our relationship with God. We believe that if we attend church, don't look at porn, don't get drunk, pray & read our Bible fairly regularly and are decent people that He will love us. When we mess up any of that it's a bad day and we think God is disappointed and His love decreases.
The error in this philosophy is that we are imposing human characteristics on God. He doesn't place His love for us at the end of our relationship, but at the beginning. His love isn't given because we have earned it, but simply because of who He is and who we are to Him.