-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) 2022 The Brave Authors. All rights reserved. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// you can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
import * as React from 'react' | ||
import styled from 'styled-components' | ||
import { LoaderIcon } from 'brave-ui/components/icons' | ||
|
||
const Loading = styled('div')` | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
` | ||
|
||
const Graphic = styled('div')` | ||
width: 50px; | ||
height: 50px; | ||
align-self: center; | ||
svg { | ||
fill: white; | ||
} | ||
` | ||
|
||
export default function Loader () { | ||
return ( | ||
<Loading aria-busy='true'> | ||
<Graphic aria-label='Loading'> | ||
<LoaderIcon /> | ||
</Graphic> | ||
</Loading> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,19 @@ | |
// you can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
import * as React from 'react' | ||
import { getLocale } from '$web-common/locale' | ||
import classnames from '$web-common/classnames' | ||
|
||
import * as S from './style' | ||
|
||
import classnames from '$web-common/classnames' | ||
import { getLocale } from '$web-common/locale' | ||
import Button from '$web-components/button' | ||
|
||
import { WelcomeBrowserProxyImpl, DefaultBrowserBrowserProxyImpl } from '../../api/welcome_browser_proxy' | ||
import WebAnimationPlayer from '../../api/web_animation_player' | ||
|
||
import DataContext from '../../state/context' | ||
import { ViewType } from '../../state/component_types' | ||
import { useShouldPlayAnimations } from '../../state/hooks' | ||
|
||
import Button from '$web-components/button' | ||
import braveLogoUrl from '../../assets/[email protected]' | ||
|
||
function Welcome () { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters