diff options
| author | Brendan F <EpicWolverine@users.noreply.github.com> | 2023-05-14 23:12:27 -0700 |
|---|---|---|
| committer | Brendan F <EpicWolverine@users.noreply.github.com> | 2023-05-14 23:12:27 -0700 |
| commit | 737344a72d23dc97b0d0e73cc4ab7fdffd0fbf49 (patch) | |
| tree | 2a915b59ab29ac79012ca3345999d9e23562d1f9 /src/components/Player/index.styled.ts | |
| parent | b19a001171bd8197a30f397091d67eba5e4c1111 (diff) | |
Merge in react app code
From sluchajfun and youtube-heardle-template
Diffstat (limited to 'src/components/Player/index.styled.ts')
| -rw-r--r-- | src/components/Player/index.styled.ts | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/components/Player/index.styled.ts b/src/components/Player/index.styled.ts new file mode 100644 index 0000000..4200fe1 --- /dev/null +++ b/src/components/Player/index.styled.ts @@ -0,0 +1,48 @@ +import styled from "styled-components"; + +export const ProgressBackground = styled.div` + position: relative; + z-index: -1; + + width: 100%; + height: 20px; + background-color: ${({ theme }) => theme.gray}; + border-radius: 2px; + + margin-top: 5%; +`; + +export const Progress = styled.div<{ value: number }>` + width: ${({ value }) => value * 6.25}%; + height: 20px; + + align-self: flex-start; + + background-color: ${({ theme }) => theme.green}; + + border-radius: 2px; + + transition: width 0.5s; +`; + +export const Separator = styled.div` + position: absolute; + top: 0; + + width: 0.8px; + height: 100%; + + background-color: ${({ theme }) => theme.border100}; +`; + +export const TimeStamps = styled.div` + display: flex; + justify-content: space-between; + align-items: center; + + width: 100%; +`; + +export const TimeStamp = styled.p` + color: ${({ theme }) => theme.text}; +`; |
