feat: used advanced video player

This commit is contained in:
ner committed 2024-10-13 01:45:34 +03:00
1 parent c31058c4f7
commit 0f5ccd185b
12 files changed
+120 -217

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
import { Poppins } from 'next/font/google';
export const font = Poppins({ subsets: ['latin'], variable: '--font-family', weight: '400' });
+6 -2
View File
@@ -2,8 +2,6 @@
@tailwind components;
@tailwind utilities;
@import url('video-react/dist/video-react.css');
@layer base {
:root {
--background: 0 0% 100%;
@@ -89,6 +87,12 @@
body {
@apply bg-background text-foreground;
}
:where(.vds-time),
:where(.vds-menu-items),
:where(.vds-video-layout) {
--media-font-family: var(--font-family);
}
}
@layer utilities {
-33
View File
@@ -1,33 +0,0 @@
.video-react,
.video-react-menu .video-react-menu-content,
.video-react-control-text {
font-family: system-ui;
}
.video-react .video-react-menu-button-popup .video-react-menu {
right: 0;
left: auto;
width: 200px;
border-radius: 4px;
}
.video-react-menu li {
padding-inline: 0.5rem;
white-space: nowrap;
overflow: hidden;
max-width: 100%;
text-overflow: ellipsis;
}
.video-react-menu li:first-child {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.video-react .video-react-big-play-button.video-react-big-play-button-center {
display: none;
}
.video-react .video-react-menu-button-popup .video-react-menu .video-react-menu-content {
overflow: hidden;
}