Basic styles

This commit is contained in:
2021-12-30 23:59:46 +03:00
parent 307f92e4f7
commit e13743ccce
4 changed files with 67 additions and 15 deletions

View File

@@ -1,7 +1,22 @@
<template> <template>
<router-view/> <div>
<h2 id="site-name">watch2gether</h2>
<router-view/>
</div>
</template> </template>
<style lang="scss"> <style lang="scss">
@import '@/scss/style.scss' @import '@/scss/style.scss';
#site-name {
margin-bottom: 96px;
}
#app {
height: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
</style> </style>

View File

@@ -1,5 +1,31 @@
@import 'reset-css'; @import 'reset-css';
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');
* { * {
text-align: center; text-align: center;
font-family: 'EB Garamond', serif;
font-size: 16px;
box-sizing: border-box;
}
html, body {
height: 100%;
}
button, input[type="text"], textarea {
padding: 8px 12px;
background: none;
border: 1px solid black;
}
button, a {
cursor: pointer;
}
h1 {
font-size: 32px;
}
h2 {
font-size: 24px;
} }

View File

@@ -1,15 +1,17 @@
<template> <template>
<div class="home"> <div class="home">
<input <form @submit.prevent>
type="text" <input
v-model="magnet" type="text"
placeholder="magnet" v-model="magnet"
> placeholder="magnet link"
<button >
@click="submit" <button
> @click="submit"
Create room >
</button> create room
</button>
</form>
</div> </div>
</template> </template>
@@ -34,3 +36,11 @@ export default defineComponent({
}, },
}); });
</script> </script>
<style lang="scss" scoped>
form {
> * {
margin: 0 8px;
}
}
</style>

View File

@@ -106,9 +106,6 @@ export default defineComponent({
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
h1 {
font-size: 32px;
}
.progress-bar { .progress-bar {
width: 400px; width: 400px;
height: 25px; height: 25px;
@@ -116,6 +113,10 @@ h1 {
margin: auto; margin: auto;
} }
h1 {
margin-bottom: 32px;
}
video { video {
width: 800px; width: 800px;
max-width: 100%; max-width: 100%;