Skip to content

Commit

Permalink
add play page (#89)
Browse files Browse the repository at this point in the history
* update video

* add trending music gaming news learning pages

* add autoplay

* add play page

* add play page
  • Loading branch information
kamlendras authored May 6, 2024
1 parent b227acc commit 95fa224
Show file tree
Hide file tree
Showing 9 changed files with 1,001 additions and 86 deletions.
86 changes: 86 additions & 0 deletions app/_components/play/main.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
"use client"
import { createGlobalStyle } from "styled-components";
import VideoList from "./videolist";
import { Toaster } from "react-hot-toast";

const GlobalStyle = createGlobalStyle`
:root{
--light-color: 241 241 241;
--dark-color: 15 15 15;
--primary-color: 255 0 0;
--secondary-color: 62 166 255;
--success-color: 3 179 10;
--like-color: 16 110 190;
--font-poppins: 'Poppins', system-ui, sans-serif;
scroll-behavior: smooth;
}
::-webkit-scrollbar {
width: 0;
}
html {
color-scheme: dark;
}
html, body {
overflow-x: hidden;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: var(--font-poppins);
outline: none;
}
body {
position: relative;
background-color: rgb(var(--dark-color));
color: rgb(var(--light-color));
}
.container {
margin-inline: auto;
width: min(90%, 70rem);
}
a {
text-decoration: none;
color: inherit;
transition: 0.15s;
}
input{
background-color: transparent;
}
button {
cursor: pointer;
border: none;
background-color: transparent;
user-select: none;
}
& span.loader {
margin-bottom: 2rem;
width: 1rem;
height: 1rem;
border: 2px solid #FFF;
border-bottom-color: rgb(var(--dark-color));
border-radius: 50%;
display: inline-block;
animation: rotation 1s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
`;

const App = () => {
return (
<div>
<GlobalStyle />
<Toaster />
<VideoList />
</div>
);
};

export default App;
Loading

0 comments on commit 95fa224

Please sign in to comment.