-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(project): config loading state and add screens
- Loading branch information
1 parent
c980657
commit 034da76
Showing
19 changed files
with
215 additions
and
6 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,56 @@ | ||
@use '../../styles/variables'; | ||
@use '../../styles/theme'; | ||
|
||
.loadingOverlay { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
z-index: variables.$loading-z-index; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100vw; | ||
height: 100vh; | ||
|
||
background-color: var(--body-background-color); | ||
} | ||
|
||
.buffer { | ||
position: relative; | ||
display: inline-block; | ||
width: 80px; | ||
height: 80px; | ||
} | ||
|
||
.buffer div { | ||
position: absolute; | ||
display: block; | ||
width: 64px; | ||
height: 64px; | ||
margin: 8px; | ||
border: 4px solid #fff; | ||
border-color: #fff transparent transparent transparent; | ||
border-radius: 50%; | ||
animation: buffer 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; | ||
} | ||
|
||
.buffer div:nth-child(1) { | ||
animation-delay: -0.45s; | ||
} | ||
|
||
.buffer div:nth-child(2) { | ||
animation-delay: -0.3s; | ||
} | ||
|
||
.buffer div:nth-child(3) { | ||
animation-delay: -0.15s; | ||
} | ||
|
||
@keyframes buffer { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} |
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,18 @@ | ||
import React from 'react'; | ||
|
||
import styles from './LoadingOverlay.module.scss'; | ||
|
||
const LoadingOverlay: React.FC = () => { | ||
return ( | ||
<div className={styles.loadingOverlay}> | ||
<div className={styles.buffer}> | ||
<div /> | ||
<div /> | ||
<div /> | ||
<div /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LoadingOverlay; |
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
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,2 @@ | ||
@use '../../styles/variables'; | ||
@use '../../styles/theme'; |
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,12 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
|
||
import Series from './Series'; | ||
|
||
describe('<Series>', () => { | ||
test('renders and matches snapshot', () => { | ||
const { container } = render(<Series />); | ||
|
||
expect(container).toMatchSnapshot(); | ||
}); | ||
}); |
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,17 @@ | ||
import React from 'react'; | ||
|
||
import styles from './Series.module.scss'; | ||
|
||
type Props = { | ||
prop?: string; | ||
}; | ||
|
||
const Series: React.FC<Props> = ({ prop }: Props) => { | ||
return ( | ||
<div className={styles.Series}> | ||
<p>{prop}</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Series; |
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,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<Series> renders and matches snapshot 1`] = ` | ||
<div> | ||
<div> | ||
<p /> | ||
</div> | ||
</div> | ||
`; |
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,2 @@ | ||
@use '../../styles/variables'; | ||
@use '../../styles/theme'; |
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,12 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
|
||
import Settings from './Settings'; | ||
|
||
describe('<Settings>', () => { | ||
test('renders and matches snapshot', () => { | ||
const { container } = render(<Settings />); | ||
|
||
expect(container).toMatchSnapshot(); | ||
}); | ||
}); |
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,17 @@ | ||
import React from 'react'; | ||
|
||
import styles from './Settings.module.scss'; | ||
|
||
type Props = { | ||
prop?: string; | ||
}; | ||
|
||
const Settings: React.FC<Props> = ({ prop }: Props) => { | ||
return ( | ||
<div className={styles.Settings}> | ||
<p>{prop}</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Settings; |
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,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<Settings> renders and matches snapshot 1`] = ` | ||
<div> | ||
<div> | ||
<p /> | ||
</div> | ||
</div> | ||
`; |
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,2 @@ | ||
@use '../../styles/variables'; | ||
@use '../../styles/theme'; |
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,12 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
|
||
import Video from './Video'; | ||
|
||
describe('<Video>', () => { | ||
test('renders and matches snapshot', () => { | ||
const { container } = render(<Video />); | ||
|
||
expect(container).toMatchSnapshot(); | ||
}); | ||
}); |
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,17 @@ | ||
import React from 'react'; | ||
|
||
import styles from './Video.module.scss'; | ||
|
||
type Props = { | ||
prop?: string; | ||
}; | ||
|
||
const Video: React.FC<Props> = ({ prop }: Props) => { | ||
return ( | ||
<div className={styles.Video}> | ||
<p>{prop}</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Video; |
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,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<Video> renders and matches snapshot 1`] = ` | ||
<div> | ||
<div> | ||
<p /> | ||
</div> | ||
</div> | ||
`; |