You'll get an error in the console when you use the code as is on NextJS 13 that <a> tags are no longer supported. Removing them and moving the styles out to the <Link> tag is the fix. https://nextjs.org/blog/next-13#nextlink