Noah Petherbridge
e728644a77
This commit makes an initial port of the front-end over to a proper Vue CLI application. It seems to work from surface level testing. Changes made: * Rename web/static to public/static to place it into the Vue build path * Notes: web/static/js/BareRTC.js and web/templates/chat.html are now deprecated * Rename web/static/js/sounds.js into src/lib/sounds.js making it a proper JavaScript module with exports. * Fill out initial src/App.vue by copying and updating web/templates/chat.html and web/static/js/BareRTC.js into this module.
88 lines
1.4 KiB
Vue
88 lines
1.4 KiB
Vue
<template>
|
|
<div class="item">
|
|
<i>
|
|
<slot name="icon"></slot>
|
|
</i>
|
|
<div class="details">
|
|
<h3>
|
|
<slot name="heading"></slot>
|
|
</h3>
|
|
<slot></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.item {
|
|
margin-top: 2rem;
|
|
display: flex;
|
|
position: relative;
|
|
}
|
|
|
|
.details {
|
|
flex: 1;
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
i {
|
|
display: flex;
|
|
place-items: center;
|
|
place-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
|
|
color: var(--color-text);
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.2rem;
|
|
font-weight: 500;
|
|
margin-bottom: 0.4rem;
|
|
color: var(--color-heading);
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.item {
|
|
margin-top: 0;
|
|
padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
|
|
}
|
|
|
|
i {
|
|
top: calc(50% - 25px);
|
|
left: -26px;
|
|
position: absolute;
|
|
border: 1px solid var(--color-border);
|
|
background: var(--color-background);
|
|
border-radius: 8px;
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
|
|
.item:before {
|
|
content: ' ';
|
|
border-left: 1px solid var(--color-border);
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: calc(50% + 25px);
|
|
height: calc(50% - 25px);
|
|
}
|
|
|
|
.item:after {
|
|
content: ' ';
|
|
border-left: 1px solid var(--color-border);
|
|
position: absolute;
|
|
left: 0;
|
|
top: calc(50% + 25px);
|
|
height: calc(50% - 25px);
|
|
}
|
|
|
|
.item:first-of-type:before {
|
|
display: none;
|
|
}
|
|
|
|
.item:last-of-type:after {
|
|
display: none;
|
|
}
|
|
}
|
|
</style>
|