Skip to content

Commit 2b50894

Browse files
Jyotiarora2610 refactor liveindex (codesandbox#3177)
Co-authored-by: Jyoti Arora <jyotiarora2610@gmail.com>
1 parent 8634796 commit 2b50894

File tree

5 files changed

+194
-204
lines changed

5 files changed

+194
-204
lines changed

packages/app/src/app/pages/Live/BlinkingDot.js renamed to packages/app/src/app/pages/Live/BlinkingDot.tsx

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
import React from 'react';
2-
import styled from 'styled-components';
3-
import RecordIcon from 'react-icons/lib/md/fiber-manual-record';
4-
5-
const DotContainer = styled.div`
6-
font-size: 4rem;
7-
display: block;
8-
color: rgb(253, 36, 57);
92

10-
svg {
11-
transition: 0.3s ease opacity;
12-
}
13-
`;
3+
import RecordIcon from 'react-icons/lib/md/fiber-manual-record';
4+
import { DotContainer } from './elements';
145

15-
export class BlinkingDot extends React.PureComponent {
6+
export class BlinkingDot extends React.PureComponent<{}, { showing: boolean }> {
7+
timer: NodeJS.Timeout;
168
state = {
179
showing: true,
1810
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import styled from 'styled-components';
2+
import Padding from '@codesandbox/common/lib/components/spacing/Padding';
3+
import Centered from '@codesandbox/common/lib/components/flex/Centered';
4+
5+
export const Container = styled.div`
6+
font-weight: 300;
7+
color: rgba(255, 255, 255, 0.5);
8+
margin-bottom: 1rem;
9+
font-size: 1.5rem;
10+
`;
11+
12+
export const Wrapper = styled(Padding)`
13+
display: flex;
14+
flex-direction: column;
15+
width: 100vw;
16+
height: 100vh;
17+
`;
18+
19+
export const Content = styled(Centered)`
20+
flex: 1;
21+
width: 100%;
22+
height: 100%;
23+
`;
24+
25+
export const DotContainer = styled.div`
26+
font-size: 4rem;
27+
display: block;
28+
color: rgb(253, 36, 57);
29+
30+
svg {
31+
transition: 0.3s ease opacity;
32+
}
33+
`;

packages/app/src/app/pages/Live/index.js

-191
This file was deleted.

0 commit comments

Comments
 (0)