feat: add TvPlayer component and integrate into routing

This commit is contained in:
snusxd
2026-04-16 01:14:28 +03:00
parent d643fe0059
commit b5c5701a9b
3 changed files with 45 additions and 1 deletions

View File

@@ -1,11 +1,12 @@
body {
background-color: #353535;
font-family: 'Iosevka', sans-serif;
margin: 0;
}
@font-face {
font-family: 'Iosevka';
src: url('/public/fonts/sgr_iosevka_regular.woff2') format('woff2');
src: url('/fonts/sgr_iosevka_regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}

View File

@@ -5,6 +5,7 @@ import App from './App.vue'
import NowPlaying from './components/now-playing.vue'
import GeneralXd from './components/general-xd.vue'
import './global.css'
import TvPlayer from './pages/tv-player.vue'
const Home = {
render() {
@@ -15,6 +16,7 @@ const Home = {
const routes = [
{ path: '/', component: Home },
{ path: '/nowplay', component: NowPlaying },
{ path: '/player', component: TvPlayer },
]
export const router = createRouter({

41
src/pages/tv-player.vue Normal file
View File

@@ -0,0 +1,41 @@
<style scoped>
.bg {
background-color: black;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
div {
margin: 0;
padding: 0;
}
.screen {
background-color: white;
aspect-ratio: 4 / 3;
height: 100vh;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
p {
font-family: sans-serif;
color: black;
/* margin: 0; */
/* font-size: x-large; */
}
</style>
<template>
<div class="bg">
<div class="screen">
<p>hello?...</p>
</div>
</div>
</template>