diff --git a/web/LICENSE b/web/LICENSE index 2f135a0dd4a..28d3111e34a 100644 --- a/web/LICENSE +++ b/web/LICENSE @@ -215,3 +215,6 @@ ./src/types/axios.d.ts ./src/lib/enums/httpEnum.ts ./src/lib/utils/index.js (parts of) + + Third party SIL Open Font License v1.1 (OFL-1.1) + (SIL OPEN FONT LICENSE Version 1.1) The Alata font family (https://github.com/SorkinType/Alata) diff --git a/web/src/app/login/page.js b/web/src/app/login/page.js index d6efd0eff7f..6d914d0b657 100644 --- a/web/src/app/login/page.js +++ b/web/src/app/login/page.js @@ -7,9 +7,11 @@ import { useRouter } from 'next/navigation' import Image from 'next/image' +import { Alata } from 'next/font/google' import { Box, Card, Grid, Button, CardContent, Typography, TextField, FormControl, FormHelperText } from '@mui/material' +import clsx from 'clsx' import * as yup from 'yup' import { useForm, Controller } from 'react-hook-form' import { yupResolver } from '@hookform/resolvers/yup' @@ -17,6 +19,8 @@ import { yupResolver } from '@hookform/resolvers/yup' import { useAppDispatch } from '@/lib/hooks/useStore' import { loginAction } from '@/lib/store/auth' +const fonts = Alata({ subsets: ['latin'], weight: ['400'], display: 'swap' }) + const defaultValues = { grant_type: 'client_credentials', client_id: '', @@ -63,12 +67,15 @@ const LoginPage = () => { logo - + Gravitino diff --git a/web/src/app/rootLayout/AppBar.js b/web/src/app/rootLayout/AppBar.js index 47b45c4e389..b734f983809 100644 --- a/web/src/app/rootLayout/AppBar.js +++ b/web/src/app/rootLayout/AppBar.js @@ -7,6 +7,9 @@ import Link from 'next/link' import Image from 'next/image' +import { Alata } from 'next/font/google' + +import { useState, useEffect } from 'react' import { Box, @@ -20,6 +23,8 @@ import { MenuItem } from '@mui/material' +import clsx from 'clsx' + import VersionView from './VersionView' import LogoutButton from './Logout' import { useSearchParams } from 'next/navigation' @@ -27,7 +32,7 @@ import { useRouter } from 'next/navigation' import { useAppSelector, useAppDispatch } from '@/lib/hooks/useStore' import { fetchMetalakes } from '@/lib/store/metalakes' -import { useState, useEffect } from 'react' +const fonts = Alata({ subsets: ['latin'], weight: ['400'], display: 'swap' }) const AppBar = () => { const searchParams = useSearchParams() @@ -65,16 +70,17 @@ const AppBar = () => { > logo Gravitino diff --git a/web/src/lib/styles/globals.css b/web/src/lib/styles/globals.css index f8e6edce5a4..9cb2eeaf62d 100644 --- a/web/src/lib/styles/globals.css +++ b/web/src/lib/styles/globals.css @@ -7,8 +7,6 @@ @tailwind components; @tailwind utilities; -@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap'); - html, body { min-height: 100%; @@ -17,7 +15,3 @@ body { a { -webkit-user-drag: none; } - -.logoText { - font-family: 'Alata' !important; -}