feat: add TvPlayer component and integrate into routing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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
41
src/pages/tv-player.vue
Normal 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>
|
||||
Reference in New Issue
Block a user