diff --git a/src/assets/css/2-components/_buttons.css b/src/assets/css/2-components/_buttons.css
index ec9030b..989a5cc 100644
--- a/src/assets/css/2-components/_buttons.css
+++ b/src/assets/css/2-components/_buttons.css
@@ -56,6 +56,45 @@
background: var(--btn-primary);
}
+/* Loading state
+-------------------------------------------------------------- */
+
+.btn--loading,
+.btn--loading:link,
+.btn--loading:visited {
+ position: relative;
+ color: transparent;
+ pointer-events: none;
+}
+
+.btn--loading svg {
+ display: none;
+}
+
+.btn--loading::after {
+ position: absolute;
+ top: calc(50% - (2em / 2));
+ left: calc(50% - (2em / 2));
+ display: block;
+ width: 2em;
+ height: 2em;
+ border: .2rem solid transparent;
+ border-color: transparent transparent #fff #fff;
+ border-radius: 42rem;
+ content: "";
+ animation: spinAround 500ms infinite linear;
+}
+
+@keyframes spinAround {
+ 0% {
+ transform: rotate(0deg);
+ }
+ 100% {
+ transform: rotate(359deg);
+ }
+}
+
+
/* size
-------------------------------------------------------------- */
diff --git a/src/assets/css/4-modules/encoding.css b/src/assets/css/4-modules/encoding.css
index 4c5f5fd..9dedce1 100644
--- a/src/assets/css/4-modules/encoding.css
+++ b/src/assets/css/4-modules/encoding.css
@@ -6,6 +6,7 @@
position: fixed;
top: 0;
left: 0;
+ z-index: 1;
display: flex;
flex-direction: column;
justify-content: center;
diff --git a/src/assets/css/7-rwd/_rwd-landscape.css b/src/assets/css/7-rwd/_rwd-landscape.css
index d2286d4..e8d0cf1 100644
--- a/src/assets/css/7-rwd/_rwd-landscape.css
+++ b/src/assets/css/7-rwd/_rwd-landscape.css
@@ -47,6 +47,7 @@
flex-direction: row;
margin-top: auto;
margin-bottom: auto;
+ padding-left: 2rem;
}
.capture-progress {
@@ -105,12 +106,13 @@
.download {
flex-direction: row;
align-items: center;
+ padding-right: 2rem;
}
.download-btn,
.download-btn:visited {
margin: auto 0;
- margin-right: 2rem;
+ margin-right: auto;
margin-left: auto;
width: auto;
}
diff --git a/src/router.js b/src/router.js
index c4fd6a4..0639c73 100644
--- a/src/router.js
+++ b/src/router.js
@@ -3,6 +3,7 @@ import VueRouter from 'vue-router'
import Welcome from '/views/screens/welcome'
import Capture from '/views/screens/capture'
+import Preview from '/views/screens/preview'
import Download from '/views/screens/download'
Vue.use(VueRouter)
@@ -12,6 +13,7 @@ export default new VueRouter({
routes: [
{ name: 'home', path: '/', component: Welcome },
{ name: 'capture', path: '/capture', component: Capture },
+ { name: 'preview', path: '/preview', component: Preview },
{ name: 'download', path: '/download', component: Download }
]
})
diff --git a/src/views/screens/capture.vue b/src/views/screens/capture.vue
index 7d4494a..6ce3d16 100644
--- a/src/views/screens/capture.vue
+++ b/src/views/screens/capture.vue
@@ -9,18 +9,14 @@
-
-
-
+