Skip to content

Commit

Permalink
feat: add logo
Browse files Browse the repository at this point in the history
Signed-off-by: chenzhixiang <[email protected]>
  • Loading branch information
chenzhixiang committed Jan 12, 2023
1 parent a77f862 commit 87f275a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
Binary file modified public/favicon.ico
Binary file not shown.
5 changes: 5 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/horizon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 2 additions & 21 deletions src/pages/user/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Footer from '@/components/Footer';
import { getAuthEndpoints, loginByPasswd } from '@/services/login/login';
import styles from './index.less';
import './index.less';
import { API } from '@/services/typings';
import { BoldText } from '@/components/Widget';
import WithTheme from '@/theme';

Expand Down Expand Up @@ -53,24 +52,6 @@ const PaddingBox = styled.div`
padding: 30px;
`;

const Title = styled.h1`
margin-top: 10px;
margin-bottom: 20px;
`;

const CircleAvatar = styled.div`
width: 60px;
height: 60px;
font-size: 50px;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
color: white;
background-color: black;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
`;

interface OidcLoginProps {
endpoints: API.AuthEndpoint[],
}
Expand Down Expand Up @@ -224,8 +205,8 @@ function Login(props: LoginProps) {

return (
<FullScreen>
<CircleAvatar>H</CircleAvatar>
<Title>Sign in to Horizon</Title>
{/* eslint-disable-next-line jsx-a11y/alt-text */}
<img src="/horizon.svg" style={{ marginBottom: '30px' }} />
<Card>
{button}
{method === LoginMethod.oidc && <OidcLogin endpoints={endpoints!} />}
Expand Down

0 comments on commit 87f275a

Please sign in to comment.