Two ways to answer the same question. The bucket method sets your mix by when you'll spend the money. The age rule sets it by your age. Neither is the right answer, and seeing both at once is the point. Your portfolio is shared across both, so change it on either side.
Allocation set by when you'll need the money, not by your age. Money you'll spend soon stays out of the market. Money you won't touch for years can grow.
A common rule of thumb sets your growth share as a number minus your age, so the mix grows more conservative as you get older. It's the idea behind target-date funds, sometimes called a glide path.