Skip to content

Commit

Permalink
fix: update initParamsValidationRules
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisavetAmpatzidou committed Jun 28, 2022
1 parent 5599853 commit de61416
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 282 deletions.
10 changes: 5 additions & 5 deletions clip/clip.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
* {
--backgroundColor: {{ initParams.backgroundColor }};
--basicColor: {{ initParams.basicColor}};
--secondaryColor:{{ initParams.secondaryColor}};
--tertiaryColor:{{initParams.tertiaryColor}};
--whiteCubeEffectColor:{{initParams.whiteCubeEffectColor}}
--backgroundColor: {{ initParams.styles.backgroundColor }};
--basicColor: {{ initParams.styles.basicColor}};
--secondaryColor:{{ initParams.styles.secondaryColor}};
--tertiaryColor:{{initParams.styles.tertiaryColor}};
--whiteCubeEffectColor:{{initParams.styles.whiteCubeEffectColor}}
}

.root {
Expand Down
12 changes: 6 additions & 6 deletions clip/clip.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
</div>
<div class="box">
<div class="text1">
<div class="letter" mc-for="key,item" mc-of="initParams.text1">
<div class="letter" mc-for="key,item" mc-of="initParams.title.text1">
{{item}}
</div>
</div>
<div class="text2">
<div class="letter" mc-for="key,item" mc-of="initParams.text2">
<div class="letter" mc-for="key,item" mc-of="initParams.title.text2">
{{item}}
</div>
</div>
Expand Down Expand Up @@ -82,12 +82,12 @@
<div class="cube-face cube-face-top">
<div class="text">
<div class="text1">
<div class="letter" mc-for="key,item" mc-of="initParams.text1">
<div class="letter" mc-for="key,item" mc-of="initParams.title.text1">
{{item}}
</div>
</div>
<div class="text2">
<div class="letter" mc-for="key,item" mc-of="initParams.text2">
<div class="letter" mc-for="key,item" mc-of="initParams.title.text2">
{{item}}
</div>
</div>
Expand Down Expand Up @@ -325,12 +325,12 @@
<div class="cube-face cube-face-top">
<div class="text">
<div class="text1">
<div class="letter" mc-for="key,item" mc-of="initParams.text1">
<div class="letter" mc-for="key,item" mc-of="initParams.title.text1">
{{item}}
</div>
</div>
<div class="text2">
<div class="letter" mc-for="key,item" mc-of="initParams.text2">
<div class="letter" mc-for="key,item" mc-of="initParams.title.text2">
{{item}}
</div>
</div>
Expand Down
18 changes: 11 additions & 7 deletions clip/initParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ export const initParams = [
name: "Default",
value: {
song: "https://donkeyclip.github.io/news-clip/demo/assets/news-audio.mp3",
backgroundColor: "white",
basicColor: "black",
secondaryColor: "#fac132",
tertiaryColor: "#fa2020",
whiteCubeEffectColor: "#bbc6c9",
text1: "Cube",
text2: "news",
styles:{
backgroundColor: "white",
basicColor: "black",
secondaryColor: "#fac132",
tertiaryColor: "#fa2020",
whiteCubeEffectColor: "#bbc6c9",
},
title:{
text1: "Cube",
text2: "news",
},
slide1: {
video:
"https://donkeyclip.github.io/news-clip/demo/assets/man-and-woman-talk.mp4",
Expand Down
Loading

0 comments on commit de61416

Please sign in to comment.