From c37ed3d4187081c04606b53a9569d22d5dd63793 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 2 Dec 2020 11:36:24 -0300 Subject: [PATCH] I18n Better Experience --- .../common/I18nWidget/I18nWidget.module.css | 14 +++++++ components/common/I18nWidget/I18nWidget.tsx | 38 ++++++++----------- components/icons/ChevronUp.tsx | 20 ++++++++++ components/icons/index.ts | 1 + 4 files changed, 50 insertions(+), 23 deletions(-) create mode 100644 components/icons/ChevronUp.tsx diff --git a/components/common/I18nWidget/I18nWidget.module.css b/components/common/I18nWidget/I18nWidget.module.css index 6e8883521..07a1aeba7 100644 --- a/components/common/I18nWidget/I18nWidget.module.css +++ b/components/common/I18nWidget/I18nWidget.module.css @@ -6,6 +6,10 @@ @apply h-10 px-2 rounded-md border border-accents-2 flex items-center justify-center; } +.button:hover { + @apply border-accents-4 shadow-sm; +} + .button:focus { @apply outline-none; } @@ -18,6 +22,12 @@ } } +.closeButton { + @screen md { + @apply hidden; + } +} + .item { @apply flex cursor-pointer px-6 py-3 flex transition ease-in-out duration-150 text-primary leading-6 font-medium items-center; text-transform: capitalize; @@ -26,3 +36,7 @@ .item:hover { @apply bg-accents-1; } + +.icon { + transform: rotate(180deg); +} diff --git a/components/common/I18nWidget/I18nWidget.tsx b/components/common/I18nWidget/I18nWidget.tsx index d533e8c5e..5c82e3a9a 100644 --- a/components/common/I18nWidget/I18nWidget.tsx +++ b/components/common/I18nWidget/I18nWidget.tsx @@ -3,7 +3,7 @@ import Link from 'next/link' import { FC, useState } from 'react' import { useRouter } from 'next/router' import s from './I18nWidget.module.css' -import { Cross } from '@components/icons' +import { Cross, ChevronUp } from '@components/icons' interface LOCALE_DATA { name: string img: { @@ -43,29 +43,21 @@ const I18nWidget: FC = () => { return (