diff --git a/src/components/ContentNav/ContentNav.tsx b/src/components/ContentNav/ContentNav.tsx index cbee5e1..a133e81 100644 --- a/src/components/ContentNav/ContentNav.tsx +++ b/src/components/ContentNav/ContentNav.tsx @@ -20,15 +20,19 @@ const ContentNav: FC = ({ ); return (
- +
+ + {Chevron} + {prevText} + +
{current &&
{current}
} - +
+ + {nextText} + {Chevron} + +
{current &&
{current}
}
); diff --git a/src/styles/components/content-nav.css b/src/styles/components/content-nav.css index 5d438f5..6bd075e 100644 --- a/src/styles/components/content-nav.css +++ b/src/styles/components/content-nav.css @@ -1,17 +1,25 @@ .content-nav { - @apply flex gap-y-2 justify-between border-b border-b-gray-200 pb-4 flex-wrap mt-5 sm:flex-nowrap dark:border-b-gray-700; - button { - @apply flex items-center gap-2 text-gray-500 hover:underline focus-visible:underline px-0 w-2/4 sm:w-auto dark:text-gray-300; - &:first-of-type img { - @apply rotate-90; + @apply flex gap-y-2 justify-between border-b border-b-gray-200 pb-4 flex-wrap mt-5 sm:flex-nowrap dark:border-b-gray-700 sm:grid sm:grid-cols-3; + + .nav-item { + a { + @apply flex items-center gap-2 text-gray-500 hover:underline focus-visible:underline px-0 sm:w-auto dark:text-gray-300 w-full; } - &:last-of-type { - @apply justify-end; - img { - @apply -rotate-90; + &.prev { + a img { + @apply rotate-90; + } + } + &.next { + a { + @apply justify-end; + img { + @apply -rotate-90; + } } } } + .current { @apply text-2xs text-center sm:text-xs; &.middle { diff --git a/src/styles/components/not-found.css b/src/styles/components/not-found.css new file mode 100644 index 0000000..b6afeff --- /dev/null +++ b/src/styles/components/not-found.css @@ -0,0 +1,9 @@ +.not-found { + @apply pt-6 flex-grow justify-center; + .heading { + @apply text-lg min-[420px]:text-xl transition-font-size xs:text-2xl; + } + .button { + @apply mr-auto; + } +} diff --git a/src/styles/main.css b/src/styles/main.css index 62650e7..1246253 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -10,3 +10,4 @@ @import "./components/content-nav.css"; @import "./components/card-grid.css"; @import "./components/switchback.css"; +@import "./components/not-found.css";