diff --git a/db.json b/db.json
index 360c0751..e8527f2f 100644
--- a/db.json
+++ b/db.json
@@ -1,43 +1,61 @@
{
- "bg": "https://i2.wp.com/css-tricks.com/wp-content/uploads/2017/06/css-is-awesome-scaled.jpg?resize=1536%2C1208&ssl=1",
- "title": "Quiz CSS da Alura",
- "description": "Teste os seus conhecimentos sobre CSS e vamos ver quantos layouts você vai deixar de quebrar",
+ "bg": "https://www.hitalent.co/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBMmJDQXc9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--1452099b706ad7d079f7a3a4dd5d702ebeeae45f/HiTalent.png",
+ "title": "Quiz JavaScript #AluraQuiz",
+ "description": "Um quiz rápido sobre o mundo do JavaScript",
"questions": [
{
- "image": "https://media.giphy.com/media/xUOxf3yDKCuwpOlT3i/giphy.gif",
- "title": "Como fazer um seletor por id via CSS?",
- "description": "Essa é pra aquecer",
- "answer": 2,
+ "image": "https://media.giphy.com/media/j5P0DQIOf4PonLi55G/giphy.gif",
+ "title": "Qual a diferença entre = , == e === ?",
+ "description": "Pergunta fácil em!",
+ "answer": 1,
"alternatives": [
- ".elemento",
- "*elemento",
- "#elemento",
- "%elemento"
+ "São a mesma coisa",
+ "O = significa atribuição de valor. Já == verifica a igualdade do valor, enquanto === verifica valor e tipo de variável."
]
},
{
- "image": "https://media.giphy.com/media/13FrpeVH09Zrb2/giphy.gif",
- "title": "Como fazer um background gradiente com css?",
- "description": "Faz tempo em haha",
+ "image": "https://media.giphy.com/media/Ie2Hs3A0uJRtK/giphy.gif",
+ "title": "Que tipos de dados são suportados em JavaScript?",
+ "description": "E agora? Você sabe?",
"answer": 0,
"alternatives": [
- "background: linear-gradient(#e66465, #9198e5);",
- "background: gradient(#e66465, #9198e5);"
+ "Number, String, Undefined, Null e Bool.",
+ "Int, String, Undefined, Null e Bool."
+ ]
+ },
+ {
+ "image": "https://media.giphy.com/media/iI4vhciiVh2b3j9sgo/giphy.gif",
+ "title": "Qual a diferença de window e global?",
+ "answer": 1,
+ "alternatives": [
+ "São a mesma coisa",
+ "window é o escopo global no browser, e global no node"
+ ]
+ },
+ {
+ "image": "https://media.giphy.com/media/iI4vhciiVh2b3j9sgo/giphy.gif",
+ "title": "Qual a forma antiga de trabalhar com AJAX na Web?",
+ "answer": 1,
+ "alternatives": [
+ "JSONHttpRequest",
+ "XMLHttpRequest",
+ "fetch"
]
}
],
"external": [
- ""
+ "https://aluraquiz-css.omariosouto.vercel.app/",
+ "https://aluraquiz-devsoutinho.omariosouto.vercel.app/"
],
"theme": {
"colors": {
- "primary": "#0d47a1",
- "secondary": "#29b6f6",
- "mainBg": "#171B35",
+ "primary": "#222222",
+ "secondary": "#e89c3f",
+ "mainBg": "#213f4e",
"contrastText": "#FFFFFF",
"wrong": "#FF5722",
"success": "#4CAF50"
},
"borderRadius": "4px"
}
-}
\ No newline at end of file
+}
diff --git a/package.json b/package.json
index 00df819b..e6858684 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,10 @@
"lint": "eslint ./ --fix"
},
"dependencies": {
+ "@crello/react-lottie": "^0.0.11",
+ "framer-motion": "^3.2.1",
"next": "latest",
+ "prop-types": "^15.7.2",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-is": "^16.8.0",
diff --git a/pages/index.js b/pages/index.js
index 12421ebb..fa60a16d 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -1,10 +1,12 @@
import React from 'react';
import styled from 'styled-components';
import Head from 'next/head';
+import { motion } from 'framer-motion';
import { useRouter } from 'next/router';
import db from '../db.json';
import Widget from '../src/components/Widget';
+import Link from '../src/components/Link';
import QuizLogo from '../src/components/QuizLogo';
import QuizBackground from '../src/components/QuizBackground';
import Footer from '../src/components/Footer';
@@ -37,11 +39,23 @@ export default function Home() {
return (
- {db.title}
+
+ AluraQuiz -
+ {db.title}
+
-
+
{db.title}
@@ -66,14 +80,51 @@ export default function Home() {
-
+
Quizes da Galera
- lorem ipsum dolor sit amet...
+
+ {db.external.map((linkExterno) => {
+ const [projectName, githubUser] = linkExterno
+ .replace(/\//g, '')
+ .replace('https:', '')
+ .replace('.vercel.app', '')
+ .split('.');
+
+ return (
+ -
+
+ {`${githubUser}/${projectName}`}
+
+
+ );
+ })}
+
-
+
diff --git a/pages/quiz/[id].js b/pages/quiz/[id].js
index a140d1d0..459f71b7 100644
--- a/pages/quiz/[id].js
+++ b/pages/quiz/[id].js
@@ -1,9 +1,50 @@
+/* eslint-disable react/prop-types */
+/* eslint-disable no-unused-vars */
import React from 'react';
+import { ThemeProvider } from 'styled-components';
+import QuizScreen from '../../src/screens/Quiz';
-export default function QuizDaGaleraPage() {
+export default function QuizDaGaleraPage({ dbExterno }) {
+ // const [db, setDb] React.useState({})
+ // React.useEffect(() => {
+ // });
return (
-
- Desafio da próxima aula junto com as animações
-
+
+
+
+ // {/*
+ // {JSON.stringify(dbExterno.questions, null, 4)}
+ //
*/}
);
}
+
+export async function getServerSideProps(context) {
+ const [projectName, githubUser] = context.query.id.split('___');
+
+ try {
+ const dbExterno = await fetch(`https://${projectName}.${githubUser}.vercel.app/api/db`)
+ .then((respostaDoServer) => {
+ if (respostaDoServer.ok) {
+ return respostaDoServer.json();
+ }
+ throw new Error('Falha em pegar os dados');
+ })
+ .then((respostaConvertidaEmObjeto) => respostaConvertidaEmObjeto)
+ // .catch((err) => {
+ // // console.error(err);
+ // });
+
+ // console.log('dbExterno', dbExterno);
+ // console.log('Infos que o Next da para nós', context.query.id);
+ return {
+ props: {
+ dbExterno,
+ },
+ };
+ } catch(err) {
+ throw new Error(err);
+ }
+}
diff --git a/pages/quiz/index.js b/pages/quiz/index.js
new file mode 100644
index 00000000..f992a6e5
--- /dev/null
+++ b/pages/quiz/index.js
@@ -0,0 +1,16 @@
+/* eslint-disable react/prop-types */
+import React from 'react';
+import { ThemeProvider } from 'styled-components';
+import QuizScreen from '../../src/screens/Quiz';
+import db from '../../db.json';
+
+export default function QuizDaGaleraPage() {
+ return (
+
+
+
+ );
+}
diff --git a/src/components/BackLinkArrow/index.js b/src/components/BackLinkArrow/index.js
new file mode 100644
index 00000000..87c3f910
--- /dev/null
+++ b/src/components/BackLinkArrow/index.js
@@ -0,0 +1,29 @@
+import React from 'react';
+import styled from 'styled-components';
+import PropTypes from 'prop-types';
+import Link from '../Link';
+
+const StyledLink = styled(Link)`
+ transition: .3s;
+ &:hover {
+ opacity: .5;
+ }
+`;
+
+const SVG = styled.svg`
+ vertical-align: middle;
+`;
+
+export default function BackLinkArrow({ href }) {
+ return (
+
+
+
+ );
+}
+
+BackLinkArrow.propTypes = {
+ href: PropTypes.string.isRequired,
+};
\ No newline at end of file
diff --git a/src/components/Input/index.js b/src/components/Input/index.js
index cb6eb294..f61d904f 100644
--- a/src/components/Input/index.js
+++ b/src/components/Input/index.js
@@ -12,6 +12,11 @@ const InputBase = styled.input`
border-radius: ${({ theme }) => theme.borderRadius};
outline: 0;
margin-bottom: 25px;
+ ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
+ color: ${({ theme }) => theme.colors.contrastText}DD;
+ opacity: 1; /* Firefox */
+ }
+
`;
export default function Input({ onChange, placeholder, ...props }) {
diff --git a/src/components/Link/index.js b/src/components/Link/index.js
new file mode 100644
index 00000000..c15346e4
--- /dev/null
+++ b/src/components/Link/index.js
@@ -0,0 +1,13 @@
+import React from 'react';
+import NextLink from 'next/link';
+
+export default function Link({ children, href, ...props }) {
+ return (
+
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
+
+ {children}
+
+
+ );
+}
diff --git a/src/screens/Quiz/animations/loading.json b/src/screens/Quiz/animations/loading.json
new file mode 100644
index 00000000..1dcb6f48
--- /dev/null
+++ b/src/screens/Quiz/animations/loading.json
@@ -0,0 +1,2001 @@
+{
+ "v": "4.10.1",
+ "fr": 24,
+ "ip": 0,
+ "op": 60,
+ "w": 400,
+ "h": 400,
+ "nm": "Comp 1",
+ "ddd": 0,
+ "assets": [
+ {
+ "id": "comp_0",
+ "layers": [
+ {
+ "ddd": 0,
+ "ind": 1,
+ "ty": 4,
+ "nm": "Capa de formas 12",
+ "sr": 1,
+ "ks": {
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 11
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 10
+ },
+ "p": {
+ "a": 1,
+ "k": [
+ {
+ "i": {
+ "x": 0.833,
+ "y": 0.833
+ },
+ "o": {
+ "x": 0.167,
+ "y": 0.167
+ },
+ "n": "0p833_0p833_0p167_0p167",
+ "t": 24,
+ "s": [
+ 81.5,
+ 370.25,
+ 0
+ ],
+ "e": [
+ 445.5,
+ 199.25,
+ 0
+ ],
+ "to": [
+ 60.6666679382324,
+ -28.5,
+ 0
+ ],
+ "ti": [
+ -60.6666679382324,
+ 28.5,
+ 0
+ ]
+ },
+ {
+ "t": 48
+ }
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ 0,
+ 0,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 43,
+ 43,
+ 100
+ ],
+ "ix": 6
+ }
+ },
+ "ao": 0,
+ "shapes": [
+ {
+ "ty": "gr",
+ "it": [
+ {
+ "ind": 0,
+ "ty": "sh",
+ "ix": 1,
+ "ks": {
+ "a": 0,
+ "k": {
+ "i": [
+ [
+ 28,
+ 0
+ ],
+ [
+ 34.935,
+ -19.483
+ ],
+ [
+ 31.619,
+ 18.821
+ ],
+ [
+ 33,
+ -14
+ ],
+ [
+ 57,
+ 29
+ ],
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 0
+ ]
+ ],
+ "o": [
+ [
+ -28,
+ 0
+ ],
+ [
+ -52,
+ 29
+ ],
+ [
+ -42,
+ -25
+ ],
+ [
+ -28.892,
+ 12.257
+ ],
+ [
+ -57,
+ -29
+ ],
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 0
+ ]
+ ],
+ "v": [
+ [
+ 367.75,
+ -97
+ ],
+ [
+ 277,
+ -75
+ ],
+ [
+ 155,
+ -82
+ ],
+ [
+ 35,
+ -82
+ ],
+ [
+ -94,
+ -82.326
+ ],
+ [
+ -200,
+ -74
+ ],
+ [
+ -352.07,
+ 320.209
+ ],
+ [
+ 499.162,
+ 354.093
+ ]
+ ],
+ "c": true
+ },
+ "ix": 2
+ },
+ "nm": "Trazado 1",
+ "mn": "ADBE Vector Shape - Group",
+ "hd": false
+ },
+ {
+ "ty": "fl",
+ "c": {
+ "a": 0,
+ "k": [
+ 0.198431351606,
+ 0.588595042509,
+ 0.733333333333,
+ 1
+ ],
+ "ix": 4
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 5
+ },
+ "r": 1,
+ "nm": "Relleno 1",
+ "mn": "ADBE Vector Graphic - Fill",
+ "hd": false
+ },
+ {
+ "ty": "tr",
+ "p": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 100,
+ 100
+ ],
+ "ix": 3
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 6
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 7
+ },
+ "sk": {
+ "a": 0,
+ "k": 0,
+ "ix": 4
+ },
+ "sa": {
+ "a": 0,
+ "k": 0,
+ "ix": 5
+ },
+ "nm": "Transformar"
+ }
+ ],
+ "nm": "Forma 1",
+ "np": 3,
+ "cix": 2,
+ "ix": 1,
+ "mn": "ADBE Vector Group",
+ "hd": false
+ }
+ ],
+ "ip": 0,
+ "op": 144,
+ "st": 0,
+ "bm": 0
+ },
+ {
+ "ddd": 0,
+ "ind": 2,
+ "ty": 4,
+ "nm": "Capa de formas 2",
+ "sr": 1,
+ "ks": {
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 11
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 10
+ },
+ "p": {
+ "a": 1,
+ "k": [
+ {
+ "i": {
+ "x": 0.833,
+ "y": 0.833
+ },
+ "o": {
+ "x": 0.167,
+ "y": 0.167
+ },
+ "n": "0p833_0p833_0p167_0p167",
+ "t": 24,
+ "s": [
+ -133,
+ 374,
+ 0
+ ],
+ "e": [
+ 231,
+ 203,
+ 0
+ ],
+ "to": [
+ 60.6666679382324,
+ -28.5,
+ 0
+ ],
+ "ti": [
+ -60.6666679382324,
+ 28.5,
+ 0
+ ]
+ },
+ {
+ "t": 48
+ }
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ 0,
+ 0,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 43,
+ 43,
+ 100
+ ],
+ "ix": 6
+ }
+ },
+ "ao": 0,
+ "shapes": [
+ {
+ "ty": "gr",
+ "it": [
+ {
+ "ind": 0,
+ "ty": "sh",
+ "ix": 1,
+ "ks": {
+ "a": 0,
+ "k": {
+ "i": [
+ [
+ 28,
+ 0
+ ],
+ [
+ 34.935,
+ -19.483
+ ],
+ [
+ 31.619,
+ 18.821
+ ],
+ [
+ 33,
+ -14
+ ],
+ [
+ 57,
+ 29
+ ],
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 0
+ ]
+ ],
+ "o": [
+ [
+ -28,
+ 0
+ ],
+ [
+ -52,
+ 29
+ ],
+ [
+ -42,
+ -25
+ ],
+ [
+ -28.892,
+ 12.257
+ ],
+ [
+ -57,
+ -29
+ ],
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 0
+ ],
+ [
+ 0,
+ 0
+ ]
+ ],
+ "v": [
+ [
+ 367.75,
+ -97
+ ],
+ [
+ 277,
+ -75
+ ],
+ [
+ 155,
+ -82
+ ],
+ [
+ 35,
+ -82
+ ],
+ [
+ -94,
+ -82.326
+ ],
+ [
+ -200,
+ -74
+ ],
+ [
+ -352.07,
+ 320.209
+ ],
+ [
+ 499.162,
+ 354.093
+ ]
+ ],
+ "c": true
+ },
+ "ix": 2
+ },
+ "nm": "Trazado 1",
+ "mn": "ADBE Vector Shape - Group",
+ "hd": false
+ },
+ {
+ "ty": "fl",
+ "c": {
+ "a": 0,
+ "k": [
+ 0.2,
+ 0.588235294118,
+ 0.733333333333,
+ 1
+ ],
+ "ix": 4
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 5
+ },
+ "r": 1,
+ "nm": "Relleno 1",
+ "mn": "ADBE Vector Graphic - Fill",
+ "hd": false
+ },
+ {
+ "ty": "tr",
+ "p": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 100,
+ 100
+ ],
+ "ix": 3
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 6
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 7
+ },
+ "sk": {
+ "a": 0,
+ "k": 0,
+ "ix": 4
+ },
+ "sa": {
+ "a": 0,
+ "k": 0,
+ "ix": 5
+ },
+ "nm": "Transformar"
+ }
+ ],
+ "nm": "Forma 1",
+ "np": 3,
+ "cix": 2,
+ "ix": 1,
+ "mn": "ADBE Vector Group",
+ "hd": false
+ }
+ ],
+ "ip": 0,
+ "op": 144,
+ "st": 0,
+ "bm": 0
+ }
+ ]
+ }
+ ],
+ "layers": [
+ {
+ "ddd": 0,
+ "ind": 1,
+ "ty": 4,
+ "nm": "Capa de formas 5",
+ "sr": 1,
+ "ks": {
+ "o": {
+ "a": 1,
+ "k": [
+ {
+ "i": {
+ "x": [
+ 0.833
+ ],
+ "y": [
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167
+ ],
+ "y": [
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 15,
+ "s": [
+ 100
+ ],
+ "e": [
+ 0
+ ]
+ },
+ {
+ "t": 16
+ }
+ ],
+ "ix": 11
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 10
+ },
+ "p": {
+ "a": 1,
+ "k": [
+ {
+ "i": {
+ "x": 0.833,
+ "y": 0.833
+ },
+ "o": {
+ "x": 0.167,
+ "y": 0.167
+ },
+ "n": "0p833_0p833_0p167_0p167",
+ "t": 0,
+ "s": [
+ 199,
+ -14,
+ 0
+ ],
+ "e": [
+ 199,
+ 156,
+ 0
+ ],
+ "to": [
+ 0,
+ 28.3333339691162,
+ 0
+ ],
+ "ti": [
+ 0,
+ -28.9375,
+ 0
+ ]
+ },
+ {
+ "i": {
+ "x": 0.833,
+ "y": 0.833
+ },
+ "o": {
+ "x": 0.167,
+ "y": 0.167
+ },
+ "n": "0p833_0p833_0p167_0p167",
+ "t": 12,
+ "s": [
+ 199,
+ 156,
+ 0
+ ],
+ "e": [
+ 199,
+ 164.066,
+ 0
+ ],
+ "to": [
+ 0,
+ 4.54861259460449,
+ 0
+ ],
+ "ti": [
+ 0,
+ -2.45892143249512,
+ 0
+ ]
+ },
+ {
+ "i": {
+ "x": 0.833,
+ "y": 0.833
+ },
+ "o": {
+ "x": 0.167,
+ "y": 0.167
+ },
+ "n": "0p833_0p833_0p167_0p167",
+ "t": 13,
+ "s": [
+ 199,
+ 164.066,
+ 0
+ ],
+ "e": [
+ 199,
+ 166.125,
+ 0
+ ],
+ "to": [
+ 0,
+ 13.1843204498291,
+ 0
+ ],
+ "ti": [
+ 0,
+ -1.72074222564697,
+ 0
+ ]
+ },
+ {
+ "i": {
+ "x": 0.833,
+ "y": 0.833
+ },
+ "o": {
+ "x": 0.167,
+ "y": 0.167
+ },
+ "n": "0p833_0p833_0p167_0p167",
+ "t": 14,
+ "s": [
+ 199,
+ 166.125,
+ 0
+ ],
+ "e": [
+ 199,
+ 168.375,
+ 0
+ ],
+ "to": [
+ 0,
+ 2.04166674613953,
+ 0
+ ],
+ "ti": [
+ 0,
+ -0.04166666790843,
+ 0
+ ]
+ },
+ {
+ "t": 15
+ }
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ -1,
+ -182.375,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 1,
+ "k": [
+ {
+ "i": {
+ "x": [
+ 0.833,
+ 0.833,
+ 0.833
+ ],
+ "y": [
+ 0.833,
+ 0.833,
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167,
+ 0.167,
+ 0.167
+ ],
+ "y": [
+ 0.167,
+ 0.167,
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 0,
+ "s": [
+ 50,
+ 50,
+ 100
+ ],
+ "e": [
+ 50,
+ 94,
+ 100
+ ]
+ },
+ {
+ "i": {
+ "x": [
+ 0.833,
+ 0.833,
+ 0.833
+ ],
+ "y": [
+ 0.833,
+ 0.833,
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167,
+ 0.167,
+ 0.167
+ ],
+ "y": [
+ 0.167,
+ 0.167,
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 12,
+ "s": [
+ 50,
+ 94,
+ 100
+ ],
+ "e": [
+ 70,
+ 43.333,
+ 100
+ ]
+ },
+ {
+ "i": {
+ "x": [
+ 0.833,
+ 0.833,
+ 0.833
+ ],
+ "y": [
+ 0.833,
+ 0.833,
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167,
+ 0.167,
+ 0.167
+ ],
+ "y": [
+ 0.167,
+ 0.167,
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 13,
+ "s": [
+ 70,
+ 43.333,
+ 100
+ ],
+ "e": [
+ 104.258,
+ 32,
+ 100
+ ]
+ },
+ {
+ "i": {
+ "x": [
+ 0.833,
+ 0.833,
+ 0.833
+ ],
+ "y": [
+ 0.833,
+ 0.833,
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167,
+ 0.167,
+ 0.167
+ ],
+ "y": [
+ 0.167,
+ 0.167,
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 14,
+ "s": [
+ 104.258,
+ 32,
+ 100
+ ],
+ "e": [
+ 212,
+ 18,
+ 100
+ ]
+ },
+ {
+ "t": 15
+ }
+ ],
+ "ix": 6
+ }
+ },
+ "ao": 0,
+ "shapes": [
+ {
+ "ty": "gr",
+ "it": [
+ {
+ "ind": 0,
+ "ty": "sh",
+ "ix": 1,
+ "ks": {
+ "a": 0,
+ "k": {
+ "i": [
+ [
+ 0.938,
+ 0
+ ],
+ [
+ 0,
+ -5.25
+ ],
+ [
+ -4.563,
+ 0.125
+ ],
+ [
+ 0.108,
+ 4.624
+ ]
+ ],
+ "o": [
+ [
+ -0.813,
+ 0.125
+ ],
+ [
+ 0,
+ 4.813
+ ],
+ [
+ 4.563,
+ -0.125
+ ],
+ [
+ -0.125,
+ -5.375
+ ]
+ ],
+ "v": [
+ [
+ -1.344,
+ -193.078
+ ],
+ [
+ -8.75,
+ -180.5
+ ],
+ [
+ -1.063,
+ -172.313
+ ],
+ [
+ 6.938,
+ -180.188
+ ]
+ ],
+ "c": true
+ },
+ "ix": 2
+ },
+ "nm": "Trazado 1",
+ "mn": "ADBE Vector Shape - Group",
+ "hd": false
+ },
+ {
+ "ty": "fl",
+ "c": {
+ "a": 0,
+ "k": [
+ 0.317647058824,
+ 0.325490196078,
+ 0.341176470588,
+ 1
+ ],
+ "ix": 4
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 5
+ },
+ "r": 1,
+ "nm": "Relleno 1",
+ "mn": "ADBE Vector Graphic - Fill",
+ "hd": false
+ },
+ {
+ "ty": "tr",
+ "p": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 100,
+ 100
+ ],
+ "ix": 3
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 6
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 7
+ },
+ "sk": {
+ "a": 0,
+ "k": 0,
+ "ix": 4
+ },
+ "sa": {
+ "a": 0,
+ "k": 0,
+ "ix": 5
+ },
+ "nm": "Transformar"
+ }
+ ],
+ "nm": "Forma 1",
+ "np": 3,
+ "cix": 2,
+ "ix": 1,
+ "mn": "ADBE Vector Group",
+ "hd": false
+ }
+ ],
+ "ip": 0,
+ "op": 60,
+ "st": 0,
+ "bm": 0
+ },
+ {
+ "ddd": 0,
+ "ind": 8,
+ "ty": 4,
+ "nm": "Capa de formas 3",
+ "sr": 1,
+ "ks": {
+ "o": {
+ "a": 1,
+ "k": [
+ {
+ "i": {
+ "x": [
+ 0.833
+ ],
+ "y": [
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167
+ ],
+ "y": [
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 46,
+ "s": [
+ 0
+ ],
+ "e": [
+ 100
+ ]
+ },
+ {
+ "i": {
+ "x": [
+ 0.833
+ ],
+ "y": [
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167
+ ],
+ "y": [
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 47,
+ "s": [
+ 100
+ ],
+ "e": [
+ 100
+ ]
+ },
+ {
+ "t": 48
+ }
+ ],
+ "ix": 11
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 10
+ },
+ "p": {
+ "a": 1,
+ "k": [
+ {
+ "i": {
+ "x": 0.833,
+ "y": 0.833
+ },
+ "o": {
+ "x": 0.167,
+ "y": 0.167
+ },
+ "n": "0p833_0p833_0p167_0p167",
+ "t": 47,
+ "s": [
+ 199.98,
+ 168.25,
+ 0
+ ],
+ "e": [
+ 199.98,
+ 158.037,
+ 0
+ ],
+ "to": [
+ 0,
+ -0.20375619828701,
+ 0
+ ],
+ "ti": [
+ 0,
+ 17.58864402771,
+ 0
+ ]
+ },
+ {
+ "i": {
+ "x": 0.833,
+ "y": 0.833
+ },
+ "o": {
+ "x": 0.167,
+ "y": 0.167
+ },
+ "n": "0p833_0p833_0p167_0p167",
+ "t": 48,
+ "s": [
+ 199.98,
+ 158.037,
+ 0
+ ],
+ "e": [
+ 199.98,
+ -10,
+ 0
+ ],
+ "to": [
+ -2.8421709430404e-14,
+ -50.4047393798828,
+ 0
+ ],
+ "ti": [
+ 0,
+ 1.17485654354095,
+ 0
+ ]
+ },
+ {
+ "t": 53
+ }
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ -32,
+ -31,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 1,
+ "k": [
+ {
+ "i": {
+ "x": [
+ 0.833,
+ 0.833,
+ 0.833
+ ],
+ "y": [
+ 0.833,
+ 0.833,
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167,
+ 0.167,
+ 0.167
+ ],
+ "y": [
+ 0.167,
+ 0.167,
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 47,
+ "s": [
+ -4,
+ 1,
+ 100
+ ],
+ "e": [
+ 1.5,
+ 4,
+ 100
+ ]
+ },
+ {
+ "i": {
+ "x": [
+ 0.833,
+ 0.833,
+ 0.833
+ ],
+ "y": [
+ 0.833,
+ 0.833,
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167,
+ 0.167,
+ 0.167
+ ],
+ "y": [
+ 0.167,
+ 0.167,
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167",
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 48,
+ "s": [
+ 1.5,
+ 4,
+ 100
+ ],
+ "e": [
+ 2,
+ 3,
+ 100
+ ]
+ },
+ {
+ "t": 53
+ }
+ ],
+ "ix": 6
+ }
+ },
+ "ao": 0,
+ "shapes": [
+ {
+ "ty": "gr",
+ "it": [
+ {
+ "d": 1,
+ "ty": "el",
+ "s": {
+ "a": 0,
+ "k": [
+ 308,
+ 308
+ ],
+ "ix": 2
+ },
+ "p": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 3
+ },
+ "nm": "Trazado elíptico 1",
+ "mn": "ADBE Vector Shape - Ellipse",
+ "hd": false
+ },
+ {
+ "ty": "fl",
+ "c": {
+ "a": 0,
+ "k": [
+ 0.317647058824,
+ 0.325490196078,
+ 0.341176470588,
+ 1
+ ],
+ "ix": 4
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 5
+ },
+ "r": 1,
+ "nm": "Relleno 1",
+ "mn": "ADBE Vector Graphic - Fill",
+ "hd": false
+ },
+ {
+ "ty": "tr",
+ "p": {
+ "a": 0,
+ "k": [
+ -31,
+ -31
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 100,
+ 100
+ ],
+ "ix": 3
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 6
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 7
+ },
+ "sk": {
+ "a": 0,
+ "k": 0,
+ "ix": 4
+ },
+ "sa": {
+ "a": 0,
+ "k": 0,
+ "ix": 5
+ },
+ "nm": "Transformar"
+ }
+ ],
+ "nm": "Elipse 1",
+ "np": 3,
+ "cix": 2,
+ "ix": 1,
+ "mn": "ADBE Vector Group",
+ "hd": false
+ }
+ ],
+ "ip": 0,
+ "op": 60,
+ "st": 0,
+ "bm": 0
+ },
+ {
+ "ddd": 0,
+ "ind": 9,
+ "ty": 4,
+ "nm": "Capa de formas 4",
+ "sr": 1,
+ "ks": {
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 11
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 10
+ },
+ "p": {
+ "a": 0,
+ "k": [
+ 199,
+ 253,
+ 0
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ -32,
+ -31,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 55,
+ 55,
+ 100
+ ],
+ "ix": 6
+ }
+ },
+ "ao": 0,
+ "shapes": [
+ {
+ "ty": "gr",
+ "it": [
+ {
+ "d": 1,
+ "ty": "el",
+ "s": {
+ "a": 0,
+ "k": [
+ 308,
+ 308
+ ],
+ "ix": 2
+ },
+ "p": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 3
+ },
+ "nm": "Trazado elíptico 1",
+ "mn": "ADBE Vector Shape - Ellipse",
+ "hd": false
+ },
+ {
+ "ty": "st",
+ "c": {
+ "a": 0,
+ "k": [
+ 0.317093434053,
+ 0.325121112898,
+ 0.341176470588,
+ 1
+ ],
+ "ix": 3
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 4
+ },
+ "w": {
+ "a": 0,
+ "k": 10,
+ "ix": 5
+ },
+ "lc": 1,
+ "lj": 1,
+ "ml": 4,
+ "nm": "Trazo 1",
+ "mn": "ADBE Vector Graphic - Stroke",
+ "hd": false
+ },
+ {
+ "ty": "tr",
+ "p": {
+ "a": 0,
+ "k": [
+ -31,
+ -31
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 100,
+ 100
+ ],
+ "ix": 3
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 6
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 7
+ },
+ "sk": {
+ "a": 0,
+ "k": 0,
+ "ix": 4
+ },
+ "sa": {
+ "a": 0,
+ "k": 0,
+ "ix": 5
+ },
+ "nm": "Transformar"
+ }
+ ],
+ "nm": "Elipse 1",
+ "np": 3,
+ "cix": 2,
+ "ix": 1,
+ "mn": "ADBE Vector Group",
+ "hd": false
+ },
+ {
+ "ty": "tm",
+ "s": {
+ "a": 1,
+ "k": [
+ {
+ "i": {
+ "x": [
+ 0.833
+ ],
+ "y": [
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167
+ ],
+ "y": [
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 12,
+ "s": [
+ 50
+ ],
+ "e": [
+ 100
+ ]
+ },
+ {
+ "i": {
+ "x": [
+ 0.833
+ ],
+ "y": [
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167
+ ],
+ "y": [
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 24,
+ "s": [
+ 100
+ ],
+ "e": [
+ 50
+ ]
+ },
+ {
+ "t": 48
+ }
+ ],
+ "ix": 1
+ },
+ "e": {
+ "a": 1,
+ "k": [
+ {
+ "i": {
+ "x": [
+ 0.833
+ ],
+ "y": [
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167
+ ],
+ "y": [
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 12,
+ "s": [
+ 50
+ ],
+ "e": [
+ 0
+ ]
+ },
+ {
+ "i": {
+ "x": [
+ 0.833
+ ],
+ "y": [
+ 0.833
+ ]
+ },
+ "o": {
+ "x": [
+ 0.167
+ ],
+ "y": [
+ 0.167
+ ]
+ },
+ "n": [
+ "0p833_0p833_0p167_0p167"
+ ],
+ "t": 24,
+ "s": [
+ 0
+ ],
+ "e": [
+ 50
+ ]
+ },
+ {
+ "t": 48
+ }
+ ],
+ "ix": 2
+ },
+ "o": {
+ "a": 0,
+ "k": 180,
+ "ix": 3
+ },
+ "m": 1,
+ "ix": 2,
+ "nm": "Recortar trazados 1",
+ "mn": "ADBE Vector Filter - Trim",
+ "hd": false
+ }
+ ],
+ "ip": 0,
+ "op": 60,
+ "st": 0,
+ "bm": 0
+ },
+ {
+ "ddd": 0,
+ "ind": 10,
+ "ty": 4,
+ "nm": "Capa de formas 1",
+ "td": 1,
+ "sr": 1,
+ "ks": {
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 11
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 10
+ },
+ "p": {
+ "a": 0,
+ "k": [
+ 199,
+ 253,
+ 0
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ -32,
+ -31,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 50,
+ 50,
+ 100
+ ],
+ "ix": 6
+ }
+ },
+ "ao": 0,
+ "shapes": [
+ {
+ "ty": "gr",
+ "it": [
+ {
+ "d": 1,
+ "ty": "el",
+ "s": {
+ "a": 0,
+ "k": [
+ 308,
+ 308
+ ],
+ "ix": 2
+ },
+ "p": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 3
+ },
+ "nm": "Trazado elíptico 1",
+ "mn": "ADBE Vector Shape - Ellipse",
+ "hd": false
+ },
+ {
+ "ty": "fl",
+ "c": {
+ "a": 0,
+ "k": [
+ 0.913725490196,
+ 0.347995563582,
+ 0.03941561007,
+ 1
+ ],
+ "ix": 4
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 5
+ },
+ "r": 1,
+ "nm": "Relleno 1",
+ "mn": "ADBE Vector Graphic - Fill",
+ "hd": false
+ },
+ {
+ "ty": "tr",
+ "p": {
+ "a": 0,
+ "k": [
+ -31,
+ -31
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ 0,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 100,
+ 100
+ ],
+ "ix": 3
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 6
+ },
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 7
+ },
+ "sk": {
+ "a": 0,
+ "k": 0,
+ "ix": 4
+ },
+ "sa": {
+ "a": 0,
+ "k": 0,
+ "ix": 5
+ },
+ "nm": "Transformar"
+ }
+ ],
+ "nm": "Elipse 1",
+ "np": 3,
+ "cix": 2,
+ "ix": 1,
+ "mn": "ADBE Vector Group",
+ "hd": false
+ }
+ ],
+ "ip": 0,
+ "op": 60,
+ "st": 0,
+ "bm": 0
+ },
+ {
+ "ddd": 0,
+ "ind": 11,
+ "ty": 0,
+ "nm": "Precomp. 1",
+ "tt": 1,
+ "refId": "comp_0",
+ "sr": 1,
+ "ks": {
+ "o": {
+ "a": 0,
+ "k": 100,
+ "ix": 11
+ },
+ "r": {
+ "a": 0,
+ "k": 0,
+ "ix": 10
+ },
+ "p": {
+ "a": 0,
+ "k": [
+ 200,
+ 200,
+ 0
+ ],
+ "ix": 2
+ },
+ "a": {
+ "a": 0,
+ "k": [
+ 200,
+ 200,
+ 0
+ ],
+ "ix": 1
+ },
+ "s": {
+ "a": 0,
+ "k": [
+ 100,
+ 100,
+ 100
+ ],
+ "ix": 6
+ }
+ },
+ "ao": 0,
+ "w": 400,
+ "h": 400,
+ "ip": 0,
+ "op": 144,
+ "st": 0,
+ "bm": 0
+ }
+ ]
+ }
\ No newline at end of file
diff --git a/pages/quiz.js b/src/screens/Quiz/index.js
similarity index 82%
rename from pages/quiz.js
rename to src/screens/Quiz/index.js
index 2dd5aa86..4758800f 100644
--- a/pages/quiz.js
+++ b/src/screens/Quiz/index.js
@@ -1,12 +1,16 @@
/* eslint-disable react/prop-types */
import React from 'react';
-import db from '../db.json';
-import Widget from '../src/components/Widget';
-import QuizLogo from '../src/components/QuizLogo';
-import QuizBackground from '../src/components/QuizBackground';
-import QuizContainer from '../src/components/QuizContainer';
-import AlternativesForm from '../src/components/AlternativesForm';
-import Button from '../src/components/Button';
+import { Lottie } from '@crello/react-lottie';
+// import db from '../../../db.json';
+import Widget from '../../components/Widget';
+import QuizLogo from '../../components/QuizLogo';
+import QuizBackground from '../../components/QuizBackground';
+import QuizContainer from '../../components/QuizContainer';
+import AlternativesForm from '../../components/AlternativesForm';
+import Button from '../../components/Button';
+import BackLinkArrow from '../../components/BackLinkArrow';
+
+import loadingAnimation from './animations/loading.json';
function ResultWidget({ results }) {
return (
@@ -55,8 +59,13 @@ function LoadingWidget() {
Carregando...
-
- [Desafio do Loading]
+
+
);
@@ -78,7 +87,7 @@ function QuestionWidget({
return (
- {/* */}
+
{`Pergunta ${questionIndex + 1} de ${totalQuestions}`}
@@ -156,13 +165,14 @@ const screenStates = {
LOADING: 'LOADING',
RESULT: 'RESULT',
};
-export default function QuizPage() {
+export default function QuizPage({ externalQuestions, externalBg }) {
const [screenState, setScreenState] = React.useState(screenStates.LOADING);
const [results, setResults] = React.useState([]);
- const totalQuestions = db.questions.length;
const [currentQuestion, setCurrentQuestion] = React.useState(0);
const questionIndex = currentQuestion;
- const question = db.questions[questionIndex];
+ const question = externalQuestions[questionIndex];
+ const totalQuestions = externalQuestions.length;
+ const bg = externalBg;
function addResult(result) {
// results.push(result);
@@ -180,7 +190,7 @@ export default function QuizPage() {
// fetch() ...
setTimeout(() => {
setScreenState(screenStates.QUIZ);
- }, 1 * 1000);
+ }, 1 * 2000);
// nasce === didMount
}, []);
@@ -194,7 +204,7 @@ export default function QuizPage() {
}
return (
-
+
{screenState === screenStates.QUIZ && (
diff --git a/yarn.lock b/yarn.lock
index 008ebf3a..c2b7f54b 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -182,7 +182,14 @@
lodash "^4.17.19"
to-fast-properties "^2.0.0"
-"@emotion/is-prop-valid@^0.8.8":
+"@crello/react-lottie@^0.0.11":
+ version "0.0.11"
+ resolved "https://registry.yarnpkg.com/@crello/react-lottie/-/react-lottie-0.0.11.tgz#1d581000b9fd98fdc490aac23458e19141db3861"
+ integrity sha512-V+U50f2k1pRBpfVyHEUc3A+L9bwQnQxuxRZqP5w/mKcTlc9h8mmuYOI5gh3S6VAUrUhzyIE1NgN/pHHU0EhBNA==
+ dependencies:
+ lottie-web "^5.7.3"
+
+"@emotion/is-prop-valid@^0.8.2", "@emotion/is-prop-valid@^0.8.8":
version "0.8.8"
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz#db28b1c4368a259b60a97311d6a952d4fd01ac1a"
integrity sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==
@@ -2209,6 +2216,24 @@ fragment-cache@^0.2.1:
dependencies:
map-cache "^0.2.2"
+framer-motion@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-3.2.1.tgz#66eeb883a0b5c425dd7767ecacdeac451c184cdb"
+ integrity sha512-5AWrh4JElgFAXWLqk0u8lVcdkigyuofyEy2LSsjuCxKbAb1hHqRn3PPdrV0KgPrysTHq95QO1bHFTLA7/Q8g+Q==
+ dependencies:
+ framesync "^5.0.0"
+ hey-listen "^1.0.8"
+ popmotion "^9.1.0"
+ style-value-types "^4.0.1"
+ tslib "^1.10.0"
+ optionalDependencies:
+ "@emotion/is-prop-valid" "^0.8.2"
+
+framesync@5.0.0, framesync@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/framesync/-/framesync-5.0.0.tgz#7de8caedf53ac441118e79680f1beb7391c328b6"
+ integrity sha512-wd8t+JsQGisluSv1twiEeDv0aNGpavGb9q7xgIk9fGbcIWkNXF/KVtrjnOrCwBWJuiXxlJfNkcvGudsI32FxYA==
+
from2@^2.1.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af"
@@ -2427,6 +2452,11 @@ he@1.2.0:
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
+hey-listen@^1.0.8:
+ version "1.0.8"
+ resolved "https://registry.yarnpkg.com/hey-listen/-/hey-listen-1.0.8.tgz#8e59561ff724908de1aa924ed6ecc84a56a9aa68"
+ integrity sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==
+
hmac-drbg@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
@@ -2993,6 +3023,11 @@ loose-envify@^1.1.0, loose-envify@^1.4.0:
dependencies:
js-tokens "^3.0.0 || ^4.0.0"
+lottie-web@^5.7.3:
+ version "5.7.6"
+ resolved "https://registry.yarnpkg.com/lottie-web/-/lottie-web-5.7.6.tgz#f20e5555ff120dc1e07ba53adb40061e822f3c48"
+ integrity sha512-qn/KYMI4QQvFDhtoxs0RPkn9uZKhDB9keE5BKgbJlSRfNEZpRiDlwBE9ibYz4nPhbyE+NUlt8IRIVR7g5OSX3w==
+
lru-cache@6.0.0, lru-cache@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
@@ -3698,6 +3733,16 @@ pnp-webpack-plugin@1.6.4:
dependencies:
ts-pnp "^1.1.6"
+popmotion@^9.1.0:
+ version "9.1.0"
+ resolved "https://registry.yarnpkg.com/popmotion/-/popmotion-9.1.0.tgz#4360d06bd18ce8baa8f9284ecec7d55344af6325"
+ integrity sha512-+J7pzzBy5kk2qsP8ilowKs/CH+HoZa3kOGEBNCleCvsPXEF3nKHdfAR3SboMyPvdpIrofaT7ZIy/xWgz446Azw==
+ dependencies:
+ framesync "5.0.0"
+ hey-listen "^1.0.8"
+ style-value-types "^4.0.1"
+ tslib "^1.10.0"
+
posix-character-classes@^0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
@@ -4688,6 +4733,14 @@ style-loader@1.2.1:
loader-utils "^2.0.0"
schema-utils "^2.6.6"
+style-value-types@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/style-value-types/-/style-value-types-4.0.1.tgz#23f05dd03e8a850654defc22cf03ebac572aaa00"
+ integrity sha512-aOV/HHyynIyTmU27qfs0oAHhFde6BFIvV4+nMerE2MAPZMwYOeQk1/F3S6djxF2u4HdbiieCPs3ZzWsbNUoc9A==
+ dependencies:
+ hey-listen "^1.0.8"
+ tslib "^1.10.0"
+
styled-components@^5.0.0:
version "5.2.1"
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-5.2.1.tgz#6ed7fad2dc233825f64c719ffbdedd84ad79101a"
@@ -4912,7 +4965,7 @@ tsconfig-paths@^3.9.0:
minimist "^1.2.0"
strip-bom "^3.0.0"
-tslib@^1.9.0:
+tslib@^1.10.0, tslib@^1.9.0:
version "1.14.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==