From 737344a72d23dc97b0d0e73cc4ab7fdffd0fbf49 Mon Sep 17 00:00:00 2001 From: Brendan F Date: Sun, 14 May 2023 23:12:27 -0700 Subject: Merge in react app code From sluchajfun and youtube-heardle-template --- src/components/Player/index.styled.ts | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/components/Player/index.styled.ts (limited to 'src/components/Player/index.styled.ts') 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}; +`; -- cgit v1.2.3