mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
added responsive sample video to face animator
This commit is contained in:
1 parent
d2474eccc7
commit
c01bab46ef
4 files changed
+27
-49
No files matched your search
@@ -4,7 +4,7 @@
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
height: fit-content;
|
||||
position: relative;
|
||||
|
||||
video, .video-overlay {
|
||||
@@ -13,7 +13,7 @@
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
video { position: absolute; object-fit: cover; }
|
||||
video {object-fit: cover; }
|
||||
|
||||
.video-overlay {
|
||||
background: linear-gradient(rgba($primary,0.5) 0%, rgba($secondary,0.75) 75%);
|
||||
|
||||
@@ -38,7 +38,7 @@ export default function FaceAnimatorInput({
|
||||
hideActions: true,
|
||||
}}
|
||||
/>
|
||||
<BasicVideo {...{ src: "/videos/face-animator-instruction-en.mp4" }}/>
|
||||
<BasicVideo {...{ className: "face-animator-wide-sample", src: "/videos/face-animator-instruction-en.mp4" }}/>
|
||||
</div>
|
||||
<div {...{ className: "animation-configure-panel panel" }}>
|
||||
<fieldset {...{ className: "input-block" }}>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
@import "scss/colours.scss";
|
||||
|
||||
$under992: max-width 992px;
|
||||
$over992: min-width 992px;
|
||||
|
||||
.lipsync-editor {
|
||||
padding-top: 2rem;
|
||||
@@ -25,52 +26,6 @@ $under992: max-width 992px;
|
||||
}
|
||||
}
|
||||
|
||||
.video-frame {
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
position: relative;
|
||||
|
||||
video, .video-overlay {
|
||||
border-radius: .5rem;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
video { position: absolute; object-fit: cover; }
|
||||
|
||||
.video-overlay {
|
||||
background: linear-gradient(rgba($primary,0.5) 0%, rgba($secondary,0.75) 75%);
|
||||
cursor: pointer;
|
||||
padding: 2rem;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
|
||||
h6 {
|
||||
color: #fff;
|
||||
filter: drop-shadow(0 3px 3px rgba($primary-dark,.25));
|
||||
font-size: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
svg {
|
||||
filter: drop-shadow(0 3px 7px rgba($primary-dark,.45));
|
||||
position: absolute;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
inset: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.video-play-button {
|
||||
background-color: green;
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
stroke: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
.animation-configure-panel {
|
||||
margin: 1.5rem 0 -.5rem;
|
||||
padding: 1rem;
|
||||
@@ -176,3 +131,22 @@ $under992: max-width 992px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.face-animator-mobile-sample {
|
||||
padding: 1rem;
|
||||
|
||||
@include breakpoint($over992) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.face-animator-wide-sample {
|
||||
flex: 1;
|
||||
height: auto;
|
||||
|
||||
@include breakpoint($under992) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
video { position: absolute ;}
|
||||
}
|
||||
@@ -23,6 +23,7 @@ import FaceAnimatorInput from './FaceAnimatorInput';
|
||||
import FaceAnimatorWorking from './FaceAnimatorWorking';
|
||||
import FaceAnimatorSuccess from "./FaceAnimatorSuccess";
|
||||
import { FaceAnimatorCore } from "./FaceAnimatorTypes";
|
||||
import { BasicVideo } from "components/common";
|
||||
import "./LipsyncEditor.scss";
|
||||
import { FrontendInferenceJobType } from "@storyteller/components/src/jobs/InferenceJob";
|
||||
|
||||
@@ -171,6 +172,9 @@ export default function LipsyncEditor({
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
<div {...{ className: "face-animator-mobile-sample" }}>
|
||||
<BasicVideo {...{ src: "/videos/face-animator-instruction-en.mp4" }}/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user