Skip to content

Commit

Permalink
feat: ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wellitongervickas committed Oct 27, 2023
1 parent 65224da commit 2ec4c37
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function BaseLayout({ children, params }: BaseLayoutProps) {
className={classNames(
'flex min-h-screen flex-col',
'h-screen overflow-x-hidden text-sm font-medium',
'bg-stone-100 text-stone-900/70',
'bg-stone-100 text-stone-900',
'dark:bg-third-100 dark:text-cyan-50'
)}
>
Expand Down
1 change: 0 additions & 1 deletion app/components/header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { type HTMLProps } from 'react'
import dynamic from 'next/dynamic'
import appConfig from '@/app.config'
import classNames from 'classnames'
import { Separator, Logo, Loading, Navigation } from '@/app/components'
import { Locales } from '@/locales/locales'
Expand Down
4 changes: 3 additions & 1 deletion app/components/language/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export const LanguageList = (props: HTMLProps<HTMLUListElement>) => {
'flex cursor-pointer items-center justify-between space-x-2 p-2'
)}
>
<Typography.Text as='span'>{locale}</Typography.Text>
<Typography.Text as='span' className='capitalize'>
{locale}
</Typography.Text>
{locale === currentLocale && (
<CheckBadgeIcon width={18} className='text-green-400' />
)}
Expand Down
4 changes: 3 additions & 1 deletion app/components/language/Selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export const LanguageSelector = ({
'flex cursor-pointer justify-between'
)}
>
<Typography.Text as='span'>{currentLocale}</Typography.Text>
<Typography.Text as='span' className='capitalize'>
{currentLocale}
</Typography.Text>
<ChevronDownIcon
width={18}
className={classNames('transform', {
Expand Down
4 changes: 2 additions & 2 deletions app/components/typography/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { type HTMLProps, createElement } from 'react'
import classNames from 'classnames'

export const Sizes = {
default: 'text-xs',
sm: 'text-sm',
default: 'text-sm',
md: 'text-md',
base: 'text-base'
} as const

Expand Down

0 comments on commit 2ec4c37

Please sign in to comment.