mirror of
https://github.com/webstudio-is/webstudio.git
synced 2025-03-14 09:57:02 +00:00
## Description 1. What is this PR about (link the issue and add a short description) ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
295 lines
10 KiB
TypeScript
295 lines
10 KiB
TypeScript
/* eslint-disable */
|
||
/* This is a auto generated file for building the project */
|
||
|
||
import { Fragment, useState } from "react";
|
||
import { useResource, useVariableState } from "@webstudio-is/react-sdk/runtime";
|
||
import { Body as Body } from "@webstudio-is/sdk-components-react-router";
|
||
import {
|
||
Box as Box,
|
||
Heading as Heading,
|
||
} from "@webstudio-is/sdk-components-react";
|
||
import {
|
||
AnimateChildren as AnimateChildren,
|
||
AnimateText as AnimateText,
|
||
} from "@webstudio-is/sdk-components-animation";
|
||
|
||
export const siteName = "KittyGuardedZone";
|
||
|
||
export const favIconAsset: string | undefined =
|
||
"DALL_E_2023-10-30_12.39.46_-_Photo_logo_with_a_bold_cat_silhouette_centered_on_a_contrasting_background_designed_for_clarity_at_small_32x32_favicon_resolution_00h6cEA8u2pJRvVJv7hRe.png";
|
||
|
||
// Font assets on current page (can be preloaded)
|
||
export const pageFontAssets: string[] = [];
|
||
|
||
export const pageBackgroundImageAssets: string[] = [];
|
||
|
||
const Page = (_props: { system: any }) => {
|
||
return (
|
||
<Body className={`w-body c1jgcte3 cncutr5 c1ywt30e cqvurle`}>
|
||
<Box className={`w-box c1m04i8w c13v7j50 cpjvam0 cqkqnmd`}>
|
||
<Heading className={`w-heading`}>{"ANIMATIONS"}</Heading>
|
||
</Box>
|
||
<Box className={`w-box c1y8ynw5 c2gdfrb c1yk3skc c16asro7 c1pt69cw`}>
|
||
<Box className={`w-box`}>
|
||
<AnimateChildren
|
||
action={{
|
||
type: "view",
|
||
animations: [
|
||
{
|
||
name: "Fade In",
|
||
description: "Fade in the element as it scrolls into view.",
|
||
keyframes: [
|
||
{
|
||
offset: 0,
|
||
styles: {
|
||
opacity: { type: "unit", unit: "number", value: 0 },
|
||
},
|
||
},
|
||
],
|
||
timing: {
|
||
easing: "linear",
|
||
fill: "backwards",
|
||
rangeStart: [
|
||
"entry",
|
||
{ type: "unit", value: 0, unit: "%" },
|
||
],
|
||
rangeEnd: [
|
||
"entry",
|
||
{ type: "unit", value: 100, unit: "%" },
|
||
],
|
||
},
|
||
},
|
||
{
|
||
name: "Fade Out",
|
||
description:
|
||
"Fade out the element as it scrolls out of view.",
|
||
keyframes: [
|
||
{
|
||
offset: 1,
|
||
styles: {
|
||
opacity: { type: "unit", unit: "number", value: 0 },
|
||
},
|
||
},
|
||
],
|
||
timing: {
|
||
easing: "linear",
|
||
fill: "forwards",
|
||
rangeStart: ["exit", { type: "unit", value: 0, unit: "%" }],
|
||
rangeEnd: ["exit", { type: "unit", value: 100, unit: "%" }],
|
||
},
|
||
},
|
||
{
|
||
name: "Parallax In",
|
||
description:
|
||
"Parallax the element as it scrolls out of view.",
|
||
keyframes: [
|
||
{
|
||
offset: 0,
|
||
styles: {
|
||
translate: {
|
||
type: "tuple",
|
||
value: [
|
||
{ type: "unit", unit: "number", value: 0 },
|
||
{ type: "unit", unit: "px", value: 100 },
|
||
],
|
||
},
|
||
},
|
||
},
|
||
],
|
||
timing: {
|
||
easing: "linear",
|
||
fill: "backwards",
|
||
rangeStart: [
|
||
"cover",
|
||
{ type: "unit", value: 0, unit: "%" },
|
||
],
|
||
rangeEnd: ["cover", { type: "unit", value: 50, unit: "%" }],
|
||
},
|
||
},
|
||
{
|
||
name: "Parallax Out",
|
||
description:
|
||
"Parallax the element as it scrolls out of view.",
|
||
keyframes: [
|
||
{
|
||
offset: 1,
|
||
styles: {
|
||
translate: {
|
||
type: "tuple",
|
||
value: [
|
||
{ type: "unit", unit: "number", value: 0 },
|
||
{ type: "unit", unit: "px", value: -100 },
|
||
],
|
||
},
|
||
},
|
||
},
|
||
],
|
||
timing: {
|
||
easing: "linear",
|
||
fill: "forwards",
|
||
rangeStart: [
|
||
"cover",
|
||
{ type: "unit", value: 50, unit: "%" },
|
||
],
|
||
rangeEnd: [
|
||
"cover",
|
||
{ type: "unit", value: 100, unit: "%" },
|
||
],
|
||
},
|
||
},
|
||
],
|
||
isPinned: false,
|
||
}}
|
||
>
|
||
<Heading className={`w-heading c1pdroxx cudat22`}>
|
||
{"ANIMATED CHILD 0"}
|
||
</Heading>
|
||
<Heading className={`w-heading`}>{"ANIMATED CHILD 1"}</Heading>
|
||
</AnimateChildren>
|
||
</Box>
|
||
<Box className={`w-box`}>
|
||
{
|
||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sed tellus at nisi feugiat accumsan. Aliquam tristique vitae augue eget lacinia. "
|
||
}
|
||
</Box>
|
||
</Box>
|
||
<Box className={`w-box cq3mp4w`} />
|
||
<Box className={`w-box c1y8ynw5 c2gdfrb c1yk3skc`}>
|
||
<Box className={`w-box`}>
|
||
<AnimateChildren
|
||
action={{
|
||
type: "view",
|
||
animations: [
|
||
{
|
||
name: "Fade In",
|
||
description: "Fade in the element as it scrolls into view.",
|
||
keyframes: [
|
||
{
|
||
offset: 0,
|
||
styles: {
|
||
opacity: { type: "unit", unit: "number", value: 0 },
|
||
},
|
||
},
|
||
],
|
||
timing: {
|
||
easing: "linear",
|
||
fill: "backwards",
|
||
rangeStart: [
|
||
"entry",
|
||
{ type: "unit", value: 0, unit: "%" },
|
||
],
|
||
rangeEnd: [
|
||
"entry",
|
||
{ type: "unit", value: 100, unit: "%" },
|
||
],
|
||
},
|
||
},
|
||
{
|
||
name: "Fade Out",
|
||
description:
|
||
"Fade out the element as it scrolls out of view.",
|
||
keyframes: [
|
||
{
|
||
offset: 1,
|
||
styles: {
|
||
opacity: { type: "unit", unit: "number", value: 0 },
|
||
},
|
||
},
|
||
],
|
||
timing: {
|
||
easing: "linear",
|
||
fill: "forwards",
|
||
rangeStart: ["exit", { type: "unit", value: 0, unit: "%" }],
|
||
rangeEnd: ["exit", { type: "unit", value: 100, unit: "%" }],
|
||
},
|
||
},
|
||
{
|
||
name: "Parallax In",
|
||
description:
|
||
"Parallax the element as it scrolls out of view.",
|
||
keyframes: [
|
||
{
|
||
offset: 0,
|
||
styles: {
|
||
translate: {
|
||
type: "tuple",
|
||
value: [
|
||
{ type: "unit", unit: "number", value: 0 },
|
||
{ type: "unit", unit: "px", value: 100 },
|
||
],
|
||
},
|
||
},
|
||
},
|
||
],
|
||
timing: {
|
||
easing: "linear",
|
||
fill: "backwards",
|
||
rangeStart: [
|
||
"cover",
|
||
{ type: "unit", value: 0, unit: "%" },
|
||
],
|
||
rangeEnd: ["cover", { type: "unit", value: 50, unit: "%" }],
|
||
},
|
||
},
|
||
{
|
||
name: "Parallax Out",
|
||
description:
|
||
"Parallax the element as it scrolls out of view.",
|
||
keyframes: [
|
||
{
|
||
offset: 1,
|
||
styles: {
|
||
translate: {
|
||
type: "tuple",
|
||
value: [
|
||
{ type: "unit", unit: "number", value: 0 },
|
||
{ type: "unit", unit: "px", value: -100 },
|
||
],
|
||
},
|
||
},
|
||
},
|
||
],
|
||
timing: {
|
||
easing: "linear",
|
||
fill: "forwards",
|
||
rangeStart: [
|
||
"cover",
|
||
{ type: "unit", value: 50, unit: "%" },
|
||
],
|
||
rangeEnd: [
|
||
"cover",
|
||
{ type: "unit", value: 100, unit: "%" },
|
||
],
|
||
},
|
||
},
|
||
],
|
||
isPinned: false,
|
||
}}
|
||
>
|
||
<AnimateText charWindow={20}>
|
||
<Heading className={`w-heading c1pdroxx`}>
|
||
{"ANIMATED CHILD 1"}
|
||
</Heading>
|
||
<Box className={`w-box`}>
|
||
{
|
||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sed tellus at nisi feugiat accumsan. Aliquam tristique vitae augue eget lacinia. "
|
||
}
|
||
</Box>
|
||
</AnimateText>
|
||
</AnimateChildren>
|
||
</Box>
|
||
<Box className={`w-box`}>
|
||
{
|
||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sed tellus at nisi feugiat accumsan. Aliquam tristique vitae augue eget lacinia. "
|
||
}
|
||
</Box>
|
||
</Box>
|
||
<Box className={`w-box c1m04i8w c13v7j50 cpjvam0 cqkqnmd`}>
|
||
<Heading className={`w-heading`}>{"THE END"}</Heading>
|
||
</Box>
|
||
</Body>
|
||
);
|
||
};
|
||
|
||
export { Page };
|