diff --git a/components/core/Footer/Footer.tsx b/components/core/Footer/Footer.tsx index ed5bd469b..2ed351c75 100644 --- a/components/core/Footer/Footer.tsx +++ b/components/core/Footer/Footer.tsx @@ -1,11 +1,11 @@ import { FC } from 'react' import cn from 'classnames' import Link from 'next/link' -import type { Page } from '@lib/bigcommerce/api/operations/get-all-pages' import getSlug from '@utils/get-slug' +import { Github } from '@components/icon' import { Logo, Container } from '@components/ui' -import { Github, DoubleChevron } from '@components/icon' - +import type { Page } from '@lib/bigcommerce/api/operations/get-all-pages' +import { I18nWidget } from '@components/core' interface Props { className?: string children?: any @@ -82,13 +82,7 @@ const Footer: FC = ({ className, pages }) => {
-
- - English - - - -
+
diff --git a/components/core/I18nWidget/I18nWidget.module.css b/components/core/I18nWidget/I18nWidget.module.css new file mode 100644 index 000000000..e9986cd32 --- /dev/null +++ b/components/core/I18nWidget/I18nWidget.module.css @@ -0,0 +1,23 @@ +.root { + @apply relative; +} + +.button { + @apply h-10 px-2 rounded-md border border-accents-2 flex items-center space-x-2 justify-center; +} + +.dropdownMenu { + @apply fixed right-0 top-12 mt-2 origin-top-right outline-none bg-primary z-40 w-full h-full; + + @screen lg { + @apply absolute border border-accents-1 shadow-lg w-56 h-auto; + } +} + +.item { + @apply flex cursor-pointer px-6 py-3 block hover:bg-accents-1 transition ease-in-out duration-150 text-base leading-6 font-medium text-gray-900 items-center; + text-transform: capitalize; +} + +.item.active { +} diff --git a/components/core/I18nWidget/I18nWidget.tsx b/components/core/I18nWidget/I18nWidget.tsx new file mode 100644 index 000000000..77d33e539 --- /dev/null +++ b/components/core/I18nWidget/I18nWidget.tsx @@ -0,0 +1,38 @@ +import { FC } from 'react' +import s from './I18nWidget.module.css' +import { Menu } from '@headlessui/react' +import { DoubleChevron } from '@components/icon' +import cn from 'classnames' + +const I18nWidget: FC = () => { + return ( + + ) +} + +export default I18nWidget diff --git a/components/core/I18nWidget/index.ts b/components/core/I18nWidget/index.ts new file mode 100644 index 000000000..46525c3d4 --- /dev/null +++ b/components/core/I18nWidget/index.ts @@ -0,0 +1 @@ +export { default } from './I18nWidget' diff --git a/components/core/index.ts b/components/core/index.ts index b7f384eaa..eea02cdec 100644 --- a/components/core/index.ts +++ b/components/core/index.ts @@ -8,3 +8,4 @@ export { default as UserNav } from './UserNav' export { default as Toggle } from './Toggle' export { default as Head } from './Head' export { default as HTMLContent } from './HTMLContent' +export { default as I18nWidget } from './I18nWidget'