-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ivanvl01
committed
Feb 6, 2023
1 parent
22b737b
commit 1c8d103
Showing
14 changed files
with
262 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,34 @@ | ||
<div class="root"> | ||
<div class="text-wrapper"> | ||
<div class="text">Thanks our Sponsors</div> | ||
<div class="cercle-1 cercle"></div> | ||
<div class="cercle-2 cercle"></div> | ||
<div class="venue-image-wrapper"> | ||
<div class="venue-image"></div> | ||
</div> | ||
<div class="date-title-wrapper"> | ||
<div class="date-title"> | ||
{{initParams.subTitle}} | ||
<div class="text-wrapper"> | ||
<div class="building-wrapper"> | ||
{{initParams.venue.building}} | ||
</div> | ||
<div class="hall-wrapper"> | ||
{{initParams.venue.hall}} | ||
</div> | ||
</div> | ||
|
||
<div class="address-wrapper"> | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="150" | ||
height="100" viewBox="0 0 256 256" xml:space="preserve"> | ||
|
||
<defs> | ||
</defs> | ||
<g style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;" | ||
transform="translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)"> | ||
<path | ||
d="M 45 0 C 25.463 0 9.625 15.838 9.625 35.375 c 0 8.722 3.171 16.693 8.404 22.861 L 45 90 l 26.97 -31.765 c 5.233 -6.167 8.404 -14.139 8.404 -22.861 C 80.375 15.838 64.537 0 45 0 z M 45 48.705 c -8.035 0 -14.548 -6.513 -14.548 -14.548 c 0 -8.035 6.513 -14.548 14.548 -14.548 s 14.548 6.513 14.548 14.548 C 59.548 42.192 53.035 48.705 45 48.705 z" | ||
style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(255, 255, 255); fill-rule: nonzero; opacity: 1;" | ||
transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round" /> | ||
</g> | ||
</svg> | ||
<div> {{initParams.venue.address}}</div> | ||
</div> | ||
<a class="link" href="{{initParams.eventLink}}">{{initParams.eventLink}}</a> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
* { | ||
--color: {{ initParams.color }}; | ||
/* | ||
This is an example of how to use MotorCortex's init params in css, using a css variable | ||
if you are unfamiliar with css variables here is a quick guide https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties#basic_usage | ||
*/ | ||
} | ||
|
||
.root { | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
align-items: center; | ||
height: 100%; | ||
width: 100%; | ||
position: absolute; | ||
} | ||
|
||
.text{ | ||
font-size: 100px; | ||
font-weight: 900; | ||
position: absolute; | ||
text-transform: uppercase; | ||
top: 100%; | ||
} | ||
|
||
.text-wrapper{ | ||
overflow: hidden; | ||
position: absolute; | ||
top: 40%; | ||
width: 1184px; | ||
height: 100px; | ||
} | ||
|
||
.date-title,.link{ | ||
font-size: 40px; | ||
font-weight: 700; | ||
position: relative; | ||
top: -100%; | ||
opacity: 0; | ||
} | ||
|
||
.date-title-wrapper{ | ||
overflow: hidden; | ||
position: absolute; | ||
top: 75%; | ||
} | ||
|
||
.link{ | ||
top: 32%; | ||
font-weight: 100; | ||
opacity: 0; | ||
color: black; | ||
text-decoration: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="root"> | ||
<div class="text-wrapper"> | ||
<div class="text">Thanks our Sponsors</div> | ||
</div> | ||
<div class="date-title-wrapper"> | ||
<div class="date-title"> | ||
{{initParams.subTitle}} | ||
</div> | ||
</div> | ||
<a class="link" href="{{initParams.eventLink}}">{{initParams.eventLink}}</a> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { HTMLClip } from "@donkeyclip/motorcortex"; | ||
import html from "./index.html"; | ||
import css from "./index.css"; | ||
import { Opacity, Scale, Size, Top, Width } from "../../library/incidents"; | ||
|
||
const clip = new HTMLClip({ | ||
html, | ||
css, | ||
selector: ".scene-8", | ||
containerParams: { | ||
width: "1920px", | ||
height: "1080px", | ||
}, | ||
initParams: { | ||
color: "@initParams.color", | ||
subTitle: "@initParams.subTitle", | ||
eventLink: "@initParams.eventLink", | ||
}, | ||
}); | ||
|
||
clip.addIncident(Top("0%", ".text", 1500, "easeInOutCubic"), 19700); | ||
clip.addIncident(Opacity(1, ".date-title,.link", 800), 19700); | ||
|
||
export default clip; |
Oops, something went wrong.