Skip to content

Commit b59d2b0

Browse files
committed
Update Player
1 parent d59b0b6 commit b59d2b0

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

src/components/Player.tsx

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useCallback, useEffect, useRef } from "react";
22
import {
3-
Box, Container, SpaceBetween,
3+
Box, Container, SpaceBetween, Header, ColumnLayout, Icon
44
} from "@cloudscape-design/components";
55
import '../static/css/Videoplayer.css';
66

@@ -145,11 +145,31 @@ interface VideoInfoProps {
145145
}
146146

147147
const VideoInfo = ({ title, author, description }: VideoInfoProps) => (
148-
<>
149-
<SpaceBetween direction="vertical" size="xxs">
150-
<Box variant="h2">{title}</Box>
151-
<Box variant="small">{author}</Box>
148+
<Container>
149+
<SpaceBetween size="l">
150+
<Box variant="h1" fontSize="heading-xl" fontWeight="bold">
151+
{title}
152+
</Box>
153+
154+
<Box>
155+
<SpaceBetween direction="horizontal" size="xs">
156+
<Icon name="user-profile" />
157+
<Box variant="span" color="text-body-secondary" fontSize="body-m">
158+
{author}
159+
</Box>
160+
</SpaceBetween>
161+
</Box>
162+
163+
<Box>
164+
<SpaceBetween size="xs">
165+
<Box variant="h3" fontSize="heading-s" fontWeight="bold">
166+
Description
167+
</Box>
168+
<Box variant="p" color="text-body-secondary" fontSize="body-m">
169+
{description}
170+
</Box>
171+
</SpaceBetween>
172+
</Box>
152173
</SpaceBetween>
153-
<div>{description}</div>
154-
</>
174+
</Container>
155175
);

0 commit comments

Comments
 (0)